From: "Barbier, Renaud" <renaud.barbier@abaco.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>,
"barebox@lists.infradead.org" <barebox@lists.infradead.org>,
Roland Hieber <rhi@pengutronix.de>
Subject: RE: bareboxenv-target
Date: Tue, 23 Mar 2021 14:44:17 +0000 [thread overview]
Message-ID: <MN2PR16MB3135E3998BF7EA4489AE059891649@MN2PR16MB3135.namprd16.prod.outlook.com> (raw)
In-Reply-To: <70a0b276-296e-f8b9-dcf5-22293209d55d@pengutronix.de>
> -----Original Message-----
> From: Ahmad Fatoum [mailto:a.fatoum@pengutronix.de]
> Sent: 23 March 2021 12:34
> To: Barbier, Renaud <renaud.barbier@abaco.com>;
> barebox@lists.infradead.org; Roland Hieber <rhi@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@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2021-03-23 14:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-28 11:09 bareboxenv-target Barbier, Renaud
2020-11-02 13:13 ` bareboxenv-target Roland Hieber
2020-11-04 10:05 ` bareboxenv-target Barbier, Renaud
2020-11-06 9:55 ` bareboxenv-target Barbier, Renaud
2020-11-06 12:25 ` bareboxenv-target Roland Hieber
2020-11-06 13:12 ` bareboxenv-target Barbier, Renaud
2020-11-06 12:06 ` bareboxenv-target Barbier, Renaud
2020-11-06 12:31 ` bareboxenv-target Roland Hieber
2021-03-23 12:33 ` bareboxenv-target Ahmad Fatoum
2021-03-23 14:44 ` Barbier, Renaud [this message]
2021-03-23 15:47 ` bareboxenv-target Ahmad Fatoum
2021-05-31 17:10 ` bareboxenv-target Ahmad Fatoum
-- strict thread matches above, loose matches on Subject: below --
2014-11-14 18:44 bareboxenv-target Balasa, Bogdan
2014-11-15 17:54 ` bareboxenv-target Sascha Hauer
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=MN2PR16MB3135E3998BF7EA4489AE059891649@MN2PR16MB3135.namprd16.prod.outlook.com \
--to=renaud.barbier@abaco.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=rhi@pengutronix.de \
/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