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.do_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.do_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