Hi, I'm using kernel 4.4, and it does build properly with gcc 6.1. But the build does fail on other packages later on, so I ended up reverting to 5.3 for now. I also think we should make 4.4 the default kernel version for meta-raspberrypi, to follow the raspberrypi repository. The fixes on 4.1 are far from what can be seen on 4.4 now (on the part that I'm involved with, vc4 on 4.1 is not functional, while it is on 4.4 and later). And it will only grow worse.
Herve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Paul Barker Sent: dimanche 5 juin 2016 13:22 To: Jonathan Liu <[email protected]> Cc: Yocto Project <[email protected]> Subject: Re: [yocto] gcc-6.1 and raspi On Sun, 5 Jun 2016 20:44:42 +1000 Jonathan Liu <[email protected]> wrote: > On 5 June 2016 at 09:00, Trevor Woerner <[email protected]> wrote: > > Has anyone tried building a raspi image lately from master? > > > > ERROR: linux-raspberrypi-1_4.1.21+gitAUTOINC+ff45bc0e89-r0 > > do_compile: Function failed: do_compile > > > > | In file included > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/linux/compiler.h:54:0, > > | > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/uapi/linux/stddef.h:1, > > | > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/linux/stddef.h:4, > > | > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/uapi/linux/posix_types.h:4, > > | > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/uapi/linux/types.h:13, > > | > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/linux/types.h:5, > > | > > from > > /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-sour > > ce/include/linux/mod_devicetable.h:11, > > | > > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/scrip ts/mod/devicetable-offsets.c:2: > > | /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/inclu de/linux/compiler-gcc.h:121:30: > > fatal error: linux/compiler-gcc6.h: No such file or directory > > I can confirm this issue. > > Regards, > Jonathan I can get a successful build with my kernel branch where I've merged the latest 4.1.y upstream stable release into the Raspberry Pi 4.1.y branch (https://gitlab.com/oryx/linux-oryx-rpi). I don't have the time to bisect this right now but one commit stands out as an obvious candidate for being the fix: compiler-gcc: integrate the various compiler-gcc[345].h files https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/ ?h=linux-4.1.y&id=f320793e52aee78f0fbb8bcaf10e6614d2e67bfc I can also get a successful build using the recipe for the 4.4.y branch in meta-raspberrypi. The Raspberry Pi repository has moved over to the 4.4.y branch as the default, we should probably do the same in meta-raspberrypi. Thanks, Paul Barker -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
