bareboxenv-target

Barbier, Renaud renaud.barbier at abaco.com
Tue Mar 23 14:44:17 GMT 2021



> -----Original Message-----
> From: Ahmad Fatoum [mailto:a.fatoum at pengutronix.de]
> Sent: 23 March 2021 12:34
> To: Barbier, Renaud <renaud.barbier at abaco.com>;
> barebox at lists.infradead.org; Roland Hieber <rhi at pengutronix.de>
> Subject: Re: bareboxenv-target
> 
> 
> 
> [**EXTERNAL SOURCE**]:Please verify the source before clicking link or
> opening attachment.
> 
> Hello Renaud,
> 
> On 28.10.20 12:09, Barbier, Renaud wrote:
> > I am building bareboxenv-target for a  cortex-A9 board (not present
> upstream) with gcc 9.3.0 and got this error:
> >
> > arm-oe-linux-gnueabi-gcc -Wp,-MMD,scripts/.bareboxenv-target.d -Wall -
> Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
> -I /mnt/projects/all/openware-
> core/home/renaud/sandbox/bootloader/barebox-rebase/scripts/include      -o
> scripts/bareboxenv-target scripts/bareboxenv-target.c
> > In file included from scripts/bareboxenv-target.c:1:
> > scripts/bareboxenv.c:17:10: fatal error: stdio.h: No such file or directory
> >    17 | #include <stdio.h>
> >       |          ^~~~~~~~~
> >
> >
> > It looks like sysroot is missing as when I add to scripts/Makefile:
> > ifdef SDKTARGETSYSROOT
> >     userccflags += --sysroot=$(SDKTARGETSYSROOT)
> > endif
> >
> > It builds.
> >
> > Not much came out from search on google but one thread that refers to this
> problem when building with Yocto.
> >
> > Could it it be related to  how our toolchain got build?
> 
> Just ran into the same issue. Cause is as Roland describes the lack of --sysroot
> as default and that it comes in via $CC, which Kbuild doesn't expect.
> 
> I guess this would break building kernel host tools too or how do they solve it?
> > 
> > Not working either:
> >  [renaud at ediowsrv01]$ make tools/leds
> >   DESCEND  leds
> > arm-oe-linux-gnueabi-gcc -Wall -Wextra -g -I../../include/uapi -o uledmon uledmon.c
> > uledmon.c:14:10: fatal error: fcntl.h: No such file or directory
> >    14 | #include <fcntl.h>
> >       |          ^~~~~~~~~

> 
> Cheers,
> Ahmad




More information about the barebox mailing list