[yocto] Luajit Compile Error

Joseph Andrew de la Peña jdelapena at lexmark.com
Fri Nov 14 01:03:58 PST 2014


Good day Li,

Maybe the answer is in this site: http://luajit.org/install.html.
Please refer to Cross Compiling LuaJIT.

Thanks,
- J

On Wed, Oct 29, 2014 at 5:01 PM, Li, Xin <lixin.fnst at cn.fujitsu.com> wrote:

>  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
>
>
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141114/f5db01eb/attachment.html>


More information about the yocto mailing list