angstrom build failure

I’m getting an error when building angstrom from scratch. It looks to me like there is a problem getting the u-boot-omap3 component. What is the standard procedure for either working around a problem like this or for notifying someone who might be able to resolve it?

I’m doing a “bitbake base-image”, and this is the start of the process:
NOTE: Handling BitBake files: \ (6226/6226) [100 %]
NOTE: Parsing finished. 0 cached, 5959 parsed, 267 skipped, 0 masked.
NOTE: build 200811191726: started

OE Build Configuration:
BB_VERSION = “1.8.10”
METADATA_BRANCH = “org.openembedded.dev”
METADATA_REVISION = “282341dcf8eca9c6d6e69eecb99b91dc18abbecd”
TARGET_ARCH = “arm”
TARGET_OS = “linux-gnueabi”
MACHINE = “beagleboard”
DISTRO = “angstrom”
DISTRO_VERSION = “2008.1-test-20081119”

NOTE: Resolving any missing task queue dependencies
NOTE: preferred version git of u-boot not available (for item u-boot)
NOTE: preferred version git of u-boot not available (for item u-boot)

… some bitbaking occurs here, then I get the error…

NOTE: Running task 1361 of 2064 (ID: 104, /opt/oe/openembedded/packages/u-boot/u-boot_git.bb, do_setscene)
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea: started
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r19: task do_setscene: started
NOTE: Checking if staging package installed
NOTE: No. Manually removing any installed files
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r19: task do_setscene: completed
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea: completed
NOTE: Running task 1362 of 2064 (ID: 105, /opt/oe/openembedded/packages/u-boot/u-boot_git.bb, do_fetch)
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea: started
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r19: task do_fetch: started
NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/git_www.sakoman.net.git.u-boot-omap3.git_1e329ec630b31803ee191d2ee335214662b5bfea.tar.gz
–17:34:07-- http://www.angstrom-distribution.org/unstable/sources/git_www.sakoman.net.git.u-boot-omap3.git_1e329ec630b31803ee191d2ee335214662b5bfea.tar.gz
=> `/opt/oe/tmp/downloads/git_www.sakoman.net.git.u-boot-omap3.git_1e329ec630b31803ee191d2ee335214662b5bfea.tar.gz’
Resolving www.angstrom-distribution.org85.214.40.226
Connecting to www.angstrom-distribution.org|85.214.40.226|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
17:34:07 ERROR 404: Not Found.

From git://www.sakoman.net/git/u-boot-omap3

  • branch HEAD → FETCH_HEAD
    NOTE: Creating tarball of git repository
    fatal: failed to unpack tree object 1e329ec630b31803ee191d2ee335214662b5bfea
    NOTE: Task failed: Fetch failed: Fetch command export PATH=/opt/oe/tmp/staging/i686-linux/usr/bin/beagleboard-angstrom-linux-gnueabi:/opt/oe/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/opt/oe/tmp/staging/i686-linux/usr/sbin:/opt/oe/tmp/staging/i686-linux/usr/bin:/opt/oe/tmp/cross/armv7a/bin:/opt/oe/tmp/staging/i686-linux/sbin:/opt/oe/tmp/staging/i686-linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/oe/tmp/cross/armv7a/bin:/opt/oe/tmp/staging/i686-linux/usr/bin:/opt/oe/tmp/cross/armv7a/bin:/opt/oe/tmp/staging/i686-linux/usr/bin; git read-tree 1e329ec630b31803ee191d2ee335214662b5bfea failed with signal 128, output:

NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r19: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
NOTE: package u-boot-2008.10+r19+gitr1e329ec630b31803ee191d2ee335214662b5bfea: failed
ERROR: Build of /opt/oe/openembedded/packages/u-boot/u-boot_git.bb do_fetch failed
ERROR: Task 105 (/opt/oe/openembedded/packages/u-boot/u-boot_git.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 1361 tasks of which 1350 didn’t need to be rerun and 1 failed.
ERROR: ‘/opt/oe/openembedded/packages/u-boot/u-boot_git.bb’ failed

I recently came across the same/similar problem with "bitbake linux-omap". The compressed kernel (meta revision) file, in your case u-boot, did not exist. I searched for it but could not find it. I had to create it myself which required cloning the appropriate kernel and checking out the approprite branch. In your case, per a search on the web, the repo and branch are as specified below.

For reference below is what you would do to create the file in question; not sure if the specified prefix is correct. Nonetheless I don't think you have to resort to doing this. It appears, based on your error log, that you have problems accessing http://www.angstrom-distribution.org/unstable/sources and git://www.sakoman.net/git/u-boot-omap3<http://www.sakoman.net/git/u-boot-omap3>. Are you behind a firewall? Can you ping those locations? Maybe you specified a proxy, but don't need one. Anyway it appears you have network-related (configuration?) issue that's preventing you access to the sites in question.

xxxx@ubuntu:~$ git clone git://www.sakoman.net/git/u-boot-omap3.git u-boot-omap3
xxxx@ubuntu:~$ cd u-boot-omap3
xxxx@ubuntu:~/u-boot-omap3$ git checkout origin/omap3
xxxx@ubuntu:~/u-boot-omap3$ git-archive --format=tar --prefix=./ 1e329ec630b31803ee191d2ee335214662b5bfea | gzip > filename

where filename would be git_www.sakoman.net.git.u-boot-omap3.git_1e329ec630b31803ee191d2ee335214662b5bfea.tar.gz

Thanks for the information, I appreciate the pointers. I’m not using a firewall or proxy, I can ping both of the locations, and I’ve been able to fetch all the other pieces of the build. It seemed like it was failing trying to fetch something that was missing. I’ll investigate that further.
Is the prefix string something git-specific, or does it have to do with bitbake? It looks like some kind of hash or unique ID, but I can’t really tell. Should I just go read all the git documentation?

Brett

The prefix specifies the name of the directory (within the generated tar file) under which the data is saved. Looks like prefix should be set to ./git

I'm getting this error as well when I try and build the console image:

NOTE: Handling BitBake files: \ (6338/6338) [100 %]
NOTE: Parsing finished. 6058 cached, 2 parsed, 278 skipped, 0 masked.
NOTE: build 200812201535: started

OE Build Configuration:
BB_VERSION = "1.8.11"
METADATA_BRANCH = "org.openembedded.dev"
METADATA_REVISION = "2fe38e26dd4dc4b0cea235057a28b1af3b290181"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beagleboard"
DISTRO = "angstrom"
DISTRO_VERSION = "2008.1-test-20081220"
TARGET_FPU = "hard"

NOTE: Resolving any missing task queue dependencies
NOTE: preferred version git of u-boot not available (for item u-boot)
NOTE: multiple providers are available for task-base-extended (task-
base (copy), task-base);
NOTE: consider defining PREFERRED_PROVIDER_task-base-extended
NOTE: preferred version git of u-boot not available (for item u-boot)
ERROR: '['/home/garren/oe/openembedded/packages/tasks/task-base
(copy).bb']' RDEPENDS/RRECOMMENDS or otherwise requires the runtime
entity '#' but it wasn't found in any PACKAGE or RPROVIDES variables
NOTE: Runtime target '#' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['#']
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 1262 of 2211 (ID: 279, /home/garren/oe/openembedded/
packages/angstrom/angstrom-version.bb, do_setscene)
NOTE: package angstrom-version-2008.1-test-20081220: started
NOTE: package angstrom-version-1_2008.1-test-20081220-r2: task
do_setscene: started
NOTE: Checking if staging package installed
NOTE: No. Manually removing any installed files
NOTE: package angstrom-version-1_2008.1-test-20081220-r2: task
do_setscene: completed
NOTE: package angstrom-version-2008.1-test-20081220: completed
NOTE: Running task 1263 of 2211 (ID: 280, /home/garren/oe/openembedded/
packages/angstrom/angstrom-version.bb, do_fetch)
NOTE: package angstrom-version-2008.1-test-20081220: started
NOTE: package angstrom-version-1_2008.1-test-20081220-r2: task
do_fetch: started
NOTE: package angstrom-version-1_2008.1-test-20081220-r2: task
do_fetch: completed
NOTE: package angstrom-version-2008.1-test-20081220: completed
NOTE: Running task 1264 of 2211 (ID: 281, /home/garren/oe/openembedded/
packages/angstrom/angstrom-version.bb, do_unpack)
NOTE: package angstrom-version-2008.1-test-20081220: started
NOTE: package angstrom-version-1_2008.1-test-20081220-r2: task
do_unpack: started
NOTE: Unpacking /home/garren/oe/openembedded/packages/angstrom/
angstrom-version.bb to /home/garren/oe/tmp/work/beagleboard-angstrom-
linux-gnueabi/angstrom-version-1_2008.1-test-20081220-r2/
NOTE: package angstrom-version-1_2008.1-test-20081220-r2: task
do_unpack: completed
NOTE: package angstrom-version-2008.1-test-20081220: completed
NOTE: Running task 1320 of 2211 (ID: 109, /home/garren/oe/openembedded/
packages/u-boot/u-boot_git.bb, do_setscene)
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea: started
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r21: task
do_setscene: started
NOTE: Checking if staging package installed
NOTE: No. Manually removing any installed files
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r21: task
do_setscene: completed
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea: completed
NOTE: Running task 1321 of 2211 (ID: 110, /home/garren/oe/openembedded/
packages/u-boot/u-boot_git.bb, do_fetch)
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea: started
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r21: task
do_fetch: started
fatal: Couldn't find remote ref omap3
NOTE: Task failed: Fetch failed: Fetch command export PATH=/home/
garren/oe/tmp/staging/i686-linux/usr/bin/beagleboard-angstrom-linux-
gnueabi:/home/garren/oe/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-
linux-gnueabi:/home/garren/oe/tmp/staging/i686-linux/usr/sbin:/home/
garren/oe/tmp/staging/i686-linux/usr/bin:/home/garren/oe/tmp/cross/
armv7a/bin:/home/garren/oe/tmp/staging/i686-linux/sbin:/home/garren/oe/
tmp/staging/i686-linux/bin:/home/garren/oe/opt/bitbake/bin:/usr/local/
sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games; git
fetch git://www.sakoman.net/git/u-boot-omap3.git omap3 failed with
signal 128, output:
fatal: Couldn't find remote ref omap3

NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea-r21: task
do_fetch: failed
ERROR: TaskFailed event exception, aborting
NOTE: package u-
boot-2008.10+gitr1e329ec630b31803ee191d2ee335214662b5bfea: failed
ERROR: Build of /home/garren/oe/openembedded/packages/u-boot/u-
boot_git.bb do_fetch failed
ERROR: Task 110 (/home/garren/oe/openembedded/packages/u-boot/u-
boot_git.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 1320 tasks of which 1316 didn't need to
be rerun and 1 failed.
ERROR: '/home/garren/oe/openembedded/packages/u-boot/u-boot_git.bb'
failed
NOTE: build 200812201535: completed

I'm not behind a firewall and I can clone the location fine. Any help
would be greatly appreciated

thanks to sakoman I fixed it, he has restructured his repository set
this in your u-boot_git.bb for it to work;

PR ="r14"
PE = "1"

SRC_URI_beagleboard = "git://www.sakoman.net/git/u-boot-
omap3.git;branch=omap3-dev;protocol=git"
SRCREV_beagleboard = "b7038cff739684bb95853eb5bee924c2574a222e"
PV_beagleboard = "2008.10+${PR}+git${SRCREV}"

I am has that problem till now. Could you give me another method to
fix this?

Try changing PREFERRED_PROVIDER_u-boot to u-boot-omap3 in beagleboard.conf, this works for me for building console-image…