All of lore.kernel.org
 help / color / mirror / Atom feed
* Raspberry Pi 3 build issue
@ 2017-04-24 18:25 alexis.lothore
  2017-04-25  9:06 ` Paul Barker
  0 siblings, 1 reply; 4+ messages in thread
From: alexis.lothore @ 2017-04-24 18:25 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2577 bytes --]

Hello, 
I am currently encountering an issue with meta-raspberry and more 
specifically Raspberry Pi 3 build. Since I was not sure the problem was 
not my fault, I cloned a fresh copy of poky and meta-raspberrypi (both 
checked out on morty, and meta dependencies on morty too), but the problem 
is still appearing, trying to build the image rpi-hwup-image with BDISTRO 
poky for MACHINE 
raspberrypi3 :

➜ build git:(morty) bitbake rpi-hwup-image
Loading cache: 100% 
|#########################################################################################################################################################################################################| 
Time: 0:00:00
Loaded 2 entries from dependency cache.
WARNING: 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb: 
Exception during build_dependencies for PKG_kernel-image | ETA: --:--:--
WARNING: 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb: 
Error during finalise of 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
WARNING: 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb: 
Exception during build_dependencies for PKG_kernel-image
WARNING: 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb: 
Error during finalise of 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb
ERROR: ExpansionError during parsing 
/home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-image, 
expression was 
kernel-image-${@legitimize_package_name('${@get_kernelversion_headers('/home/alexis/Projets/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.9.21+git${SRCPV}-r0/linux-raspberrypi3-standard-build')}')} 
which triggered exception SyntaxError: invalid syntax (PKG_kernel-image, 
line 1)
Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I am executing the build on an x86 machine with Debian 8.

Unfortunately, since the problem seems to appear right at parsing, I 
cannot get the exact variable expansion with bitbake -e. Apparently my 
Yocto setup does not encounter the issue if I try the build for another 
RPI target, like raspberrypi0. Any advice on how to troubleshoot this 
issue ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Raspberry Pi 3 build issue
  2017-04-24 18:25 Raspberry Pi 3 build issue alexis.lothore
@ 2017-04-25  9:06 ` Paul Barker
  2017-04-25 19:01   ` alexis.lothore
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Barker @ 2017-04-25  9:06 UTC (permalink / raw)
  To: alexis.lothore; +Cc: yocto

On Mon, Apr 24, 2017 at 7:25 PM,  <alexis.lothore@gmail.com> wrote:
> Hello,
> I am currently encountering an issue with meta-raspberry and more
> specifically Raspberry Pi 3 build. Since I was not sure the problem was
> not my fault, I cloned a fresh copy of poky and meta-raspberrypi (both
> checked out on morty, and meta dependencies on morty too), but the problem
> is still appearing, trying to build the image rpi-hwup-image with BDISTRO
> poky for MACHINE
> raspberrypi3 :
>
> ➜ build git:(morty) bitbake rpi-hwup-image
> Loading cache: 100%
> |#########################################################################################################################################################################################################|
> Time: 0:00:00
> Loaded 2 entries from dependency cache.
> WARNING:
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:
> Exception during build_dependencies for PKG_kernel-image | ETA: --:--:--
> WARNING:
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:
> Error during finalise of
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
> WARNING:
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:
> Exception during build_dependencies for PKG_kernel-image
> WARNING:
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:
> Error during finalise of
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb
> ERROR: ExpansionError during parsing
> /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
> Traceback (most recent call last):
> bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-image,
> expression was
> kernel-image-${@legitimize_package_name('${@get_kernelversion_headers('/home/alexis/Projets/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.9.21+git${SRCPV}-r0/linux-raspberrypi3-standard-build')}')}
> which triggered exception SyntaxError: invalid syntax (PKG_kernel-image,
> line 1)
> Summary: There were 4 WARNING messages shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> I am executing the build on an x86 machine with Debian 8.
>
> Unfortunately, since the problem seems to appear right at parsing, I
> cannot get the exact variable expansion with bitbake -e. Apparently my
> Yocto setup does not encounter the issue if I try the build for another
> RPI target, like raspberrypi0. Any advice on how to troubleshoot this
> issue ?
> --

I've just tried to reproduce this using a fresh clone of poky and
meta-raspberrypi on the morty branch. I edited bblayers.conf to add
the meta-raspberrypi layer and then edited local.conf to set MACHINE =
"raspberrypi3", those were my only changes. I then ran "bitbake
rpi-hwup-image" and it's correctly parsed all the recipes and started
the build.

Which exact commits of poky and meta-raspberrypi are you using? I have
the following:

meta
meta-poky
meta-yocto-bsp    = "morty:924e576b8930fd2268d85f0b151e5f68a3c2afce"
meta-raspberrypi  = "morty:28d4404f89eb59d406b4976c0e3f5ca19137ba74"

Thanks,

-- 
Paul Barker
Co-Founder & Principal Engineer
Togán Labs Ltd


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Raspberry Pi 3 build issue
  2017-04-25  9:06 ` Paul Barker
@ 2017-04-25 19:01   ` alexis.lothore
  2017-04-29  9:12     ` alexis.lothore
  0 siblings, 1 reply; 4+ messages in thread
From: alexis.lothore @ 2017-04-25 19:01 UTC (permalink / raw)
  To: Paul Barker; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3985 bytes --]

Hello Paul,
thanks for the try. It should means that there is a detail on my setup 
which prevents the build from being done. I encounter the error on the 
commits id your provided too. I also tried being on last tag on poky 
project for morty branch, without success. I also suspected my python 
configuration/version so I resintalled it completely, but It made no 
change to the error.

On Tue, 25 Apr 2017, Paul Barker wrote:

> On Mon, Apr 24, 2017 at 7:25 PM,  <alexis.lothore@gmail.com> wrote:
> > Hello,
> > I am currently encountering an issue with meta-raspberry and more
> > specifically Raspberry Pi 3 build. Since I was not sure the problem was
> > not my fault, I cloned a fresh copy of poky and meta-raspberrypi (both
> > checked out on morty, and meta dependencies on morty too), but the problem
> > is still appearing, trying to build the image rpi-hwup-image with BDISTRO
> > poky for MACHINE
> > raspberrypi3 :
> >
> > ➜ build git:(morty) bitbake rpi-hwup-image
> > Loading cache: 100%
> > |#########################################################################################################################################################################################################|
> > Time: 0:00:00
> > Loaded 2 entries from dependency cache.
> > WARNING:
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:
> > Exception during build_dependencies for PKG_kernel-image | ETA: --:--:--
> > WARNING:
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:
> > Error during finalise of
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
> > WARNING:
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:
> > Exception during build_dependencies for PKG_kernel-image
> > WARNING:
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:
> > Error during finalise of
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb
> > ERROR: ExpansionError during parsing
> > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
> > Traceback (most recent call last):
> > bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-image,
> > expression was
> > kernel-image-${@legitimize_package_name('${@get_kernelversion_headers('/home/alexis/Projets/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.9.21+git${SRCPV}-r0/linux-raspberrypi3-standard-build')}')}
> > which triggered exception SyntaxError: invalid syntax (PKG_kernel-image,
> > line 1)
> > Summary: There were 4 WARNING messages shown.
> > Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> >
> > I am executing the build on an x86 machine with Debian 8.
> >
> > Unfortunately, since the problem seems to appear right at parsing, I
> > cannot get the exact variable expansion with bitbake -e. Apparently my
> > Yocto setup does not encounter the issue if I try the build for another
> > RPI target, like raspberrypi0. Any advice on how to troubleshoot this
> > issue ?
> > --
> 
> I've just tried to reproduce this using a fresh clone of poky and
> meta-raspberrypi on the morty branch. I edited bblayers.conf to add
> the meta-raspberrypi layer and then edited local.conf to set MACHINE =
> "raspberrypi3", those were my only changes. I then ran "bitbake
> rpi-hwup-image" and it's correctly parsed all the recipes and started
> the build.
> 
> Which exact commits of poky and meta-raspberrypi are you using? I have
> the following:
> 
> meta
> meta-poky
> meta-yocto-bsp    = "morty:924e576b8930fd2268d85f0b151e5f68a3c2afce"
> meta-raspberrypi  = "morty:28d4404f89eb59d406b4976c0e3f5ca19137ba74"
> 
> Thanks,
> 
> -- 
> Paul Barker
> Co-Founder & Principal Engineer
> Togán Labs Ltd
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Raspberry Pi 3 build issue
  2017-04-25 19:01   ` alexis.lothore
@ 2017-04-29  9:12     ` alexis.lothore
  0 siblings, 0 replies; 4+ messages in thread
From: alexis.lothore @ 2017-04-29  9:12 UTC (permalink / raw)
  To: alexis.lothore; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 5041 bytes --]

Hello,
I finally figured out what was messing my build, and it was a poor 
mistake from my side... I am posting it here for anyone who could encounter a similar issue.

I did let my custom layer in my bblayer.conf. I did not think it could 
break the build, but I forgot about the bbappends there. In fact there was one bbappend trying to 
patch a dts file, and I poorly mixed overrides in the bbappend : I used a 
SRC_URI_raspberrypi3 to add the patch in the bbappend, but I also have put 
the patch in a machine specific directory (raspberrypi3/xxx.patch). 
Letting only the second option seems to be the correct way to proceed
(http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#best-practices-to-follow-when-creating-layers, 
section "Place Machine-Specific Files in Machine-Specific Locations)

Regards,

On Tue, 25 Apr 2017, alexis.lothore@gmail.com wrote:

> Hello Paul,
> thanks for the try. It should means that there is a detail on my setup 
> which prevents the build from being done. I encounter the error on the 
> commits id your provided too. I also tried being on last tag on poky 
> project for morty branch, without success. I also suspected my python 
> configuration/version so I resintalled it completely, but It made no 
> change to the error.
> 
> On Tue, 25 Apr 2017, Paul Barker wrote:
> 
> > On Mon, Apr 24, 2017 at 7:25 PM,  <alexis.lothore@gmail.com> wrote:
> > > Hello,
> > > I am currently encountering an issue with meta-raspberry and more
> > > specifically Raspberry Pi 3 build. Since I was not sure the problem was
> > > not my fault, I cloned a fresh copy of poky and meta-raspberrypi (both
> > > checked out on morty, and meta dependencies on morty too), but the problem
> > > is still appearing, trying to build the image rpi-hwup-image with BDISTRO
> > > poky for MACHINE
> > > raspberrypi3 :
> > >
> > > ➜ build git:(morty) bitbake rpi-hwup-image
> > > Loading cache: 100%
> > > |#########################################################################################################################################################################################################|
> > > Time: 0:00:00
> > > Loaded 2 entries from dependency cache.
> > > WARNING:
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:
> > > Exception during build_dependencies for PKG_kernel-image | ETA: --:--:--
> > > WARNING:
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:
> > > Error during finalise of
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
> > > WARNING:
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:
> > > Exception during build_dependencies for PKG_kernel-image
> > > WARNING:
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:
> > > Error during finalise of
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb
> > > ERROR: ExpansionError during parsing
> > > /home/alexis/Projets/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb
> > > Traceback (most recent call last):
> > > bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-image,
> > > expression was
> > > kernel-image-${@legitimize_package_name('${@get_kernelversion_headers('/home/alexis/Projets/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.9.21+git${SRCPV}-r0/linux-raspberrypi3-standard-build')}')}
> > > which triggered exception SyntaxError: invalid syntax (PKG_kernel-image,
> > > line 1)
> > > Summary: There were 4 WARNING messages shown.
> > > Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> > >
> > > I am executing the build on an x86 machine with Debian 8.
> > >
> > > Unfortunately, since the problem seems to appear right at parsing, I
> > > cannot get the exact variable expansion with bitbake -e. Apparently my
> > > Yocto setup does not encounter the issue if I try the build for another
> > > RPI target, like raspberrypi0. Any advice on how to troubleshoot this
> > > issue ?
> > > --
> > 
> > I've just tried to reproduce this using a fresh clone of poky and
> > meta-raspberrypi on the morty branch. I edited bblayers.conf to add
> > the meta-raspberrypi layer and then edited local.conf to set MACHINE =
> > "raspberrypi3", those were my only changes. I then ran "bitbake
> > rpi-hwup-image" and it's correctly parsed all the recipes and started
> > the build.
> > 
> > Which exact commits of poky and meta-raspberrypi are you using? I have
> > the following:
> > 
> > meta
> > meta-poky
> > meta-yocto-bsp    = "morty:924e576b8930fd2268d85f0b151e5f68a3c2afce"
> > meta-raspberrypi  = "morty:28d4404f89eb59d406b4976c0e3f5ca19137ba74"
> > 
> > Thanks,
> > 
> > -- 
> > Paul Barker
> > Co-Founder & Principal Engineer
> > Togán Labs Ltd
> > 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-29  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24 18:25 Raspberry Pi 3 build issue alexis.lothore
2017-04-25  9:06 ` Paul Barker
2017-04-25 19:01   ` alexis.lothore
2017-04-29  9:12     ` alexis.lothore

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.