[yocto] Raspberry Pi 2 BSP build problem

Alan Hughes alanhughes at e2eservices.co.uk
Mon Mar 7 12:10:40 PST 2016


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-gnueabi/u-boot-rpi/git-r0/git/include/linux/compiler-gcc.h:87:30: fatal error: linux/compiler-gcc5.h: No such file or directory
| compilation terminated.
| 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-gnueabi/u-boot-rpi/git-r0/git/include/linux/compiler-gcc.h:87:30: fatal error: linux/compiler-gcc5.h: No such file or directory
| compilation terminated.
| make[1]: Leaving directory `/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git'
| make[1]: Entering directory `/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git'
| arm-poky-linux-gnueabi-gcc  --sysroot=/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/raspberrypi2 -DDO_DEPS_ONLY \
|       -g  -Os  -fno-common -ffixed-r8 -D__KERNEL__ -I/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage   \
|       -o lib/asm-offsets.s lib/asm-offsets.c -c -S
| if [ -f arch/arm/cpu/arm1176/bcm2835/asm-offsets.c ];then \
|       arm-poky-linux-gnueabi-gcc  --sysroot=/home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/raspberrypi2 -DDO_DEPS_ONLY \
|       -g  -Os  -fno-common -ffixed-r8 -D__KERNEL__ -I/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/sde/Projects/neataccess-lite/bsp/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage   \
|               -o arch/arm/cpu/arm1176/bcm2835/asm-offsets.s arch/arm/cpu/arm1176/bcm2835/asm-offsets.c -c -S; \
| else \
|       touch arch/arm/cpu/arm1176/bcm2835/asm-offsets.s; \
| fi
| 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 /home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/common.h:118,
|                  from lib/asm-offsets.c:18:
| /home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git/include/linux/compiler-gcc.h:87:30: fatal error: linux/compiler-gcc5.h: No such file or directory
| compilation terminated.
| Generating include/generated/asm-offsets.h
| tools/scripts/make-asm-offsets arch/arm/cpu/arm1176/bcm2835/asm-offsets.s include/generated/asm-offsets.h
| make[1]: *** [lib/asm-offsets.s] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory `/home/sde/Projects/neataccess-lite/bsp/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot-rpi/git-r0/git'
| make: *** [rpi_b] Error 2
| 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: Task 196 (/opt/yocto/2.0/meta-raspberrypi/recipes-bsp/u-boot/u-boot-rpi_git.bb, do_compile) failed with exit code '1'

 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender immediately and then delete the email from your system. 

Internet communications are not secure and therefore e2E Services Ltd does not accept any liability for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of e2E Services Ltd.

Although this email and any attachments have been scanned for viruses, the success of scanning products is not guaranteed.  The recipient(s) should therefore carry out any checks that they believe to be appropriate in this respect.

e2E Services Ltd. is a limited company registered in the UK, No. 3878701. Registered Office: e2E Services Ltd, George Court, Bartholomews Walk,  Ely, Cambridgeshire, CB7 4JW 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160307/289283e8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 13621 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160307/289283e8/attachment.bin>


More information about the yocto mailing list