[yocto] gcc-6.1 and raspi
Paul Barker
paul at paulbarker.me.uk
Sun Jun 5 04:21:32 PDT 2016
On Sun, 5 Jun 2016 20:44:42 +1000
Jonathan Liu <net147 at gmail.com> wrote:
> On 5 June 2016 at 09:00, Trevor Woerner <twoerner at gmail.com> 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-source/include/linux/compiler.h:54:0,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/uapi/linux/stddef.h:1,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/linux/stddef.h:4,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/uapi/linux/posix_types.h:4,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/uapi/linux/types.h:13,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/linux/types.h:5,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/linux/mod_devicetable.h:11,
> > |
> > from /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/scripts/mod/devicetable-offsets.c:2:
> > | /z/layerindex-master/raspi2/tmp/work-shared/raspberrypi2/kernel-source/include/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
More information about the yocto
mailing list