Skip to contentSkip to conversation

e2fsprogs-libs failed on latest org.openembedded.dev branch

DISCUSSION Daniel.Li 7 participants 15 messages Jun 7, 2009 – Jun 16, 2009

lore
Share & tools
lore

Daniel.Li

author
#0 lore raw

Hi List,

What's wrong with this? How can I fix the problem?

$ bitbake e2fsprogs-libs
/home/daniel/work4/oe_fr/bitbake/lib/bb/COW.py:29: DeprecationWarning:
the sets module is deprecated
  import types, sets
NOTE: Handling BitBake files: / (6859/6859) [100 %]
NOTE: Parsing finished. 6582 cached, 0 parsed, 277 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 338 of 461 (ID:
16, /home/daniel/work4/oe_fr/openembedded/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb, do_package_write_ipk)
ERROR: Error in
executing: /home/daniel/work4/oe_fr/openembedded/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
ERROR: Exception:<type 'exceptions.OSError'> Message:[Errno 2] No such
file or directory:
'/home/daniel/work4/oe_fr/tmp/work/armv4t-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg'
ERROR: Printing the environment of the function
ERROR: 	0048:		basedir = os.path.join(os.path.dirname(root))
ERROR: 	0049:		arch = bb.data.getVar('PACKAGE_ARCH', localdata, 1)
ERROR: 	0050:		pkgoutdir = "%s/%s" % (outdir, arch)
ERROR: 	0051:		bb.mkdirhier(pkgoutdir)
ERROR: 	0052:		os.chdir(root)
ERROR: 	0053:		from glob import glob
ERROR: 	0054:		g = glob('*')
ERROR: 	0055:		try:
ERROR: 	0056:			del g[g.index('CONTROL')]
ERROR: Error in
executing: /home/daniel/work4/oe_fr/openembedded/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
ERROR: Exception:<type 'exceptions.OSError'> Message:[Errno 2] No such
file or directory:
'/home/daniel/work4/oe_fr/tmp/work/armv4t-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg'
ERROR: Printing the environment of the function
ERROR: Build
of /home/daniel/work4/oe_fr/openembedded/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb do_package_write_ipk failed
Traceback (most recent call last):
  File "/home/daniel/work4/oe_fr/bitbake/bin/bitbake", line 143, in
<module>
    main()
  File "/home/daniel/work4/oe_fr/bitbake/bin/bitbake", line 140, in main
    cooker.cook()
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/cooker.py", line 644, in
cook
    return self.buildTargets(pkgs_to_build)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/cooker.py", line 551, in
buildTargets
    failures = rq.execute_runqueue()
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/runqueue.py", line 842,
in execute_runqueue
    self.execute_runqueue_internal()
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/runqueue.py", line 951,
in execute_runqueue_internal
    self.cooker.tryBuild(fn)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/cooker.py", line 137, in
tryBuild
    return self.tryBuildPackage(fn, item, self.configuration.cmd,
the_data)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/cooker.py", line 111, in
tryBuildPackage
    bb.build.exec_task('do_%s' % task, the_data)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/build.py", line 278, in
exec_task
    exec_func(task, localdata)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/build.py", line 113, in
exec_func
    exec_func_python(func, d)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/build.py", line 136, in
exec_func_python
    utils.better_exec(comp, g, tmp, bbfile)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/utils.py", line 171, in
better_exec
    exec code in context
  File "do_package_write_ipk", line 11, in <module>
  File "do_package_write_ipk", line 9, in do_package_write_ipk
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/build.py", line 113, in
exec_func
    exec_func_python(func, d)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/build.py", line 136, in
exec_func_python
    utils.better_exec(comp, g, tmp, bbfile)
  File "/home/daniel/work4/oe_fr/bitbake/lib/bb/utils.py", line 171, in
better_exec
    exec code in context
  File "do_package_ipk", line 174, in <module>
  File "do_package_ipk", line 52, in do_package_ipk
OSError: [Errno 2] No such file or directory:
'/home/daniel/work4/oe_fr/tmp/work/armv4t-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg'
ERROR: Task 16
(/home/daniel/work4/oe_fr/openembedded/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb, do_package_write_ipk) failed
NOTE: Tasks Summary: Attempted 337 tasks of which 337 didn't need to be
rerun and 1 failed.
ERROR:
'/home/daniel/work4/oe_fr/openembedded/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb' failed
Signature · 1 line
Daniel.Li
#1 lore raw
Quoted 6 lines · Daniel.Li

Hi List,

What's wrong with this? How can I fix the problem?

$ bitbake e2fsprogs-libs
ERROR: 	0048:		basedir = os.path.join(os.path.dirname(root))

I was hoping that it was fixed by this commit:
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=3ac37564039127c80eb5cf109fddf23a8e438bf8

Can you confirm, that you have a newer snapshot?

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus

#2 lore raw
Quoted 10 lines · Stanislav Brabec
Quoted 6 lines · Daniel.Li

Hi List,

What's wrong with this? How can I fix the problem?

$ bitbake e2fsprogs-libs
ERROR:        0048:           basedir = os.path.join(os.path.dirname(root))

I was hoping that it was fixed by this commit:
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=3ac37564039127c80eb5cf109fddf23a8e438bf8

It wasn't, and I already wrote about it to the mailing list after testing.

Quoted 14 lines

Can you confirm, that you have a newer snapshot?

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus

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

#3 lore raw
In reply to Stanislav Brabec
Quoted 5 lines · Stanislav Brabec
Quoted 4 lines · Daniel.Li

Hi List,

What's wrong with this? How can I fix the problem?

Quoted 7 lines
Quoted 2 lines
$ bitbake e2fsprogs-libs
ERROR: 	0048:		basedir = os.path.join(os.path.dirname(root))

I was hoping that it was fixed by this commit:
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=3ac37564039127c80eb5cf109fddf23a8e438bf8

Can you confirm, that you have a newer snapshot?

That commit doesn't obviously look like it would fix anything; it seems to just be tweaking the names of some local variables. What was the intent of that change?

p.

#4 lore raw
Quoted 10 lines · Phil Blundell
Quoted 4 lines

I was hoping that it was fixed by this commit:
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=3ac37564039127c80eb5cf109fddf23a8e438bf8

Can you confirm, that you have a newer snapshot?

That commit doesn't obviously look like it would fix anything; it seems to just be tweaking the names of some local variables. What was the intent of that change?

/home/daniel/work4/oe_fr/tmp/work/armv4t-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg


1. This path apparently mixes path elements defined by two different recipes. I was under impression, that there exists some type of unintended cv_libdir inheritance between these two recipes. Maybe my impression was incorrect, but

2. After applying of this patch, I did not see this error any more. I even tested rebuild from scratch with no error. And finally

3. The variable name cv_libdir is deduded from "libcv" in opencv recipe and has no relation to e2fsprogs nor util-linux-ng.

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus

#5 lore raw
Quoted 4 lines · Stanislav Brabec

1. This path apparently mixes path elements defined by two different recipes. I was under impression, that there exists some type of unintended cv_libdir inheritance between these two recipes. Maybe my impression was incorrect, but

There certainly shouldn't be any such inheritance. If there is, that's a bug and we should fix it.

Quoted 2 lines

2. After applying of this patch, I did not see this error any more. I even tested rebuild from scratch with no error. And finally

I suspect that was probably just coincidence. This bug seems to be somewhat intermittent; I don't know exactly what's causing it, and it's never actually happened for me, but (re)building things in a different order seems to clear it up.

Quoted 2 lines

3. The variable name cv_libdir is deduded from "libcv" in opencv recipe and has no relation to e2fsprogs nor util-linux-ng.

Yeah, it's very possibly true that all this code was cut'n'pasted from opencv. That oughtn't to be a problem though.

p.

#6 lore raw

Hi,
I too am getting the same error from the latest version of overo-oe
synced as of today morning. I get this when executing a standard bitbake console-omap3-image command.

ERROR: '/tool/overo-oe/org.openembedded.dev/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb' failed

What should I do to resolve this error ?

Best regards,

Elvis

#7 lore raw
In reply to Phil Blundell

Hi,
I too am getting the same error. I am using the latest
org.openembedded.dev , sync just a few minutes ago.

What can I do to resolve this error?

Best regards,

Elvis

ERROR: Error in executing: /tool/overo-oe/org.openembedded.dev/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
ERROR: Exception:<type 'exceptions.OSError'> Message:[Errno 2] No such file or directory: '/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg'
ERROR: Printing the environment of the function
ERROR: 0048: basedir = os.path.join(os.path.dirname(root))
ERROR: 0049: arch = bb.data.getVar('PACKAGE_ARCH', localdata, 1)
ERROR: 0050: pkgoutdir = "%s/%s" % (outdir, arch)
ERROR: 0051: bb.mkdirhier(pkgoutdir)
ERROR: 0052: os.chdir(root)
ERROR: 0053: from glob import glob
ERROR: 0054: g = glob('*')
ERROR: 0055: try:
ERROR: 0056: del g[g.index('CONTROL')]
ERROR: Error in executing: /tool/overo-oe/org.openembedded.dev/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
ERROR: Exception:<type 'exceptions.OSError'> Message:[Errno 2] No such file or directory: '/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg'
ERROR: Printing the environment of the function
ERROR: Build of /tool/overo-oe/org.openembedded.dev/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb do_package_write_ipk failed
Traceback (most recent call last):
File "/tool/overo-oe/bitbake/bin/bitbake", line 143, in <module>

    main()

File "/tool/overo-oe/bitbake/bin/bitbake", line 140, in main
cooker.cook()
File "/tool/overo-oe/bitbake/lib/bb/cooker.py", line 643, in cook
return self.buildTargets(pkgs_to_build)
File "/tool/overo-oe/bitbake/lib/bb/cooker.py", line 550, in
buildTargets
failures = rq.execute_runqueue()
File "/tool/overo-oe/bitbake/lib/bb/runqueue.py", line 841, in
execute_runqueue
self.execute_runqueue_internal()
File "/tool/overo-oe/bitbake/lib/bb/runqueue.py", line 950, in
execute_runqueue_internal
self.cooker.tryBuild(fn)
File "/tool/overo-oe/bitbake/lib/bb/cooker.py", line 136, in tryBuild
return self.tryBuildPackage(fn, item, self.configuration.cmd,
the_data)
File "/tool/overo-oe/bitbake/lib/bb/cooker.py", line 110, in
tryBuildPackage

    bb.build.exec_task('do_%s' % task, the_data)

File "/tool/overo-oe/bitbake/lib/bb/build.py", line 278, in exec_task
exec_func(task, localdata)
File "/tool/overo-oe/bitbake/lib/bb/build.py", line 113, in exec_func
exec_func_python(func, d)
File "/tool/overo-oe/bitbake/lib/bb/build.py", line 136, in
exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File "/tool/overo-oe/bitbake/lib/bb/utils.py", line 171, in
better_exec
exec code in context
File "do_package_write_ipk", line 11, in <module>
File "do_package_write_ipk", line 9, in do_package_write_ipk
File "/tool/overo-oe/bitbake/lib/bb/build.py", line 113, in exec_func
exec_func_python(func, d)
File "/tool/overo-oe/bitbake/lib/bb/build.py", line 136, in
exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File "/tool/overo-oe/bitbake/lib/bb/utils.py", line 171, in
better_exec
exec code in context
File "do_package_ipk", line 174, in <module>
File "do_package_ipk", line 52, in do_package_ipk
OSError: [Errno 2] No such file or directory: '/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.15-r3/install/e2fsprogs-libs-dbg'

#8 lore raw
In reply to Phil Blundell
Quoted 9 lines · Phil Blundell
Quoted 4 lines · Stanislav Brabec

1. This path apparently mixes path elements defined by two different recipes. I was under impression, that there exists some type of unintended cv_libdir inheritance between these two recipes. Maybe my impression was incorrect, but

There certainly shouldn't be any such inheritance. If there is, that's a bug and we should fix it.

Quoted 7 lines
Quoted 2 lines

2. After applying of this patch, I did not see this error any more. I even tested rebuild from scratch with no error. And finally

I suspect that was probably just coincidence. This bug seems to be somewhat intermittent; I don't know exactly what's causing it, and it's never actually happened for me, but (re)building things in a different order seems to clear it up.

I can confirm it. It appeared again.

But it really looks like a cross package inheritance:

bitbake -v x11-image
fails

Let's try it separately:

bitbake -v e2fsprogs-libs
fails

Now I do following work-around, which allows me to continue:

bitbake -v util-linux-ng
succeeds

rm -rf tmp/{stamps/*,work/*,deploy/*/pstage/*}/*e2fsprogs-libs* bitbake -v e2fsprogs-libs
Wow, it successds!

bitbake -v x11-image
It successds as well!

Signature · 2 lines
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
#9 lore raw

Hello,

Quoted 2 lines · Stanislav Brabec

bitbake -v e2fsprogs-libs
bitbake -v util-linux-ng

I just have seen both fail, and only succeed after a clean and retry.

I think we are looking at a race condition considering sub-packaging.

Updated http://bugs.openembedded.net/show_bug.cgi?id=5101 on this.

Regards,

Signature · 1 line
Leon
#11 lore raw
In reply to Stanislav Brabec

Hi,
For this issue, if you sync with the overo-oe repository, and delete
the entire overo-oe/tmp folder and rebuild again, it should be fine. In the end, I used this order:

bitbake u-boot-omap3
bitbake linux-omap3-2.6.29
bitbake omap3-console-image

It was scary and fustrating to see it fail for no apparent reason, and I lost 2 days trying to get it to work, between initial failures and oe updates.

Best regards,

Elvis

#12 lore raw

I had the build problem too 2 days ago. bitbake console-image repeatedly gave this problem.
yesterday I was about to dig into this, I did a git pull just to be sure that if things were fixed, I would have the fix. After that the problem mysteriously disappeared.(for me)

Guess it is something in the python code, but I have little knowledge about this.

Frans

#13 lore raw

Hello,

Quoted 2 lines · Frans Meulenbroeks

After that the problem mysteriously disappeared.(for me)

If it's a race condition, you just could have been lucky this time.

Given the number of reports (and people "fixing" it by doing a new run) I think a race condition is likely.

If indeed it's fixed, we should at least find out what fixed it.

Regards,

Signature · 1 line
Leon
#14 lore raw

Hello,

Quoted 6 lines · Leon Woestenberg

Given the number of reports (and people "fixing" it by doing a new run) I think a race condition is likely.

If indeed it's fixed, we should at least find out what fixed it.

Today I did a fresh checkout and build of .dev and hit both e2fsprogs-libs as well as util-linux-ng hitting the problem again, failing the build

An individual clean followed by individual rebuild solves the problem.

What I did notice, is that after cleaning util-linux-ng and then rebuilding, a whole lot (all?) packages got their do_package_* methods called.

Regards,

Signature · 1 line
Leon