Hi all,
I have a solution, as captured here:
Bug 12363 - unset BBPATH before starting bbserver for Rocko compatibility
(a) When Toaster is running, it has the build environment of the checkout that
started it.
(b) When Toaster launches a managed build, it sources the build environment in
the respective build directory using the "oe-init-build-env" from the bitbake
that is the Release that the project was created for.
(c) Normally, the build environment's values completely eclipses the Toaster
environment's values, and there is no problem.
HOWEVER, the new "oe-init-build-env" in master has now added BBPATH, where
previously that was left undefined. What this means is that the BBPATH from
master Toaster is polluting any builds for Rocko, and the direct consequence is
that the "bitbake.lock" file is redirected to the Toaster directory where it is
not found.
The simple fix is to always clean this (and any other such values) from the
environment before lauching builds.
I will submit the fix to bitbake-dev tomorrow.
- David
From: [email protected]
[mailto:[email protected]] On Behalf Of Reyna, David
Sent: Wednesday, November 15, 2017 4:20 PM
To: [email protected]
Subject: [Toaster] Toaster installations on master cannot build Rocko projects
Hi All,
I am observing something strange.
If I have a "Rocko" installation of Toaster, I can build both "Master" and
"Rocko" based projects.
However, I have found that if I have a recent "Master" installation of Toaster
I can build "Master" projects, but I get fatal timeouts for projects based on
"Rocko" and I have to manually cancel the build.
I am investigating how Master has diverged from Rocko. In the meantime I advise
using one of the above working combinations.
Log from "toaster_runbuilds.log":
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
...
2017-11-15 14:54:57,007 DEBUG lbc_shellcmmd: (/opt/dreyna/toaster_newer/poky)
bash -c 'source
/opt/dreyna/toaster_newer/poky/_toaster_clones/_git___git.yoctoproject.org_poky_rocko/oe-init-build-env
/opt/dreyna/toaster_newer/poky/build-toaster-2'
2017-11-15 14:54:57,110 DEBUG localhostbecontroller: shellcmd success
2017-11-15 14:54:57,113 DEBUG lbc_shellcmmd: (/opt/dreyna/toaster_newer/poky)
bash -c "source
/opt/dreyna/toaster_newer/poky/_toaster_clones/_git___git.yoctoproject.org_poky_rocko/oe-init-build-env
/opt/dreyna/toaster_newer/poky/build-toaster-2; BITBAKE_UI="knotty"
/opt/dreyna/toaster_newer/poky/_toaster_clones/_git___git.yoctoproject.org_poky_rocko/bitbake/bin/bitbake
--read /opt/dreyna/toaster_newer/poky/build-toaster-2/conf/toaster.conf --read
/opt/dreyna/toaster_newer/poky/build-toaster-2/conf/toaster-bblayers.conf
--server-only -B 0.0.0.0:0"
2017-11-15 14:54:57,902 DEBUG localhostbecontroller: shellcmd success
2017-11-15 14:54:57,902 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:54:58,904 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:54:59,905 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:00,906 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:01,908 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:02,909 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:03,911 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:04,912 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:05,913 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:06,915 DEBUG localhostbecontroller: waiting for bblock file to
appear
2017-11-15 14:55:07,917 ERROR runbuilds: Error launching build [Errno 2] No
such file or directory:
'/opt/dreyna/toaster_newer/poky/build-toaster-2/bitbake.lock'
Traceback (most recent call last):
File
"/opt/dreyna/toaster_newer/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
line 65, in schedule
"%d:%d" % (br.pk, bec.be.pk))
File
"/opt/dreyna/toaster_newer/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 355, in triggerBuild
with open(bblock) as fplock:
FileNotFoundError: [Errno 2] No such file or directory:
'/opt/dreyna/toaster_newer/poky/build-toaster-2/bitbake.lock'
2017-11-15 14:55:07,928 WARNING runbuilds: schedule exception invalid literal
for int() with base 10: ''
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster