Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Reg. CC_FOR_BUILD in xlib_libX11
@ 2008-03-01 19:35 JS
  0 siblings, 0 replies; only message in thread
From: JS @ 2008-03-01 19:35 UTC (permalink / raw)
  To: buildroot


Hello,

In package/x11r7/xlib_libX11/xlib_libX11.mk, the variable
'XLIB_LIBX11_CONF_ENV' confuses me. CC_FOR_BUILD is set to
use /usr/bin/gcc (native gcc) to use the headers from cross-compiler's
toolchain. Is this right?

Building x11r7 for mipsel fails with failures starting as,


> make[3]: Entering directory `/home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/xlib_libX11-1.1.1/src/util'
> Makefile:510: warning: overriding commands for target `makekeys-makekeys.o'
> Makefile:313: warning: ignoring old commands for target `makekeys-makekeys.o'
> Makefile:513: warning: overriding commands for target `makekeys'
> Makefile:280: warning: ignoring old commands for target `makekeys'
> /usr/bin/gcc -I/home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/staging_dir/usr/include -DHAVE_CONFIG_H -I. -I../../src -I../../include/X11      -c makekeys.c -o makekeys-makekeys.o
> In file included from /home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/staging_dir/usr/include/sys/types.h:31,
>                  from /home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/staging_dir/usr/include/X11/Xos.h:60,
>                  from makekeys.c:35:
> /home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/staging_dir/usr/include/bits/types.h:133:3: error: #error 
> In file included from /home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/staging_dir/usr/include/sys/types.h:31,
>                  from /home/joe/work/inventsoln/tornado/tornado-gnu/buildroot/build_mipsel/staging_dir/usr/include/X11/Xos.h:60,
>                  from makekeys.c:35:

After a bit of digging into the failure, I saw that __WORDSIZE is
defined to _MIPS_SZPTR in include/bits/wordsize.h . And, since the
compiler used is a native compiler (i686), I did not define that macro.

-- 
HiPro Solutions
http://hipro.co.in/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-01 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-01 19:35 [Buildroot] Reg. CC_FOR_BUILD in xlib_libX11 JS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox