[oe] luajit fails to build

Khem Raj raj.khem at gmail.com
Fri Oct 30 20:58:21 UTC 2015


On Thu, Oct 29, 2015 at 11:27 PM, Andreas Müller
<schnitzeltony at googlemail.com> wrote:
> Hi with latest masters luajit fails to build. I did already test - it
> is the same for luajit 2.04. I get
>
> ERROR: oe_runmake failed
> ERROR: Function failed: do_compile (log file is located at
> /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-vfp-vfpv4-neon-angstrom-linux-gnueabi/luajit/2.1-r0/temp/log.do_compile.9725)
> ERROR: Logfile of failure stored in:
> /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-vfp-vfpv4-neon-angstrom-linux-gnueabi/luajit/2.1-r0/temp/log.do_compile.9725
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j8 CROSS=arm-angstrom-linux-gnueabi- TARGET_CFLAGS=
> --sysroot=/home/superandy/tmp/oe-core-glibc/sysroots/raspberrypi2
> -march=armv7-a -mthumb  -mthumb-interwork -mfloat-abi=hard
> -mfpu=neon-vfpv4 -mtune=cortex-a7 TARGET_LDFLAGS=
> --sysroot=/home/superandy/tmp/oe-core-glibc/sysroots/raspberrypi2
> TARGET_SHLDFLAGS=
> --sysroot=/home/superandy/tmp/oe-core-glibc/sysroots/raspberrypi2
> TARGET_STRIP=/bin/echo HOST_CC=gcc  -m32
> | ==== Building LuaJIT 2.1.0-beta1 ====
> | make -C src
> | make[1]: Entering directory
> '/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-vfp-vfpv4-neon-angstrom-linux-gnueabi/luajit/2.1-r0/git/src'
> | HOSTCC    host/buildvm_peobj.o
> | HOSTCC    host/minilua.o
> | HOSTCC    host/buildvm_asm.o
> | CC        lj_gc.o
> | HOSTCC    host/buildvm_fold.o
> | HOSTCC    host/buildvm_lib.o
> | CC        lj_char.o
> | CC        lj_obj.o
> | In file included from /usr/include/features.h:389:0,
> |                  from /usr/include/sys/types.h:25,
> |                  from host/buildvm.h:9,
> |                  from host/buildvm_peobj.c:9:
> | /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
> file or directory
> |  # include <gnu/stubs-32.h>
> |                            ^
> | In file included from /usr/include/features.h:389:0,
> |                  from /usr/include/sys/types.h:25,
> |                  from host/buildvm.h:9,
> |                  from host/buildvm_lib.c:6:
> | /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
> file or directory
> |  # include <gnu/stubs-32.h>
> |                            ^
> | In file included from /usr/include/features.h:389:0,
> |                  from /usr/include/sys/types.h:25,
> |                  from host/buildvm.h:9,
> |                  from host/buildvm_fold.c:6:
> | /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
> file or directory
> |  # include <gnu/stubs-32.h>
> |                            ^
> | compilation terminated.
> | compilation terminated.
> | compilation terminated.
> | In file included from /usr/include/features.h:389:0,
> |                  from /usr/include/sys/types.h:25,
> |                  from host/buildvm.h:9,
> |                  from host/buildvm_asm.c:6:
> | /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
> file or directory
> |  # include <gnu/stubs-32.h>
> |                            ^
> | compilation terminated.
> | In file included from /usr/include/features.h:389:0,
> |                  from /usr/include/limits.h:25,
> |                  from
> /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/limits.h:168,
> |                  from
> /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/syslimits.h:7,
> |                  from
> /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/limits.h:34,
> |                  from host/minilua.c:33:
> | /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
> file or directory
> |  # include <gnu/stubs-32.h>
> |                            ^
> | compilation terminated.
> | Makefile:672: recipe for target 'host/buildvm_fold.o' failed
> | make[1]: *** [host/buildvm_fold.o] Error 1
> | make[1]: *** Waiting for unfinished jobs....
> | Makefile:672: recipe for target 'host/buildvm_lib.o' failed
> | make[1]: *** [host/buildvm_lib.o] Error 1
> | Makefile:672: recipe for target 'host/buildvm_peobj.o' failed
> | make[1]: *** [host/buildvm_peobj.o] Error 1
> | Makefile:672: recipe for target 'host/minilua.o' failed
> | make[1]: *** [host/minilua.o] Error 1
> | Makefile:672: recipe for target 'host/buildvm_asm.o' failed
> | make[1]: *** [host/buildvm_asm.o] Error 1
> | make[1]: Leaving directory
> '/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-vfp-vfpv4-neon-angstrom-linux-gnueabi/luajit/2.1-r0/git/src'
> | Makefile:105: recipe for target 'default' failed
> | make: *** [default] Error 2
> | WARNING: /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-vfp-vfpv4-neon-angstrom-linux-gnueabi/luajit/2.1-r0/temp/run.do_compile.9725:1
> exit 1 from
> |   exit 1
> | ERROR: oe_runmake failed
> | ERROR: Function failed: do_compile (log file is located at
> /home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-vfp-vfpv4-neon-angstrom-linux-gnueabi/luajit/2.1-r0/temp/log.do_compile.9725)
> ERROR: Task 7633
> (/home/superandy/data/oe-core/sources/meta-openembedded/meta-oe/recipes-devtools/luajit/luajit_2.1.bb,
> do_compile) failed with exit code '1'
>
> Seems it tries to use my host headers. Anybody with an idea why it does that?

LuaJIT's cross build depends on  host compiler also being able to do
same bit length, which means for 32bit arches we need 32bit/i386
compiler
avaiable on host. So if your host is 64bit then installing
gcc-mulitliib package for your build host will be required.

>
> Andreas
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list