[Buildroot] asm/errno.h: No such file or directory compiling luajit

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Mar 6 18:54:16 UTC 2015


Dear Angelo Compagnucci,

On Fri, 6 Mar 2015 17:35:50 +0100, Angelo Compagnucci wrote:

> I'm facing a problem compiling luajit and it's puzzling me a lilttle bit.

Can you give the Buildroot configuration and version that produces this
issue?

> /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such
> file or directory
>  #include <asm/errno.h>
> 
> This is the command buildroot produces:
> 
> /usr/bin/make -j9 PREFIX="/usr"
> STATIC_CC="/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/bin/arm-linux-gnueabihf-gcc"
> DYNAMIC_CC="/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/bin/arm-linux-gnueabihf-gcc
> -fPIC" TARGET_LD="/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/bin/arm-linux-gnueabihf-gcc"
> TARGET_AR="/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/bin/arm-linux-gnueabihf-ar
> rcus" TARGET_STRIP=true TARGET_CFLAGS="-D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64   -Os " TARGET_LDFLAGS=""
> HOST_CC="/usr/bin/gcc -m32" HOST_CFLAGS="-O2
> -I/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/include"
> HOST_LDFLAGS="-L/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/lib
> -L/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/lib
> -Wl,-rpath,/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/lib"
> BUILDMODE=dynamic -C
> /home/angelo/DEV/BUILDROOT/br_acqua_dev/build/luajit-2.0.3 amalg

Can you also give more build output?

My guess is that you're building something for the target (with the
cross-compiler), but it's using host headers.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list