Skip to contentSkip to conversation

do_rootfs fails

DISCUSSION Tom Walsh 6 participants 9 messages May 11, 2007 – May 19, 2007

lore
Share & tools
lore

Tom Walsh

author
#0 lore raw

Ok, I admit it, I am totally confused by this whole "debian", "multimachine", "package_ipk" stuff. I've been able to avoid understanding this and think that this might be why bootstrap.image won't build a filesystem image.

Prior to a month ago, I was using my own task + image bb files to build my image. Since a lot of work has been done to make the task-base more generic, I have moved my project over to using the stock bootstrap-image.bb and task-base.bb files. However, it fails to build properly.

When running a "bitbake bootstrap-image", everything builds but then fails with:

========= begin ============
[tom@jtag oezipit]$ bitbake bootstrap-image
NOTE: Using cache in '/home/tom/oezipit/tmp/cache/zipit'
NOTE: Handling BitBake files: \ (4534/4534) [100 %]
NOTE: Parsing finished. 4329 cached, 0 parsed, 205 skipped, 0 masked.

NOTE: build 200705111324: started

OE Build Configuration:

BB_VERSION     = "1.6.7"
OE_REVISION    = "<unknown>"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux"
MACHINE        = "zipit"
DISTRO         = "zipit"

DISTRO_VERSION = "1.0"
TARGET_FPU = "soft"

NOTE: multiple providers are available (db3, db);
NOTE: consider defining PREFERRED_PROVIDER_virtual/db
NOTE: multiple providers are available (db3-native, db-native);
NOTE: consider defining PREFERRED_PROVIDER_virtual/db-native
NOTE: package bootstrap-image-1.0: started
NOTE: package bootstrap-image-1.0-r0: task do_rootfs: started
ERROR: function do_rootfs failed
ERROR: see log in /home/tom/oezipit/tmp/work/zipit-linux/bootstrap-image-1.0-r0/temp/log.do_rootfs.17150
NOTE: Task failed: /home/tom/oezipit/tmp/work/zipit-linux/bootstrap-image-1.0-r0/temp/log.do_rootfs.17150
NOTE: package bootstrap-image-1.0-r0: task do_rootfs: failed
ERROR: TaskFailed event exception, aborting
NOTE: package bootstrap-image-1.0: failed
ERROR: Build of bootstrap-image failed
========= snip =============

When I check the logfile, it says that "sh: fakeroot: command not found". This is correct, fakeroot-native has NOT been built. So, I do a "bitbake -c rebuild fakeroot-native", then run "bitbake bootstrap-image" again.

It then fails with a logfile message of "/home/tom/oezipit/tmp/work/zipit-linux/bootstrap-image-1.0-r0/temp/run.do_rootfs.24175: line 312: ipkg-cl: command not found". Again, this is true, ipkg-native is not present. So, I do a "bitbake -c rebuild ipkg-native", then run "bitbake bootstrap-image" again.

Now it builds the filesystem target tarball image.

How can I automate those needs for fakeroot-native and ipkg-native? I'm not sure where to look, this was working a few weeks ago.

Regards,

TomW

Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------------------------------------------
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Walsh schreef:

<snip problem description>

Quoted 2 lines

OE Build Configuration:
BB_VERSION = "1.6.7"

Tom: Upgrade to 1.8.2 or use the bitbake-1.8 branch (1.8.3 atm).
All: Are we still going to wait 1.5 months with requiring 1.8.x? I've seen enough proof that 1.6.x is broken with current .dev, with no effort to fix it. "Giving people time to prepare the upgrade" has now turned into "Stabbing user in the eye" :(

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGRLDRMkyGM64RGpERAm1ZAKCBtqmqLrk3MXEPldP9AvEjxxJSsACggk// FJLY3HdrD/EF2xvBzEOJvts=
=qgbE
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 3 lines

All: Are we still going to wait 1.5 months with requiring 1.8.x? I've seen enough proof that 1.6.x is broken with current .dev, with no effort to fix it. "Giving people time to prepare the upgrade" has now turned into "Stabbing user in the eye" :(

There's also an option of asking Tom to bitbake -DDD and send it to zecke, because I couldn't find time to try BB 1.6 for him again. And let him apply the patch that fixes this problem:

bb/parse/parse_py/BBHandler.py (working copy) renamed from bb/parse/parse_py/BBHandler.py (revision 817) +2 -0
Index: lib/bb/parse/parse_py/BBHandler.py
===================================================================
@@ -66,7 +66,9 @@
         if not file in __inherit_cache.split():
             debug(2, "BB %s:%d: inheriting %s" % (fn, lineno, file))
             __inherit_cache += " %s" % file
+            data.setVar('__inherit_cache', __inherit_cache, d)
             include(fn, file, d)
+            __inherit_cache = data.getVar('__inherit_cache', d) or ""
     data.setVar('__inherit_cache', __inherit_cache, d)
 

Love,
H

#3 lore raw

Had the same problem as i am still using 1.6 .
The mentioned patch solved it

Stelios S. Koroneos

Digital OPSiS - Embedded Intelligence
http://www.digital-opsis.com

Quoted 40 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Michael Krelin
Sent: Friday, May 11, 2007 9:24 PM
To: [email protected]
Subject: Re: [oe] do_rootfs fails

Quoted 1 line

All: Are we still going to wait 1.5 months with requiring

1.8.x? I've seen enough proof

Quoted 1 line

that 1.6.x is broken with current .dev, with no effort to fix

it. "Giving people time to

Quoted 1 line

prepare the upgrade" has now turned into "Stabbing user in the eye" :(

There's also an option of asking Tom to bitbake -DDD and send it to zecke, because I couldn't find time to try BB 1.6 for him again. And let him apply the patch that fixes this problem:

Index: lib/bb/parse/parse_py/BBHandler.py
===================================================================

bb/parse/parse_py/BBHandler.py (working copy) renamed from bb/parse/parse_py/BBHandler.py (revision 817) +2 -0
@@ -66,7 +66,9 @@
         if not file in __inherit_cache.split():
             debug(2, "BB %s:%d: inheriting %s" % (fn, lineno, file))
             __inherit_cache += " %s" % file
+            data.setVar('__inherit_cache', __inherit_cache, d)
             include(fn, file, d)
+            __inherit_cache = data.getVar('__inherit_cache', d) or ""
     data.setVar('__inherit_cache', __inherit_cache, d)
 
 Love,

H

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw
In reply to Michael Krelin
Quoted 9 lines · Michael Krelin

There's also an option of asking Tom to bitbake -DDD and send it to zecke, because I couldn't find time to try BB 1.6 for him again. And let him apply the patch that fixes this problem:

Index: lib/bb/parse/parse_py/BBHandler.py
===================================================================

bb/parse/parse_py/BBHandler.py (working copy) line 72

Quoted 7 lines
bb/parse/parse_py/BBHandler.py (working copy) renamed from bb/parse/parse_py/BBHandler.py (revision 817) +2 -0
@@ -66,7 +66,9 @@
         if not file in __inherit_cache.split():
             debug(2, "BB %s:%d: inheriting %s" % (fn, lineno, file))
             __inherit_cache += " %s" % file
+            data.setVar('__inherit_cache', __inherit_cache, d)
             include(fn, file, d)
+            __inherit_cache = data.getVar('__inherit_cache', d) or ""
     data.setVar('__inherit_cache', __inherit_cache, d)

Thanks for this, I've merged into bitbake 1.9, 1.8 and 1.6 branches as they all had this issue!

Cheers,

Richard

#5 lore raw
In reply to Koen Kooi

Am Freitag, den 11.05.2007, 20:07 +0200 schrieb Koen Kooi:

Quoted 7 lines

All: Are we still going to wait 1.5 months with requiring 1.8.x? I've seen enough proof that 1.6.x is broken with current .dev, with no effort to fix it. "Giving people time to prepare the upgrade" has now turned into "Stabbing user in the eye" :(

regards,

Koen

1.8.x has a show-stopper freeze-bug for some users ( including myself ) which has not been fixed or even looked into yet.

Signature · 7 lines
Matthias 'CoreDump' Hentges 
Cologne / Germany

Webmaster of Hentges.net & Embedded Linux Developer
GPG ->  gpg --keyserver gpg-keyserver.de --recv-keys 0xAF3030D9

My OS: Debian SID: Geek by Nature, Linux by Choice
#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Hentges schreef:

Quoted 6 lines

Am Freitag, den 11.05.2007, 20:07 +0200 schrieb Koen Kooi:

Quoted 4 lines

All: Are we still going to wait 1.5 months with requiring 1.8.x? I've seen enough proof that 1.6.x is broken with current .dev, with no effort to fix it. "Giving people time to prepare the upgrade" has now turned into "Stabbing user in the eye" :(

Quoted 6 lines
Quoted 3 lines

regards,

Koen

1.8.x has a show-stopper freeze-bug for some users ( including myself ) which has not been fixed or even looked into yet.

bugnumber?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGRZbFMkyGM64RGpERAlj8AJ9RQ0xtk2nqZAlJloTFFM5j8ml2zACghM87 qvk0yLeJrlqNyZHCtfub4Xo=
=Z1MH
-----END PGP SIGNATURE-----

#7 lore raw
In reply to Matthias Hentges
Quoted 6 lines · Matthias Hentges

Am Freitag, den 11.05.2007, 20:07 +0200 schrieb Koen Kooi:

Quoted 4 lines

All: Are we still going to wait 1.5 months with requiring 1.8.x? I've seen enough proof that 1.6.x is broken with current .dev, with no effort to fix it. "Giving people time to prepare the upgrade" has now turned into "Stabbing user in the eye" :(

Quoted 6 lines
Quoted 3 lines

regards,

Koen

1.8.x has a show-stopper freeze-bug for some users ( including myself ) which has not been fixed or even looked into yet.

Nobody has reported this properly although I keep hearing mention of it.

Could you send me the output from stty in your usual development environment please?

Thanks,

Richard

#8 lore raw
In reply to Matthias Hentges

Hello all,

Am Samstag, den 12.05.2007, 02:07 +0200 schrieb Matthias Hentges:

Quoted 2 lines

1.8.x has a show-stopper freeze-bug for some users ( including myself ) which has not been fixed or even looked into yet.

RP was kind enough to look into the issue. The following command unbreaks bitbake 1.8 on my build environment:

stty -tostop

The IRC discussion leading to the fix is archived here:

http://hentges.net/tmp/logs/irc/%
23oe/2007/May/20070515_oe.log#[20070515%2000:08:46]

Signature · 7 lines
Matthias 'CoreDump' Hentges 
Cologne / Germany

Webmaster of Hentges.net & Embedded Linux Developer
GPG ->  gpg --keyserver gpg-keyserver.de --recv-keys 0xAF3030D9

My OS: Debian SID: Geek by Nature, Linux by Choice