Wind River Support Network

HomeDefectsLIN7-2503
Fixed

LIN7-2503 : Non-existent folder referenced in a custom layer causes configuration failure

Created: Dec 22, 2014    Updated: Sep 8, 2018
Resolved Date: Dec 22, 2014
Previous ID: LIN6-9092
Found In Version: 7.0
Fix Version: 7.0.0.1
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Build & Config

Description

With RCPL14, when configuring a project with a customer layer that includes reference to a non-existent folder, the configure fails with a long Python trace ending with:

...
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: 

Workaround

$cd layers_for_test
$mkdir -p conf/image_final

Steps to Reproduce

create a project like this:
onfigure --enable-board=intel-x86-64 --enable-rootfs=glibc-std-sato --enable-kernel=standard --enable-unsupported-config=yes --with-layer=~/layer_for_test

the configure fails with:

ERROR: Error executing a python function in <code>:                                                                                 | ETA:  --:--:--

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Failed to parse recipe: /home/bpiolin/builds/intel-x86-R_R/layers/local/recipes-sample/hello/hello_1.0.bb
ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: '/home/bpiolin/Desktop/layer_for_test/conf/image_final'

ERROR: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 5, function: <module>
     0001:__anon_27__home_bpiolin_builds_intel_x86_R_R_layers_wr_fixes_recipes_bsp_grub_grub_version_inc(d)
     0002:__anon_643__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_base_bbclass(d)
     0003:__anon_124__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_siteinfo_bbclass(d)
     0004:__anon_1545__home_bpiolin_builds_intel_x86_R_R_layers_wrlcompat_classes_wrlcompat_bbclass(d)
 *** 0005:__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d)
     0006:__anon_45__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_blacklist_bbclass(d)
     0007:__anon_957__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_insane_bbclass(d)
     0008:__anon_230__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_bbclass(d)
     0009:__anon_1234__home_bpiolin_builds_intel_x86_R_R_layers_oe_core_meta_classes_package_rpm_bbclass(d)
File: '__anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass', lineno: 4, function: __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass
     0001:def __anon_29__home_bpiolin_builds_intel_x86_R_R_layers_wrlinux_classes_image_fs_finalize_bbclass(d):
     0002:	fs_final_uris = "\n"
     0003:	for dir in (d.getVar('WRL_FS_FINAL_PATH', True) or '').split():
 *** 0004:		for f in os.listdir(dir):
     0005:			if f.startswith('fs_final') and f.endswith('.sh'):
     0006:				fs_final_uris += "file://%s\n" % os.path.join(dir, f)
     0007:	d.appendVar('SRC_URI', fs_final_uris)
     0008:
Exception: OSError: [Errno 2] No such file or directory: 'layer_for_test/conf/image_final'


Other Downloads


Live chat
Online