Hi, I also build the package luajit ,but it has the following errors. Can someone help me?
Thanks. ----------------------------------------------------------------------- [lixin@ubinux-yocto-15 temp]$ cat log.do_compile.14752 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 BUILDVM lj_ffdef.h BUILDVM lj_bcdef.h Error: pointer size mismatch in cross-build. Try: make HOST_CC="gcc -m32" CROSS=... make[1]: *** [lj_vm.s] Error 1 Error: pointer size mismatch in cross-build. Try: make HOST_CC="gcc -m32" CROSS=... make[1]: *** Waiting for unfinished jobs.... 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 WARNING: /yocto/work001/fnst/lixin/poky/build.x86/tmp/work/i586-poky-linux/luajit/2.0.3-r0/temp/run.do_compile.14752:1 exit 1 from exit 1 ERROR: Function failed: do_compile (log file is located at /yocto/work001/fnst/lixin/poky/build.x86/tmp/work/i586-poky-linux/luajit/2.0.3-r0/temp/log.do_compile.14752) [lixin@ubinux-yocto-15 temp]$ ------------------------------------------------------------------------------------------ > -----Original Message----- > From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] > On Behalf Of Albert K > Sent: Monday, September 29, 2014 1:34 PM > To: Khem Raj > Cc: yocto@yoctoproject.org > Subject: Re: [yocto] Luajit Compile Error > > Dear Sir, > > Thanks a million. Adding the gcc-multilib to the build host did the > trick. Works like a charm. Thanks again. > > On Mon, Sep 29, 2014 at 12:57 PM, Khem Raj <raj.k...@gmail.com> wrote: > > On Sun, Sep 28, 2014 at 7:22 PM, Albert K <alb...@gmail.com> wrote: > >> Dear all, > >> > >> I am getting error when i include luajit package from the > >> meta-embedded and this is build from the core-image-minimal > >> layer(yocto daisy). Can someone help to point me the right direction > >> for fixing the compile error as show below? Thanks. > >> > > > > its expecting 32bit gcc to be available on your build host. So install > > gcc-multilib on build machine and it should go on. > > > >> > >> yocto@ubuntu-yocto:/yocto/poky/build/tmp/work/i586-poky-linux/luajit/ > >> 2.0.2-r0/temp$ > >> cat log.do_compile.16806 > >> DEBUG: Executing shell function do_compile > >> NOTE: make -j 4 CROSS=i586-poky-linux- TARGET_CFLAGS= > >> --sysroot=/yocto/poky/build/tmp/sysroots/qemux86 TARGET_LDFLAGS= > >> --sysroot=/yocto/poky/build/tmp/sysroots/qemux86 TARGET_SHLDFLAGS= > >> --sysroot=/yocto/poky/build/tmp/sysroots/qemux86 HOST_CC=gcc -m32 > >> ==== Building LuaJIT 2.0.2 ==== make -C src > >> make[1]: Entering directory > >> `/yocto/poky/build/tmp/work/i586-poky-linux/luajit/2.0.2-r0/LuaJIT-2.0.2/src' > >> HOSTCC host/minilua.o > >> HOSTCC host/buildvm_asm.o > >> HOSTCC host/buildvm_peobj.o > >> HOSTCC host/buildvm_lib.o > >> In file included from host/buildvm_peobj.c:9:0: > >> host/buildvm.h:9:23: fatal error: sys/types.h: No such file or > >> directory #include <sys/types.h> > >> ^ > >> In file included from host/buildvm_asm.c:6:0: > >> host/buildvm.h:9:23: fatal error: sys/types.h: No such file or > >> directory #include <sys/types.h> > >> ^ > >> compilation terminated. > >> In file included from host/buildvm_lib.c:6:0: > >> host/buildvm.h:9:23: fatal error: sys/types.h: No such file or > >> directory #include <sys/types.h> > >> ^ > >> compilation terminated. > >> compilation terminated. > >> make[1]: *** [host/buildvm_asm.o] Error 1 > >> make[1]: *** Waiting for unfinished jobs.... > >> make[1]: *** [host/buildvm_peobj.o] Error 1 > >> make[1]: *** [host/buildvm_lib.o] Error 1 In file included from > >> /usr/include/limits.h:25:0, > >> from > >> /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168, > >> from > >> /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7, > >> from > >> /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34, > >> from host/minilua.c:32: > >> /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such > >> file or directory # include <sys/cdefs.h> > >> ^ > >> compilation terminated. > >> make[1]: *** [host/minilua.o] Error 1 > >> make[1]: Leaving directory > >> `/yocto/poky/build/tmp/work/i586-poky-linux/luajit/2.0.2-r0/LuaJIT-2.0.2/src' > >> make: *** [default] Error 2 > >> ERROR: oe_runmake failed > >> WARNING: exit code 1 from a shell command. > >> ERROR: Function failed: do_compile (log file is located at > >> /yocto/poky/build/tmp/work/i586-poky-linux/luajit/2.0.2-r0/temp/log.d > >> o_compile.16806) > >> yocto@ubuntu-yocto:/yocto/poky/build/tmp/work/i586-poky-linux/luajit/ > >> 2.0.2-r0/temp$ > >> cat log.do_compile.16806 > >> DEBUG: Executing shell function do_compile > >> NOTE: make -j 4 CROSS=i586-poky-linux- TARGET_CFLAGS= > >> --sysroot=/yocto/poky/build/tmp/sysroots/qemux86 TARGET_LDFLAGS= > >> --sysroot=/yocto/poky/build/tmp/sysroots/qemux86 TARGET_SHLDFLAGS= > >> --sysroot=/yocto/poky/build/tmp/sysroots/qemux86 HOST_CC=gcc -m32 > >> ==== Building LuaJIT 2.0.2 ==== make -C src > >> make[1]: Entering directory > >> `/yocto/poky/build/tmp/work/i586-poky-linux/luajit/2.0.2-r0/LuaJIT-2.0.2/src' > >> HOSTCC host/minilua.o > >> HOSTCC host/buildvm_asm.o > >> HOSTCC host/buildvm_peobj.o > >> HOSTCC host/buildvm_lib.o > >> In file included from host/buildvm_peobj.c:9:0: > >> host/buildvm.h:9:23: fatal error: sys/types.h: No such file or > >> directory #include <sys/types.h> > >> ^ > >> In file included from host/buildvm_asm.c:6:0: > >> host/buildvm.h:9:23: fatal error: sys/types.h: No such file or > >> directory #include <sys/types.h> > >> ^ > >> compilation terminated. > >> In file included from host/buildvm_lib.c:6:0: > >> host/buildvm.h:9:23: fatal error: sys/types.h: No such file or > >> directory #include <sys/types.h> > >> ^ > >> compilation terminated. > >> compilation terminated. > >> make[1]: *** [host/buildvm_asm.o] Error 1 > >> make[1]: *** Waiting for unfinished jobs.... > >> make[1]: *** [host/buildvm_peobj.o] Error 1 > >> make[1]: *** [host/buildvm_lib.o] Error 1 In file included from > >> /usr/include/limits.h:25:0, > >> from > >> /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168, > >> from > >> /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7, > >> from > >> /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34, > >> from host/minilua.c:32: > >> /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such > >> file or directory # include <sys/cdefs.h> > >> ^ > >> compilation terminated. > >> make[1]: *** [host/minilua.o] Error 1 > >> make[1]: Leaving directory > >> `/yocto/poky/build/tmp/work/i586-poky-linux/luajit/2.0.2-r0/LuaJIT-2.0.2/src' > >> make: *** [default] Error 2 > >> ERROR: oe_runmake failed > >> WARNING: exit code 1 from a shell command. > >> ERROR: Function failed: do_compile (log file is located at > >> /yocto/poky/build/tmp/work/i586-poky-linux/luajit/2.0.2-r0/temp/log.d > >> o_compile.16806) > >> yocto@ubuntu-yocto:/yocto/poky/build/tmp/work/i586-poky-linux/luajit/ > >> 2.0.2-r0/temp$ > >> -- > >> _______________________________________________ > >> yocto mailing list > >> yocto@yoctoproject.org > >> https://lists.yoctoproject.org/listinfo/yocto > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto