Re: bareboxenv-target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 28, 2020 at 11:09:18AM +0000, 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?

Which toolchain were you using? IIRC, the Yocto SDK builds don't set a
valid SYSROOT during the build, and patch it in through a compile option
when calling the compiler.

 - Roland

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@xxxxxxxxxxxxxx     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux