can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc

Wed May 25 16:20:00 GMT 2011

I have been compiling software under gcc3.4 under cygwin for some time now. I
was having an issue, so I decided to re-install gcc in cygwin. All I did was
select the three gcc packages for re-install. After the re-install, I am
getting the following errors from the linker,

/usr/bin/ld: cannot find crt2.o: No such file or directory
/usr/bin/ld: cannot find -lmingw32
/usr/bin/ld: cannot find -lmoldname
/usr/bin/ld: cannot find -lmingwex
/usr/bin/ld: cannot find -lmsvcrt
/usr/bin/ld: cannot find -lmingw32
/usr/bin/ld: cannot find -lmingw32
/usr/bin/ld: cannot find -lmoldname
/usr/bin/ld: cannot find -lmingwex
/usr/bin/ld: cannot find -lmsvcrt

It's like the linker can't find the libraries anymore. I haven't changed my
make, or anything else. I had this happen yesterday on another computer
where all I did was to update cygwin in the normal fashion.

I have the following packages installed,
binutils          2.20.51-2
gcc-core          3.4.4-3
gcc-g++           3.4.4-3
gcc-g77           3.4.4-3
gcc-mingw-core    20050522-3
gcc-mingw-g++     20050522-3
gcc-mingw-g77     20050522-3
libgcc1           4.3.4-4
libstdc++6        4.3.4-4
libstdc++6-devel  4.3.4-4
mingw-runtime     3.18-1

Do you see anything that I'm missing. The cygwin package manager is pretty
good, so I would be surprised if a re-install removed some required
dependency, but anything is possible I guess.

I would guess that it is more likely that the problem is having the version
4 libs, which may not be compatible with gcc3. The only options are 4.3.4 or
4.3.3. I will check an older machine and see if I can figure out what is

View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list