libretro-lutro icon indicating copy to clipboard operation
libretro-lutro copied to clipboard

LuaJIT error with Lakka RPi2

Open RobLoach opened this issue 6 years ago • 2 comments

Lakka error on RPi2 when compiling LuaJIT....

DISTRO=Lakka PROJECT=RPi2 ARCH=arm make noobs -j8
/Lakka-LibreELEC/build.Lakka-RPi2.arm-8.0-devel/toolchain/bin/host-gcc -m32  -O2 -fomit-frame-pointer -Wall  -O3 -fPIC -I. -DLUAJIT_TARGET=LUAJIT_ARCH_arm -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0  -c -o host/buildvm_lib.o host/buildvm_lib.c
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
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
compilation terminated.
compilation terminated.
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
compilation terminated.
make[2]: *** [Makefile:662: host/buildvm_asm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:662: host/buildvm_peobj.o] Error 1
make[2]: *** [Makefile:662: host/buildvm_lib.o] Error 1
In file included from /usr/include/limits.h:25:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168,
                 from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
                 from host/minilua.c:33:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
make[2]: *** [Makefile:662: host/minilua.o] Error 1
make[2]: Leaving directory 'Lakka-LibreELEC/build.Lakka-RPi2.arm-8.0-devel/lutro-d11a593/deps/luajit/src'
make[1]: *** [Makefile:277: deps/luajit/src/libluajit.a] Error 2
make[1]: Leaving directory 'Lakka-LibreELEC/build.Lakka-RPi2.arm-8.0-devel/lutro-d11a593'
Makefile:15: recipe for target 'noobs' failed
make: *** [noobs] Error 2

RobLoach avatar Jul 21 '17 12:07 RobLoach

Yes it's a known issue, you need to install some lib32, I don't remember which ones

kivutar avatar Jul 21 '17 12:07 kivutar

Try to install libc6-dev-i386 package.

gouchi avatar Aug 22 '18 21:08 gouchi