libX11 or xproto seem to disable some macros defined by mips toolchain

Abdoulaye Walsimou Gaye awg at embtoolkit.org
Tue Jun 15 01:08:03 PDT 2010


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


More information about the xorg-devel mailing list