toaster.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: "Reyna, David" <david.reyna@windriver.com>
To: "toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: SOLUTION: Toaster installations on master cannot build Rocko projects
Date: Mon, 20 Nov 2017 06:54:44 +0000	[thread overview]
Message-ID: <5E53D14CE4667A45B9A06760DE5D13D0CF80F40C@ALA-MBC.corp.ad.wrs.com> (raw)

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

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: toaster-bounces@yoctoproject.org [mailto:toaster-bounces@yoctoproject.org] On Behalf Of Reyna, David
Sent: Wednesday, November 15, 2017 4:20 PM
To: toaster@yoctoproject.org
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: ''
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[-- Attachment #2: Type: text/html, Size: 9614 bytes --]

                 reply	other threads:[~2017-11-20  6:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5E53D14CE4667A45B9A06760DE5D13D0CF80F40C@ALA-MBC.corp.ad.wrs.com \
    --to=david.reyna@windriver.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).