lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Michal Kolodziejczyk wrote:
> trying to crosscompile luajit2 HEAD on archlinux (x86) with gcc 4.6.2,
> cross-arm-linux-gnueabi-gcc-base 4.6.0 and
> cross-arm-linux-gnueabi-binutils 2.21.1 I get:
> 
> $ make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- TARGET=arm
> ==== Building LuaJIT 2.0.0-beta8 ====
> make -C src
> make[1]: Entering directory `/tmp/luajit-2.0/src'
> CC        lj_gc.o
> In file included from lj_def.h:41:0,
>                  from lj_obj.h:13,
>                  from lj_gc.c:12:
> /usr/lib/gcc/arm-linux-gnueabi/4.6.0/include/stdint.h:3:26: fatal error:
> stdint.h: No such file or directory

Your cross-compiler setup is incomplete. You've installed the
toolchain, but not the sysroot for the target. This ought to
include the glibc headers etc. for the target. Look into the
directory given by: arm-linux-gnueabi-gcc -print-sysroot

> I have succesfully crosscompiled linux kernel 3.0 on this host with this
> setup.

The kernel doesn't need any target headers, since it doesn't link
against libc.

--Mike