[yocto] Luajit Compile Error

Li, Xin lixin.fnst at cn.fujitsu.com
Wed Oct 29 02:01:41 PDT 2014


Hi,

I include luajit package from the meta-embedded and compile it.
My build system is CentOS(64 bit).
when I compile for the target(64 bit),It is OK,with no errors.
But when I compile for the target(32 bit),it has the following errors.

If you know the solution, please help me!

Thank you&Best regards
Li Xin

----------------------------------------------------------------------------------------------
$ cat tmp/work/i586-poky-linux/luajit/2.0.3-r0/temp/log.do_compile
DEBUG: Executing shell function do_compile
NOTE: make -j 10 CROSS=i586-poky-linux- TARGET_CFLAGS= --sysroot=/yocto/work001/fnst/lixin/poky/build.x86/tmp/sysroots/qemux86  -m32 -march=i586 TARGET_LDFLAGS= --sysroot=/yocto/work001/fnst/lixin/poky/build.x86/tmp/sysroots/qemux86 TARGET_SHLDFLAGS= --sysroot=/yocto/work001/fnst/lixin/poky/build.x86/tmp/sysroots/qemux86 HOST_CC=gcc  -m32
==== Building LuaJIT 2.0.3 ====
make -C src
make[1]: Entering directory `/yocto/work001/fnst/lixin/poky/build.x86/tmp/work/i586-poky-linux/luajit/2.0.3-r0/LuaJIT-2.0.3/src'
BUILDVM   lj_vm.s
Error: pointer size mismatch in cross-build.
BUILDVM   lj_ffdef.h
Try: make HOST_CC="gcc -m32" CROSS=...

BUILDVM   lj_bcdef.h
make[1]: *** [lj_vm.s] Error 1
make[1]: *** Waiting for unfinished jobs....Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...


make[1]: *** [lj_ffdef.h] Error 1
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...

make[1]: *** [lj_bcdef.h] Error 1
make[1]: Leaving directory `/yocto/work001/fnst/lixin/poky/build.x86/tmp/work/i586-poky-linux/luajit/2.0.3-r0/LuaJIT-2.0.3/src'
make: *** [default] Error 2
ERROR: oe_runmake failed



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141029/b1b0a848/attachment.html>


More information about the yocto mailing list