* gcc-6.1 and raspi
@ 2016-06-04 23:00 Trevor Woerner
2016-06-05 10:44 ` Jonathan Liu
0 siblings, 1 reply; 9+ messages in thread
From: Trevor Woerner @ 2016-06-04 23:00 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-04 23:00 gcc-6.1 and raspi Trevor Woerner
@ 2016-06-05 10:44 ` Jonathan Liu
2016-06-05 11:21 ` Paul Barker
0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Liu @ 2016-06-05 10:44 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Yocto Project
On 5 June 2016 at 09:00, Trevor Woerner <twoerner@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-05 10:44 ` Jonathan Liu
@ 2016-06-05 11:21 ` Paul Barker
2016-06-05 12:14 ` Herve Jourdain
0 siblings, 1 reply; 9+ messages in thread
From: Paul Barker @ 2016-06-05 11:21 UTC (permalink / raw)
To: Jonathan Liu; +Cc: Yocto Project
On Sun, 5 Jun 2016 20:44:42 +1000
Jonathan Liu <net147@gmail.com> wrote:
> On 5 June 2016 at 09:00, Trevor Woerner <twoerner@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-05 11:21 ` Paul Barker
@ 2016-06-05 12:14 ` Herve Jourdain
2016-06-05 12:58 ` Trevor Woerner
0 siblings, 1 reply; 9+ messages in thread
From: Herve Jourdain @ 2016-06-05 12:14 UTC (permalink / raw)
To: 'Paul Barker', 'Jonathan Liu'; +Cc: 'Yocto Project'
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: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org]
On Behalf Of Paul Barker
Sent: dimanche 5 juin 2016 13:22
To: Jonathan Liu <net147@gmail.com>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: [yocto] gcc-6.1 and raspi
On Sun, 5 Jun 2016 20:44:42 +1000
Jonathan Liu <net147@gmail.com> wrote:
> On 5 June 2016 at 09:00, Trevor Woerner <twoerner@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-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
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-05 12:14 ` Herve Jourdain
@ 2016-06-05 12:58 ` Trevor Woerner
2016-06-05 14:55 ` ***SPAM*** " Herve Jourdain
0 siblings, 1 reply; 9+ messages in thread
From: Trevor Woerner @ 2016-06-05 12:58 UTC (permalink / raw)
To: 'Yocto Project'
On Sun 2016-06-05 @ 02:14:29 PM, Herve Jourdain wrote:
> 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.
Both the official meta-raspberrypi and Khem Raj's meta-raspberrypi layers have
recipes for the 4.4% kernel. I tried them but I keep getting:
ERROR: linux-raspberrypi-1_4.1.21+gitAUTOINC+ff45bc0e89-r0 do_rpiboot_mkimage: Function failed: do_rpiboot_mkimage
Log data follows:
| DEBUG: Executing shell function do_rpiboot_mkimage
| Usage: mkknlimg [--dtok] [--283x] <vmlinux|zImage|bzImage> <outfile>
| WARNING: /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.1.21+gitAUTOINC+ff45bc0e89-r0/temp/run.do_rpiboot_mkimage.1254:1 exit 1 from '/z/layerindex-master/raspi2/tmp/sysroots/x86_64-linux/usr/bin/mkknlimg --dtok ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}'
| ERROR: Function failed: do_rpiboot_mkimage (log file is located at /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.1.21+gitAUTOINC+ff45bc0e89-r0/temp/log.do_rpiboot_mkimage.1254)
So I'm not sure what's going on there.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ***SPAM*** Re: gcc-6.1 and raspi
2016-06-05 12:58 ` Trevor Woerner
@ 2016-06-05 14:55 ` Herve Jourdain
2016-06-05 20:08 ` Trevor Woerner
0 siblings, 1 reply; 9+ messages in thread
From: Herve Jourdain @ 2016-06-05 14:55 UTC (permalink / raw)
To: 'Trevor Woerner', 'Yocto Project'
Hi,
It seems like you are building the 4.1.21 kernel.
Did you set PREFERRED_VERSION_linux-raspberrypi = "4.4.%" in your
distro.conf or local.conf?
Herve
-----Original Message-----
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org]
On Behalf Of Trevor Woerner
Sent: dimanche 5 juin 2016 14:58
To: 'Yocto Project' <yocto@yoctoproject.org>
Subject: ***SPAM*** Re: [yocto] gcc-6.1 and raspi
On Sun 2016-06-05 @ 02:14:29 PM, Herve Jourdain wrote:
> 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.
Both the official meta-raspberrypi and Khem Raj's meta-raspberrypi layers
have recipes for the 4.4% kernel. I tried them but I keep getting:
ERROR: linux-raspberrypi-1_4.1.21+gitAUTOINC+ff45bc0e89-r0
do_rpiboot_mkimage: Function failed: do_rpiboot_mkimage
Log data follows:
| DEBUG: Executing shell function do_rpiboot_mkimage
| Usage: mkknlimg [--dtok] [--283x] <vmlinux|zImage|bzImage>
<outfile>
| WARNING:
/z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-r
aspberrypi/1_4.1.21+gitAUTOINC+ff45bc0e89-r0/temp/run.do_rpiboot_mkimage.125
4:1 exit 1 from
'/z/layerindex-master/raspi2/tmp/sysroots/x86_64-linux/usr/bin/mkknlimg
--dtok ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}'
| ERROR: Function failed: do_rpiboot_mkimage (log file is located at
/z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-r
aspberrypi/1_4.1.21+gitAUTOINC+ff45bc0e89-r0/temp/log.do_rpiboot_mkimage.125
4)
So I'm not sure what's going on there.
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-05 14:55 ` ***SPAM*** " Herve Jourdain
@ 2016-06-05 20:08 ` Trevor Woerner
2016-06-05 21:38 ` Herve Jourdain
0 siblings, 1 reply; 9+ messages in thread
From: Trevor Woerner @ 2016-06-05 20:08 UTC (permalink / raw)
To: Herve Jourdain; +Cc: 'Yocto Project'
On Sun 2016-06-05 @ 04:55:47 PM, Herve Jourdain wrote:
> It seems like you are building the 4.1.21 kernel.
> Did you set PREFERRED_VERSION_linux-raspberrypi = "4.4.%" in your
> distro.conf or local.conf?
I was trying to save myself the time required to rebuild with the 4.4 kernel.
I knew from my experiments that the result was the same for both, but here it
is anyway:
ERROR: linux-raspberrypi-1_4.4.9+gitAUTOINC+3b440738b5-r0 do_rpiboot_mkimage: Function failed: do_rpiboot_mkimage
Log data follows:
| DEBUG: Executing shell function do_rpiboot_mkimage
| Usage: mkknlimg [--dtok] [--283x] <vmlinux|zImage|bzImage> <outfile>
| WARNING: /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.4.9+gitAUTOINC+3b440738b5-r0/temp/run.do_rpiboot_mkimage.18615:1 exit 1 from '/z/layerindex-master/raspi2/tmp/sysroots/x86_64-linux/usr/bin/mkknlimg --dtok ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}'
| ERROR: Function failed: do_rpiboot_mkimage (log file is located at /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.4.9+gitAUTOINC+3b440738b5-r0/temp/log.do_rpiboot_mkimage.18615)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-05 20:08 ` Trevor Woerner
@ 2016-06-05 21:38 ` Herve Jourdain
2016-06-05 23:36 ` Trevor Woerner
0 siblings, 1 reply; 9+ messages in thread
From: Herve Jourdain @ 2016-06-05 21:38 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]
Hi,
This one is a different issue, that was caused by a patch in oe 1 week ago.
I did send a patch to solve it last wednesday, I believe.
The root cause is KERNEL_OUTPUT has been removed from kernel.bbclass, but meta-raspberrypi uses it.
This is the link to the patch:
http://article.gmane.org/gmane.linux.embedded.yocto.general/30093/
Herve
> On 6 juin 2016, at 04:08, Trevor Woerner <twoerner@gmail.com> wrote:
>
>> On Sun 2016-06-05 @ 04:55:47 PM, Herve Jourdain wrote:
>> It seems like you are building the 4.1.21 kernel.
>> Did you set PREFERRED_VERSION_linux-raspberrypi = "4.4.%" in your
>> distro.conf or local.conf?
>
> I was trying to save myself the time required to rebuild with the 4.4 kernel.
> I knew from my experiments that the result was the same for both, but here it
> is anyway:
>
> ERROR: linux-raspberrypi-1_4.4.9+gitAUTOINC+3b440738b5-r0 do_rpiboot_mkimage: Function failed: do_rpiboot_mkimage
> Log data follows:
> | DEBUG: Executing shell function do_rpiboot_mkimage
> | Usage: mkknlimg [--dtok] [--283x] <vmlinux|zImage|bzImage> <outfile>
> | WARNING: /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.4.9+gitAUTOINC+3b440738b5-r0/temp/run.do_rpiboot_mkimage.18615:1 exit 1 from '/z/layerindex-master/raspi2/tmp/sysroots/x86_64-linux/usr/bin/mkknlimg --dtok ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}'
> | ERROR: Function failed: do_rpiboot_mkimage (log file is located at /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.4.9+gitAUTOINC+3b440738b5-r0/temp/log.do_rpiboot_mkimage.18615)
[-- Attachment #2: Type: text/html, Size: 2422 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-6.1 and raspi
2016-06-05 21:38 ` Herve Jourdain
@ 2016-06-05 23:36 ` Trevor Woerner
0 siblings, 0 replies; 9+ messages in thread
From: Trevor Woerner @ 2016-06-05 23:36 UTC (permalink / raw)
To: Herve Jourdain; +Cc: Yocto Project
On Mon 2016-06-06 @ 05:38:00 AM, Herve Jourdain wrote:
> Hi,
>
> This one is a different issue, that was caused by a patch in oe 1 week ago.
> I did send a patch to solve it last wednesday, I believe.
> The root cause is KERNEL_OUTPUT has been removed from kernel.bbclass, but meta-raspberrypi uses it.
> This is the link to the patch:
> http://article.gmane.org/gmane.linux.embedded.yocto.general/30093/
Thanks, the patch works great :-)
>
> Herve
>
> > On 6 juin 2016, at 04:08, Trevor Woerner <twoerner@gmail.com> wrote:
> >
> >> On Sun 2016-06-05 @ 04:55:47 PM, Herve Jourdain wrote:
> >> It seems like you are building the 4.1.21 kernel.
> >> Did you set PREFERRED_VERSION_linux-raspberrypi = "4.4.%" in your
> >> distro.conf or local.conf?
> >
> > I was trying to save myself the time required to rebuild with the 4.4 kernel.
> > I knew from my experiments that the result was the same for both, but here it
> > is anyway:
> >
> > ERROR: linux-raspberrypi-1_4.4.9+gitAUTOINC+3b440738b5-r0 do_rpiboot_mkimage: Function failed: do_rpiboot_mkimage
> > Log data follows:
> > | DEBUG: Executing shell function do_rpiboot_mkimage
> > | Usage: mkknlimg [--dtok] [--283x] <vmlinux|zImage|bzImage> <outfile>
> > | WARNING: /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.4.9+gitAUTOINC+3b440738b5-r0/temp/run.do_rpiboot_mkimage.18615:1 exit 1 from '/z/layerindex-master/raspi2/tmp/sysroots/x86_64-linux/usr/bin/mkknlimg --dtok ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}'
> > | ERROR: Function failed: do_rpiboot_mkimage (log file is located at /z/layerindex-master/raspi2/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.4.9+gitAUTOINC+3b440738b5-r0/temp/log.do_rpiboot_mkimage.18615)
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-06-05 23:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-04 23:00 gcc-6.1 and raspi Trevor Woerner
2016-06-05 10:44 ` Jonathan Liu
2016-06-05 11:21 ` Paul Barker
2016-06-05 12:14 ` Herve Jourdain
2016-06-05 12:58 ` Trevor Woerner
2016-06-05 14:55 ` ***SPAM*** " Herve Jourdain
2016-06-05 20:08 ` Trevor Woerner
2016-06-05 21:38 ` Herve Jourdain
2016-06-05 23:36 ` Trevor Woerner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.