On 06/13/2010 10:55 PM, Abdoulaye Walsimou GAYE wrote: > Hello, > I have a issue when I build libX11 with a mips toolchain. > The macro __WORDSIZE seems to be disabled by libX11 or xproto. > Here is the build ouput: > > make[3]: Entering directory > `/home/walsimou/embtoolkit.git/build/packages_build-mipsel-linux-mips32/libX11-1.3.4/src' > > cd util && make > make[4]: Entering directory > `/home/walsimou/embtoolkit.git/build/packages_build-mipsel-linux-mips32/libX11-1.3.4/src/util' > > CC makekeys-makekeys.o > In file included from > /home/walsimou/embtoolkit.git/sysroot-mipsel-linux-mips32/usr/include/sys/types.h:31, > > from > /home/walsimou/embtoolkit.git/sysroot-mipsel-linux-mips32/usr/include/X11/Xos.h:42, > > from makekeys.c:32: > /home/walsimou/embtoolkit.git/sysroot-mipsel-linux-mips32/usr/include/bits/types.h:133:3: > error: #error > In file included from > /home/walsimou/embtoolkit.git/sysroot-mipsel-linux-mips32/usr/include/sys/types.h:31, > > from > /home/walsimou/embtoolkit.git/sysroot-mipsel-linux-mips32/usr/include/X11/Xos.h:42, > > from makekeys.c:32:
Ok to be clear, I am cross compiling here (x86_64 host and mips32 target). If I am not wrong "makekeys" is intended to run on the host, but the Makefile in libX11-1.3.4/src/util uses the target CFLAGS. That's why __WORDSIZE is not defined as it comes from the compiler (target compiler). Can someone confirms that "makekeys" is intended to run on the host (not target) in case of cross compilation? Thanks, AWG _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
