[tlbuild] mingw cross-compilation fails at ICU

Manuel Pégourié-Gonnard mpg at elzevir.fr
Tue Apr 27 19:51:57 CEST 2010


Le 27/04/2010 10:34, Peter Breitenlohner a écrit :
>>> 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.
>
> You definitely shouldn't do that. A cross compiler has no business to use
> the standard system headers.
>
I'm afraid my previous remark was misleading: I didn't add it myself. I only 
meant to point out it was present in the gcc invocation as seen in the output of 
the Build script just before the error:

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

Now, looking at the Makefile in Work/texk/web2c, I understand that the 
-I/usr/include was coming from X_CFLAGS. Which reminded me that since there's 
usually no X11 on windows, I'd rather build --without-x (in addition to the 
previously mentioned --disable's).

I just completed a successful build (295 executables) with

./Build --without-x --disable-dialog --disable-pdfopen --disable-xdvik 
--disable-xetex --disable-xdvipdfmx --host=i586-mingw32 --build=x86_64-linux-gnu

(XeTeX and xdvipdfmx disabled because I don't have libfontconfig properly 
installed in my cross-compilation environment). I'm still using the symlinks 
with "proper" names for the cross tools, and I can confirm ICU cross-compiles 
just fine that way.

So, sorry for the noise on this non-problem with mfextra, I should have used 
--without-x right from the beginning.

Thanks again for your help,
Manuel.



More information about the tlbuild mailing list