From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] asm/errno.h: No such file or directory compiling luajit
Date: Fri, 6 Mar 2015 19:54:16 +0100 [thread overview]
Message-ID: <20150306195416.62f7424b@free-electrons.com> (raw)
In-Reply-To: <CA+TH9Vn=OjM74WB46dgXXm3Xcjy5X6z8i++p8o6EK1vBs9xrxQ@mail.gmail.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?
> /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
next prev parent reply other threads:[~2015-03-06 18:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 16:35 [Buildroot] asm/errno.h: No such file or directory compiling luajit Angelo Compagnucci
2015-03-06 18:54 ` Thomas Petazzoni [this message]
2015-03-06 21:52 ` Angelo Compagnucci
2015-03-07 0:49 ` Arnout Vandecappelle
2015-03-07 9:43 ` Angelo Compagnucci
2015-03-07 11:44 ` Angelo Compagnucci
2015-03-07 12:03 ` Thomas Petazzoni
2015-03-07 12:26 ` Angelo Compagnucci
2015-03-07 12:55 ` Angelo Compagnucci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150306195416.62f7424b@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox