public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc
@ 2011-05-25 16:20 LMHmedchem2
  2011-05-25 18:46 ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: LMHmedchem2 @ 2011-05-25 16:20 UTC (permalink / raw)
  To: cygwin


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc
  2011-05-25 16:20 can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc LMHmedchem2
@ 2011-05-25 18:46 ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2011-05-25 18:46 UTC (permalink / raw)
  To: cygwin

On 5/25/2011 12:20 PM, LMHmedchem2 wrote:
> I have the following packages installed,
> gcc-mingw-core    20050522-3
> gcc-mingw-g++     20050522-3
> gcc-mingw-g77     20050522-3

Read the following announcement:
http://cygwin.com/ml/cygwin-announce/2011-04/msg00015.html

You'll need to do either 'CHOICE ONE' or 'CHOICE TWO' described
there...or wait until next Monday/Tuesday when the new mingw-runtime,
mingw-w32api, and other related packages are released.

Also, if you go with choice one, you'll need to undo that (by
re-installing gcc-mingw-core) after next week.

--
Chuck

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-25 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 16:20 can't compile under cygwin anymore, /usr/bin/ld: cannot find crt2.o etc LMHmedchem2
2011-05-25 18:46 ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).