2010/9/15 JonY <[email protected]>
> On 9/15/2010 20:56, Ruben Van Boxem wrote:
>
>> 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.
>>
>>
> So you did not link x86_64-w64-mingw32 to mingw as required. This is an
> operator error.
>
Yeah <ashamed>.... but apparantly it only affects multilib and the pthreads
headers... (was testing this link stuff, as it should be removed IMHO when
possible). GCC Should search <sysroot>/<target-triplet>/ for everything, and
remove all references to <sysroot>/mingw.
Ruben
------------------------------------------------------------------------------
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