All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.