2010/9/15 Ruben Van Boxem <[email protected]>
> Hi,
>
> I now have:
> working C compiler (make all-gcc) and binutils (4.5.2 snapshot, 2.20.51
> snapshot respectively), both with multilib support, together with a
> mingw-w64 crt build (1.0-20100914) with both 32- and 64-bit libs. I'm
> compiling the rest of gcc with this C compiler installed from make
> install-gcc, and have verified that it is in PATH, and all libs are
> available.
>
> No when I run "make -j3 -s" in the gcc build dir, I get these errors after
> a while:
>
> M:\Development\msys\home\ruben\mingw64\build\mingw64\x86_64-w64-mingw32\bin\ld.exe:
>> skipping incompatible
>> M:/Development/msys/home/ruben/mingw64/build/mingw64/x86_64-w64-mingw32/lib/libmingw32.a
>> when searching for -lmingw32
>>
>
> Same for mingwex, moldname, msvcrt, user32, kernel32, advapi32, and
> shell32. These files are present in the lib32 directory, but apparantly ld
> isn't smart enough to look in the lib32 directory. I found
> this<http://pete-tech.blogspot.com/2010/07/compiling-mingw-w64-with-multilib-on.html>,
> which describes a fix/hack to work around this, but I'd like a
> better/automatic solution (if there is one of course).
>
> Thanks!
>
> Ruben
>
I solved this by copying _ONLY_ <sysroot>/x86_64-w64-mingw32/lib32 to
<sysroot>/mingw/lib32.
This step was not required when I built my non-multilib toolchain, and the
only directory in <sysroot>/mingw was an empty include as required by gcc.
pthreads also has to have this magic applied (ie: headers in
<sysroot>/mingw/include and 32-bit libs in <sysroot>/mingw/lib32). The
64-bit libs can stay in <sysroot>/x86_64-w64-mingw32/lib where they belong.
Continuing to stage2... (finally).
Ruben
PS: the link is very confusing to me: I solved the problem much more
elegantly (copying to the <sysroot>/mingw directory, instead of modifying
generated makefiles...)
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public