This looks like the problem we were experiencing a while back when we
were switching from gcc-4x to gcc-5x. If I remember correctly, a certain
range of slightly older kernel/u-boot could not be compiled by gcc-5x
toolchains without a patch.
You could look around for that patch. Or you could try setting the
following in your conf/local.conf:
GCCVERSION = "4.9%"
On 03/07/16 15:10, Alan Hughes wrote:
Raspberry Pi 2 BSP build problem
I've been trying to build a BSP using Yocto 2.0 (Jethro) targetting a
Raspberry Pi 2. Everything goes OK until we reach the point of
building the "u-boot-rpi" package, at which point it blows up saying
that it cannot find the file "linux/compiler-gcc5.h". I've looked on
the web for any clues, but to date have not found anything relevent.
If anyone has any suggestions I would be more than happy to try them out.
Note: error messages attached below.
Alan
WARNING: Host distribution "CentOS-Linux-7.2.1511" has not been
validated with this version of the build system; you may possibly
experience unexpected failures. It is recommended that you use a
tested distribution.
Parsing recipes: 100%
|##|
ETA: 00:00:00
Parsing of 1919 .bb files complete (0 cached, 1919 parsed). 2489
targets, 141 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION= "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "CentOS-Linux-7.2.1511"
TARGET_SYS= "arm-poky-linux-gnueabi"
MACHINE = "raspberrypi2"
DISTRO= "poky"
DISTRO_VERSION= "2.0.1"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard
vfpv4 cortexa7"
TARGET_FPU= "vfp-vfpv4-neon"
meta
meta-yocto
meta-yocto-bsp= "jethro:7fe17a2942ff03e2ec47d566fd5393f52b2eb736"
meta-oe
meta-systemd
meta-python
meta-networking
meta-multimedia = "jethro:dc5634968b270dde250690609f0015f881db81f2"
meta-java = "master:4c9dfc2b14676db414d915ba3bab9e101de73e05"
meta-oracle-java = "master:f7c98706f80a2488ad2628e5b0c6d3f9f80c24fd"
meta-raspberrypi = "jethro:f2cff839f52a6e6211337fc45c7c3eabf0fac113"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL
ftp://invisible-island.net/ncurses/current/ncurses-5.9-20150329.tgz,
attempting MIRRORS if available
WARNING: Failed to fetch URL
http://www.openssl.org/source/openssl-1.0.2d.tar.gz, attempting
MIRRORS if available
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/temp/log.do_compile.44274)
ERROR: Logfile of failure stored in:
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/temp/log.do_compile.44274
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi-
CC=arm-poky-linux-gnueabi-gcc
--sysroot=/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/raspberrypi2
V=1 HOSTCC=gcc
-isystem/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/usr/include
-O2 -pipe
-L/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/usr/lib
-L/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/lib
-Wl,-rpath-link,/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/usr/lib
-Wl,-rpath-link,/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/lib
-Wl,-rpath,/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/usr/lib
-Wl,-rpath,/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/lib
-Wl,-O1 rpi_b
| Configuring for rpi_b board...
| make
| make[1]: Entering directory
`/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git'
| Generating include/autoconf.mk
| Generating include/autoconf.mk.dep
| In file included from
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/linux/compiler.h:40:0,
| from
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/linux/byteorder/little_endian.h:12,
| from
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/asm/byteorder.h:29,
| from
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/compiler.h:112,
| from
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/image.h:36,
| from include/common.h:118:
|
/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-