This is the mail archive of the
cygwin
mailing list for the Cygwin project.
can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc
- From: LMHmedchem2 <lmh_users-groups at molconn dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 25 May 2011 09:20:12 -0700 (PDT)
- Subject: can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc
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
make
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
different.
LMHmedchem
--
View this message in context: http://old.nabble.com/can%27t-compile-under-cygwin-anymore%2C--usr-bin-ld%3A-cannot-find-crt2.o-etc-tp31700534p31700534.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple