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 <[email protected]> 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 > [email protected] > https://lists.yoctoproject.org/listinfo/yocto > >
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
