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

Angelo Compagnucci angelo.compagnucci at gmail.com
Fri Mar 6 21:52:24 UTC 2015

Dear Thomas Petazzoni,

2015-03-06 19:54 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni at free-electrons.com>:
> 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?

It's a fairly basic configuration with only luajit package. You can
find my .config attached.

> Can you also give more build output?

After busybox has completed the target installed phase, this is the output:

>>> luajit 2.0.3 Configuring
>>> luajit 2.0.3 Building
/usr/bin/make -j9 PREFIX="/usr"
-fPIC" TARGET_LD="/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/bin/arm-linux-gnueabihf-gcc"
HOST_CC="/usr/bin/gcc -m32" HOST_CFLAGS="-O2
BUILDMODE=dynamic -C
/home/angelo/DEV/BUILDROOT/br_acqua_dev/build/luajit-2.0.3 amalg
Building LuaJIT 2.0.3
/usr/bin/make -C src amalg
| WARNING: Compiling the amalgamation needs a lot of virtual memory        |
| (around 300 MB with GCC 4.x)! If you don't have enough physical memory   |
| your machine will start swapping to disk and the compile will not finish |
| within a reasonable amount of time.                                      |
| So either compile on a bigger machine or use the non-amalgamated build.  |
/usr/bin/make all "LJCORE_O=ljamalg.o"
HOSTCC    host/minilua.o
HOSTCC    host/buildvm_asm.o
HOSTCC    host/buildvm_peobj.o
HOSTCC    host/buildvm_lib.o
HOSTCC    host/buildvm_fold.o
CC        luajit.o
In file included from /usr/include/bits/errno.h:24:0,
                 from /usr/include/errno.h:35,
                 from host/buildvm.h:13,
                 from host/buildvm_asm.c:6:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such
file or directory
 #include <asm/errno.h>

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

I'm using latest version pulled from git
(6884e5b912eb6ba427cfb13a0996592738107ec5) at the time of writing.

Thanks for helping!

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

Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 45978 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150306/e390a92d/attachment-0001.obj>

More information about the buildroot mailing list