* [Buildroot] asm/errno.h: No such file or directory compiling luajit
@ 2015-03-06 16:35 Angelo Compagnucci
2015-03-06 18:54 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Angelo Compagnucci @ 2015-03-06 16:35 UTC (permalink / raw)
To: buildroot
Hello All,
I'm facing a problem compiling luajit and it's puzzling me a lilttle bit.
Luajit is failing with this error:
/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
Obviously it's failing because asm/errno.h is in
/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/asm/errno.h
not in
/home/angelo/DEV/BUILDROOT/br_acqua_dev/host/usr/include
From my understaning, HOST_CFLAGS is wrong, but it's generated
automatically by buildroot and not mangled by the package.
Have you any idea on this?
Thank you!
--
Profile: http://it.linkedin.com/in/compagnucciangelo
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
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
2015-03-06 21:52 ` Angelo Compagnucci
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2015-03-06 18:54 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-06 18:54 ` Thomas Petazzoni
@ 2015-03-06 21:52 ` Angelo Compagnucci
2015-03-07 0:49 ` Arnout Vandecappelle
0 siblings, 1 reply; 9+ messages in thread
From: Angelo Compagnucci @ 2015-03-06 21:52 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni,
2015-03-06 19:54 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@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"
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
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>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-06 21:52 ` Angelo Compagnucci
@ 2015-03-07 0:49 ` Arnout Vandecappelle
2015-03-07 9:43 ` Angelo Compagnucci
0 siblings, 1 reply; 9+ messages in thread
From: Arnout Vandecappelle @ 2015-03-07 0:49 UTC (permalink / raw)
To: buildroot
On 06/03/15 22:52, Angelo Compagnucci wrote:
[snip]
> /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>
The error actually pertains to the compilation of host/buildvm_asm.o, which is
a host file not a target file. It helps to debug this kind of thing with
BR2_JLEVEL=1...
It looks like there is something wrong with your system's toolchain
installation. There really should be a /usr/include/asm/errno.h. In a multilib
installation, asm is typically a symlink to <arch>/asm. Is it possible that this
symlink got removed by a botched package install?
Regards,
Arnout
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-07 0:49 ` Arnout Vandecappelle
@ 2015-03-07 9:43 ` Angelo Compagnucci
2015-03-07 11:44 ` Angelo Compagnucci
0 siblings, 1 reply; 9+ messages in thread
From: Angelo Compagnucci @ 2015-03-07 9:43 UTC (permalink / raw)
To: buildroot
Dear Arnout Vandecappelle,
2015-03-07 1:49 GMT+01:00 Arnout Vandecappelle <arnout@mind.be>:
> On 06/03/15 22:52, Angelo Compagnucci wrote:
> [snip]
>> /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>
>
> The error actually pertains to the compilation of host/buildvm_asm.o, which is
> a host file not a target file. It helps to debug this kind of thing with
> BR2_JLEVEL=1...
Yes, I know, luajit is both an host and a target package. Whit
BR2_JLEVEL=1 the output is:
>>> luajit 2.0.3 Building
/usr/bin/make -j1 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
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
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from host/minilua.c:40:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such
file or directory
#include <asm/errno.h>
^
compilation terminated.
make[4]: *** [host/minilua.o] Error 1
make[3]: *** [amalg] Error 2
make[2]: *** [amalg] Error 2
make[1]: *** [/home/angelo/DEV/BUILDROOT/br_acqua_dev/build/luajit-2.0.3/.stamp_built]
Error 2
make: *** [_all] Error 2
> It looks like there is something wrong with your system's toolchain
> installation. There really should be a /usr/include/asm/errno.h. In a multilib
> installation, asm is typically a symlink to <arch>/asm. Is it possible that this
> symlink got removed by a botched package install?
I just pulled from git, cleaned all with make distclean, loaded the
previously attached .config and compiled.
I'm using Linaro 2014.09 toolchain.
Honestly there is no way I can have screwed up my installation,
because it's cleanly pulled from git (rev.
591cb698d7768a52c1f1c527345782b500142edc).
Hope this helps!
Sincerely, Angelo
>
>
> Regards,
> Arnout
>
> [snip]
> --
> Arnout Vandecappelle arnout at mind be
> Senior Embedded Software Architect +32-16-286500
> Essensium/Mind http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
--
Profile: http://it.linkedin.com/in/compagnucciangelo
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-07 9:43 ` Angelo Compagnucci
@ 2015-03-07 11:44 ` Angelo Compagnucci
2015-03-07 12:03 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Angelo Compagnucci @ 2015-03-07 11:44 UTC (permalink / raw)
To: buildroot
Dear Arnout, Thomas,
Making that link manually
ln -s $PWD/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/asm
host/usr/include/asm
did the trick, but I cannot understand why it's not created
automatically. Can you point me where that link sould be created
(cannot find it by myself) so I can try to debug?
Thank you for your time!
2015-03-07 10:43 GMT+01:00 Angelo Compagnucci <angelo.compagnucci@gmail.com>:
> Dear Arnout Vandecappelle,
>
> 2015-03-07 1:49 GMT+01:00 Arnout Vandecappelle <arnout@mind.be>:
>> On 06/03/15 22:52, Angelo Compagnucci wrote:
>> [snip]
>>> /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>
>>
>> The error actually pertains to the compilation of host/buildvm_asm.o, which is
>> a host file not a target file. It helps to debug this kind of thing with
>> BR2_JLEVEL=1...
>
> Yes, I know, luajit is both an host and a target package. Whit
> BR2_JLEVEL=1 the output is:
>
>>>> luajit 2.0.3 Building
> /usr/bin/make -j1 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
> 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
> In file included from /usr/include/bits/errno.h:24:0,
> from /usr/include/errno.h:35,
> from host/minilua.c:40:
> /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such
> file or directory
> #include <asm/errno.h>
> ^
> compilation terminated.
> make[4]: *** [host/minilua.o] Error 1
> make[3]: *** [amalg] Error 2
> make[2]: *** [amalg] Error 2
> make[1]: *** [/home/angelo/DEV/BUILDROOT/br_acqua_dev/build/luajit-2.0.3/.stamp_built]
> Error 2
> make: *** [_all] Error 2
>
>
>> It looks like there is something wrong with your system's toolchain
>> installation. There really should be a /usr/include/asm/errno.h. In a multilib
>> installation, asm is typically a symlink to <arch>/asm. Is it possible that this
>> symlink got removed by a botched package install?
>
> I just pulled from git, cleaned all with make distclean, loaded the
> previously attached .config and compiled.
> I'm using Linaro 2014.09 toolchain.
> Honestly there is no way I can have screwed up my installation,
> because it's cleanly pulled from git (rev.
> 591cb698d7768a52c1f1c527345782b500142edc).
>
> Hope this helps!
>
> Sincerely, Angelo
>
>>
>>
>> Regards,
>> Arnout
>>
>> [snip]
>> --
>> Arnout Vandecappelle arnout at mind be
>> Senior Embedded Software Architect +32-16-286500
>> Essensium/Mind http://www.mind.be
>> G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
>> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
>> GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
>
>
>
> --
> Profile: http://it.linkedin.com/in/compagnucciangelo
--
Profile: http://it.linkedin.com/in/compagnucciangelo
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-07 11:44 ` Angelo Compagnucci
@ 2015-03-07 12:03 ` Thomas Petazzoni
2015-03-07 12:26 ` Angelo Compagnucci
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2015-03-07 12:03 UTC (permalink / raw)
To: buildroot
Dear Angelo Compagnucci,
On Sat, 7 Mar 2015 12:44:04 +0100, Angelo Compagnucci wrote:
> Making that link manually
>
> ln -s $PWD/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/asm
> host/usr/include/asm
Doing this is absolutely *horrible*. It's making host headers point to
target headers. A recipe for disaster.
Clearly not the right fix.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-07 12:03 ` Thomas Petazzoni
@ 2015-03-07 12:26 ` Angelo Compagnucci
2015-03-07 12:55 ` Angelo Compagnucci
0 siblings, 1 reply; 9+ messages in thread
From: Angelo Compagnucci @ 2015-03-07 12:26 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni,
2015-03-07 13:03 GMT+01:00 Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>:
> Dear Angelo Compagnucci,
>
> On Sat, 7 Mar 2015 12:44:04 +0100, Angelo Compagnucci wrote:
>
>> Making that link manually
>>
>> ln -s $PWD/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/asm
>> host/usr/include/asm
>
> Doing this is absolutely *horrible*. It's making host headers point to
> target headers. A recipe for disaster.
>
> Clearly not the right fix.
Yes, obviously, it was only an experiment to keep the build going to the end.
Unfortunately the problem remains, I have not an host/usr/include/asm
link in my host directory and I am eager to understand what's going
on.
Thank you for your time!
Sincerely, Angelo.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
--
Profile: http://it.linkedin.com/in/compagnucciangelo
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] asm/errno.h: No such file or directory compiling luajit
2015-03-07 12:26 ` Angelo Compagnucci
@ 2015-03-07 12:55 ` Angelo Compagnucci
0 siblings, 0 replies; 9+ messages in thread
From: Angelo Compagnucci @ 2015-03-07 12:55 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni, Arnout Vandecappelle,
2015-03-07 13:26 GMT+01:00 Angelo Compagnucci <angelo.compagnucci@gmail.com>:
> Dear Thomas Petazzoni,
>
> 2015-03-07 13:03 GMT+01:00 Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com>:
>> Dear Angelo Compagnucci,
>>
>> On Sat, 7 Mar 2015 12:44:04 +0100, Angelo Compagnucci wrote:
>>
>>> Making that link manually
>>>
>>> ln -s $PWD/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/asm
>>> host/usr/include/asm
>>
>> Doing this is absolutely *horrible*. It's making host headers point to
>> target headers. A recipe for disaster.
>>
>> Clearly not the right fix.
>
> Yes, obviously, it was only an experiment to keep the build going to the end.
> Unfortunately the problem remains, I have not an host/usr/include/asm
> link in my host directory and I am eager to understand what's going
> on.
>
> Thank you for your time!
I finally managed to solve the problem.
Luajit is also an host package, so to compile it uses host libraries
installed on my system. One of the package it uses is linux-libc-dev.
I'm on a 64 bits, so the package is in the 64bit variant. It usually
compiles without a problem until this patch:
luajit: needs for 32bit archictectures a 32bit host gcc
So the host compiler doesn't look anymore for the 64bit version of
linux-libc-dev but for the i386 one. So solving the problem was a
matter of installing linux-libc-dev:i386.
Is there any reason why this package not warned me about this type of
behaviour? Or it's a matter of fact that buildroot doesn't provides
any guarantee on host packages?
Thank you for your time!
>
> Sincerely, Angelo.
>
>>
>> Best regards,
>>
>> Thomas
>> --
>> Thomas Petazzoni, CTO, Free Electrons
>> Embedded Linux, Kernel and Android engineering
>> http://free-electrons.com
>
>
>
> --
> Profile: http://it.linkedin.com/in/compagnucciangelo
--
Profile: http://it.linkedin.com/in/compagnucciangelo
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-03-07 12:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.