From: Ronald Pijnacker <pijnacker@ds...> - 2009-07-18 09:48:14
The last couple of days I been busy trying to recompile gcc 4.4.0.
First I just downloaded the source from gcc.gnu.org and tried to
configure it with --prefix=/gcc. This gave all kinds of problems
with it not finding ld, as, or include files.
Later I discovered gcc-4.4.0-mingw32-src-2.tar.gz and gave it a try.
Although this comes a long way, it still does not finish:
When linking libgcc_s_dw2-1.dll.tmp, it first cannot find dllcrt2.o:
D:\msys\mingw\mingw32\bin\ld.exe: dllcrt2.o: No such file: No such file or directory
after copying these from /mingw/lib to the right directory it continues.
Then it says:
D:\msys\mingw\mingw32\bin\ld.exe: cannot find -lmingw32
This seems to be related to using ld from /mingw/mingw32/bin, instead of /mingw/bin.
It now seems to look for mingw32 in /mingw/mingw32/lib which isn't there.
I've tried correcting this by editing the Makefile and by passing
but this does not seem to help.
Short of removing ld from /mingw/mingw32/bin or copying the stuff from /mingw/lib to
/mingw/mingw32/lib there seems to be no 'right' solution.
- Is it correct that ld and other tools are available from /mingw/bin and /mingw/mingw32/bin?
- What is the right solution to this problem?
Get latest updates about Open Source Projects, Conferences and News.