Skip to contentSkip to conversation

angstrom-2010.x: `bitbake virtual/kernel` fails with `[Errno 2] No such file or directory: '/oe/openembedded/recipes/linux/linux-omap-2.6.37/beagleboard/./configs/'`

DISCUSSION Paul Menzel 2 participants 2 messages Apr 28, 2011

lore
Share & tools
lore
#0 lore raw

Dear OE folks,

using angstrom-2010.x for MACHINE = "beagleboard" and executing bitbake -k virtual/kernel from an empty build directory, task unpack of linux-omap_2.6.37.bb fails with the following error.

	$ bitbake -k virtual/kernel
	[…]
	Build Configuration:
	BB_VERSION        = "1.12.0"
	METADATA_BRANCH   = "master"
	METADATA_REVISION = "9a7d3ae"
	TARGET_ARCH       = "arm"
	TARGET_OS         = "linux-gnueabi"
	MACHINE           = "beagleboard"
	DISTRO            = "angstrom"
	DISTRO_VERSION    = "v20110428"
	TARGET_FPU        = "hard"
	NOTE: Resolving any missing task queue dependencies
	NOTE: Preparing runqueue
	NOTE: Executing RunQueue Tasks
	NOTE: Running task 825 of 945 (ID: 10, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_setscene)
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_setscene: Started
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_setscene: Succeeded
	NOTE: Running task 922 of 945 (ID: 8, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_fetch)
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_fetch: Started
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_fetch: Succeeded
	NOTE: Running task 923 of 945 (ID: 0, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_unpack)
	NOTE: Running task 924 of 945 (ID: 20, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_distribute_sources)
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_unpack: Started
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_distribute_sources: Started
	ERROR: Error executing a python function in /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb:
	OSError: [Errno 2] No such file or directory: '/oe/openembedded/recipes/linux/linux-omap-2.6.37/beagleboard/./configs/'

	ERROR: The stack trace of python calls that resulted in this exception/failure was:
	ERROR:   File "base_do_unpack", line 35, in <module>
	ERROR:
	ERROR:   File "base_do_unpack", line 32, in base_do_unpack
	ERROR:
	ERROR:   File "base.bbclass", line 29, in oe_unpack
	ERROR:
	ERROR:   File "/oe/openembedded/lib/oe/unpack.py", line 67, in unpack_file
	ERROR:     if os.path.samefile(file, dest):
	ERROR:
	ERROR:   File "/usr/lib/python2.6/posixpath.py", line 152, in samefile
	ERROR:     s1 = os.stat(f1)
	ERROR:
	ERROR: The code that was being executed was:
	ERROR:      0031:
	ERROR:      0032:            oe_unpack(d, local, urldata)
	ERROR:      0033:
	ERROR:      0034:
	ERROR:  *** 0035:base_do_unpack(d)
	ERROR:      0036:
	ERROR: (file: 'base_do_unpack', lineno: 35, function: <module>)
	ERROR:      0028:            local = urldata.localpath
	ERROR:      0029:            if not local:
	ERROR:      0030:                raise bb.build.FuncFailed('Unable to locate local file for %s' % url)
	ERROR:      0031:
	ERROR:  *** 0032:            oe_unpack(d, local, urldata)
	ERROR:      0033:
	ERROR:      0034:
	ERROR:      0035:base_do_unpack(d)
	ERROR:      0036:
	ERROR: (file: 'base_do_unpack', lineno: 32, function: base_do_unpack)
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task base_do_unpack: Failed
	ERROR: Function 'base_do_unpack' failed
	ERROR: Task 0 (/oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_unpack) failed with exit code '1'
	Waiting for 1 active tasks to finish:
	0: linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472 do_distribute_sources (pid 17470)
	NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_distribute_sources: Succeeded
	ERROR: '/oe/openembedded/recipes/linux/linux-omap_2.6.37.bb' failed

.configs/ is appended to SRC_URI in multi-kernel.inc [1].

The strange thing is, that bitbake -k beagleboard-demo-image does not show this error.

A fix would be greatly appreciated.

Thanks,

Paul

[1] http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc#n16

#1 lore raw

Paul,

possibly my fault: with commit 71eb55a998a150f3dc828d2478b7875f807b3536 I removed /linux/files/configs/.empty

-rw-r--r-- recipes/obsolete/linux/files/configs/.empty (renamed from
recipes/linux/files/configs/.empty) 0
-rw-r--r-- recipes/obsolete/linux/files/ipaq-hal.init (renamed from
recipes/linux/files/ipaq-hal.init) 0
-rw-r--r-- recipes/obsolete/linux/files/linux-2.6-limits.patch
(renamed from recipes/linux/files/linux-2.6-limits.patch) 0
-rw-r--r-- recipes/obsolete/linux/files/usb-gadget-ether-compat.patch
(renamed from recipes/linux/files/usb-gadget-ether-compat.patch)

I see in multikernel.inc

SRC_URI_append = " \
           file://configs/ "

Please revert that part if you need it. Sorry for the noise.

Regards

Andrea

Quoted 96 lines · Paul Menzel

Dear OE folks,

using angstrom-2010.x for MACHINE = "beagleboard" and executing bitbake -k virtual/kernel from an empty build directory, task unpack of linux-omap_2.6.37.bb fails with the following error.

       $ bitbake -k virtual/kernel
       […]
       Build Configuration:
       BB_VERSION        = "1.12.0"
       METADATA_BRANCH   = "master"
       METADATA_REVISION = "9a7d3ae"
       TARGET_ARCH       = "arm"
       TARGET_OS         = "linux-gnueabi"
       MACHINE           = "beagleboard"
       DISTRO            = "angstrom"
       DISTRO_VERSION    = "v20110428"
       TARGET_FPU        = "hard"

       NOTE: Resolving any missing task queue dependencies
       NOTE: Preparing runqueue
       NOTE: Executing RunQueue Tasks
       NOTE: Running task 825 of 945 (ID: 10, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_setscene)
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_setscene: Started
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_setscene: Succeeded
       NOTE: Running task 922 of 945 (ID: 8, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_fetch)
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_fetch: Started
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_fetch: Succeeded
       NOTE: Running task 923 of 945 (ID: 0, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_unpack)
       NOTE: Running task 924 of 945 (ID: 20, /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_distribute_sources)
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_unpack: Started
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_distribute_sources: Started
       ERROR: Error executing a python function in /oe/openembedded/recipes/linux/linux-omap_2.6.37.bb:
       OSError: [Errno 2] No such file or directory: '/oe/openembedded/recipes/linux/linux-omap-2.6.37/beagleboard/./configs/'

       ERROR: The stack trace of python calls that resulted in this exception/failure was:
       ERROR:   File "base_do_unpack", line 35, in <module>
       ERROR:
       ERROR:   File "base_do_unpack", line 32, in base_do_unpack
       ERROR:
       ERROR:   File "base.bbclass", line 29, in oe_unpack
       ERROR:
       ERROR:   File "/oe/openembedded/lib/oe/unpack.py", line 67, in unpack_file
       ERROR:     if os.path.samefile(file, dest):
       ERROR:
       ERROR:   File "/usr/lib/python2.6/posixpath.py", line 152, in samefile
       ERROR:     s1 = os.stat(f1)
       ERROR:
       ERROR: The code that was being executed was:
       ERROR:      0031:
       ERROR:      0032:            oe_unpack(d, local, urldata)
       ERROR:      0033:
       ERROR:      0034:
       ERROR:  *** 0035:base_do_unpack(d)
       ERROR:      0036:
       ERROR: (file: 'base_do_unpack', lineno: 35, function: <module>)
       ERROR:      0028:            local = urldata.localpath
       ERROR:      0029:            if not local:
       ERROR:      0030:                raise bb.build.FuncFailed('Unable to locate local file for %s' % url)
       ERROR:      0031:
       ERROR:  *** 0032:            oe_unpack(d, local, urldata)
       ERROR:      0033:
       ERROR:      0034:
       ERROR:      0035:base_do_unpack(d)
       ERROR:      0036:
       ERROR: (file: 'base_do_unpack', lineno: 32, function: base_do_unpack)
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task base_do_unpack: Failed
       ERROR: Function 'base_do_unpack' failed
       ERROR: Task 0 (/oe/openembedded/recipes/linux/linux-omap_2.6.37.bb, do_unpack) failed with exit code '1' Waiting for 1 active tasks to finish:
       0: linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472 do_distribute_sources (pid 17470)
       NOTE: package linux-omap-2.6.37-r101d+gitrfa3b4e23ec20cfc944db7cc2b30b0d82c20e4472: task do_distribute_sources: Succeeded
       ERROR: '/oe/openembedded/recipes/linux/linux-omap_2.6.37.bb' failed

.configs/ is appended to SRC_URI in multi-kernel.inc [1].

The strange thing is, that bitbake -k beagleboard-demo-image does not show this error.

A fix would be greatly appreciated.

Thanks,

Paul

[1] http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc#n16

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