Forums

Cygwin & Nios II

Started by Peter Sommerfeld April 28, 2005
Hi,

Awhile back I tried having Nios II and a separate cygwin (from
cygwin.com) on the same machine, but ran into big problems. I now want
to install the latest Nios II eval kit but I'm not sure if Altera has
fixed things so they can co-exist.

Does anyone have a stand-alone Cygwin and Nios II tools running fine on
the same machine? I thought I'd ask beforehand because I sure don't
want to run into that situation again.

-- Pete

i have been using the two cygwin installs without issue for  a while
now.  didn't do anything special to get it to work.

Hi Pete,

There were issues with multiple Cygwin installations long ago, but I
think they were corrected in the Nios I 3.1/3.2 time-frame... as such
I'm surprised to hear that you ran into trouble with Nios II - perhaps
something else is going on?

Just as a reference point, I personally use a generic Cygwin
installation installed in a separate location from Altera's (which now
goes into quartus/bin/cygwin)... in fact we (as Nios/SOPC developers at
Altera) use a separate Cygwin installation extensively (on our desktop
PCs as it provides a nice cross-platform development/build-system
setup; so many people have this working.

The one tip that comes to mind to ensure that wires don't get crossed.
I can think of two things: environment variables, and cygwin1.dll
(there are a number of versions of it and you want whatever shell you
open up to be using the most recent one).

I would carefully check that, when you open your Altera SDK shell, your
environment variables & path do not point to your separate standalone
Cygwin installation -- this is how things are on my setup. I also
checked what my environment looks like with my standalone Cygwin
installation, and to my surprise there were path entries pointing to
the Altera installation of Cygwin. Everything functions normally,
though.

You might also try a quick registry scan to see if there are any relics
from the past floating about. In my working setup, I started from a
clean PC with nothing on it, and installed Quartus and then Cygwin
separately.

If this doesn't help feel free to send me an email offline and I'll
send you a cut & paste of what my environment looks like.

Jesse Kempa
Altera Corp.
jkempa at altera dot com

Hi Jesse,

I'm sorry, I meant to post that the last time I installed the Nios kit
was with Nios I. My apologies. Very happy to hear they can co-exist
now.

-- Pete

kem...@yahoo.com wrote:
> Hi Pete, > > There were issues with multiple Cygwin installations long ago, but I > think they were corrected in the Nios I 3.1/3.2 time-frame... as such > I'm surprised to hear that you ran into trouble with Nios II -
perhaps
> something else is going on? > > Just as a reference point, I personally use a generic Cygwin > installation installed in a separate location from Altera's (which
now
> goes into quartus/bin/cygwin)... in fact we (as Nios/SOPC developers
at
> Altera) use a separate Cygwin installation extensively (on our
desktop
> PCs as it provides a nice cross-platform development/build-system > setup; so many people have this working. > > The one tip that comes to mind to ensure that wires don't get
crossed.
> I can think of two things: environment variables, and cygwin1.dll > (there are a number of versions of it and you want whatever shell you > open up to be using the most recent one). > > I would carefully check that, when you open your Altera SDK shell,
your
> environment variables & path do not point to your separate standalone > Cygwin installation -- this is how things are on my setup. I also > checked what my environment looks like with my standalone Cygwin > installation, and to my surprise there were path entries pointing to > the Altera installation of Cygwin. Everything functions normally, > though. > > You might also try a quick registry scan to see if there are any
relics
> from the past floating about. In my working setup, I started from a > clean PC with nothing on it, and installed Quartus and then Cygwin > separately. > > If this doesn't help feel free to send me an email offline and I'll > send you a cut & paste of what my environment looks like. > > Jesse Kempa > Altera Corp. > jkempa at altera dot com
On Thu, 28 Apr 2005 08:51:00 -0700, dwesterg@gmail.com wrote:

> i have been using the two cygwin installs without issue for a while > now. didn't do anything special to get it to work.
I've got something in the region of thirty different programs on my pc with their own copy of cygwin1.dll of various vintages, including two cygwin trees (a "normal" cygwin tree, and a Quartus / Nios II tree). I also have a couple of cygwin services (such as a ssh demon) running on my w2k box at all times. All in all, it is surprisingly successful, although occasionally a program will complain about incorrect cygwn1.dll versions. The solution is simply to start it again - in most cases, that works. I believe cygwin have recently made some effort to deal with their own not insignificant contribution to windows dll-hell. The latest version (from just a few days ago) specifically addresses compatibility problems with different versions.