[tlbuild] mingw cross-compilation fails at ICU

Manuel Pégourié-Gonnard mpg at elzevir.fr
Mon Apr 26 20:04:14 CEST 2010


Le 26/04/2010 18:16, Peter Breitenlohner a écrit :
> Thus I'd think that you have to use '--host=i586-mingw32' and create
> symlinks i586-mingw32-gcc -> /path/to/i586-mingw32msvc-gcc, or simply
> i586-mingw32-gcc -> i586-mingw32msvc-gcc if you have write access to that
> directory, and similar for all the other tools.
>
Tested, it works. More precisely, ICU builds correctly. I'm still having other 
problems, but more about that later.

> If that works, we could correct that aclocal.m4 and rebuild configure. This
> is, however, a little bit tricky because this requires Autoconf-2.63 not
> available on my system.
>
Ok.

>> i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./..
>> -I/home/mpg/tl/source/Work/texk -I/home/mpg/tl/source/texk
>> -I../../../texk/web2c/.. -I/usr/include -Wimplicit -Wreturn-type
>> -Wdeclaration-after-statement -Wno-unknown-pragmas -g -O2 -MT
>> mf-mfextra.o -MD -MP -MF .deps/mf-mfextra.Tpo -c -o mf-mfextra.o `test
>> -f 'mfextra.c' || echo '../../../texk/web2c/'`mfextra.c
>> In file included from
>> /usr/lib/gcc/i586-mingw32msvc/4.4.2/../../../../i586-mingw32msvc/include/windows.h:98,
>>
>> from /home/mpg/tl/source/texk/kpathsea/mingw32.h:9,
>> from /home/mpg/tl/source/texk/kpathsea/config.h:99,
>> from ../../../texk/web2c/config.h:32,
>> from ../../../texk/web2c/cpascal.h:16,
>> from ../../../texk/web2c/texmfmp.h:5,
>> from mfd.h:10,
>> from mfextra.c:14:
>> /usr/lib/gcc/i586-mingw32msvc/4.4.2/../../../../i586-mingw32msvc/include/winsock2.h:64:
>> error: conflicting types for ?fd_set?
>> /usr/include/sys/select.h:78: note: previous declaration of ?fd_set?
>> was here
>
> The cross compiler should certainly not use /usr/include/sys/select.h, this
> is strange.
>
Well, -I/usr/include is explicitly passed on the command line.

Please let me know if and how I can provide additional information to help 
debugging this.

Manuel.


More information about the tlbuild mailing list