Wind River Support Network

HomeDefectsLIN5-5396
Fixed

LIN5-5396 : IDP will not build rootfs if smartpm is installed on HOST system

Created: Sep 17, 2013    Updated: Dec 19, 2017
Resolved Date: Sep 29, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Build & Config
Host OS: Linux Other
Architecture: IA32

Description

configure IDP target system
make fs
when building rootfs build will fail with an error resembling this output:
ERROR: Function failed: do_rootfs (see /PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/work/kontron_km2m806-wrs-linux/wr-srm-initramfs-1.0-r0/temp/do_rootfs/log.do_rootfs.17625 for further information)
ERROR: Logfile of failure stored in: /PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/work/kontron_km2m806-wrs-linux/wr-srm-initramfs-1.0-r0/temp/do_rootfs/log.do_rootfs.17625

Workaround

uninstall smart from host

Steps to Reproduce

Configure IDP target system:
$WIND_LINUX_CONFIGURE \
--enable-board=kontron-km2m806 \
--enable-kernel=standard \
--enable-rootfs=glibc-idp \
--enable-addons=wr-idp \
--with-layer=wr-digi-idigiconnector,wr-exegin-zigbee-ia,wr-prosyst-mbs-smarthome
-sdk-ia,wr-wks-oneagent-oma-dm-ia,wr-wks-oneagent-tr069 \
--with-template=feature/non_grsec \
--enable-parallel-pkgbuilds=6 \
--enable-jobs=4 \
--enable-build=production \
--with-sstate-dir=/PRJ/WRU/IDP/projects/sstate-dir \
--enable-rm-oldimgs=yes \
--enable-reconfig

make fs   # this will fail like this:
ERROR: Function failed: do_rootfs (see /PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/work/kontron_km2m806-wrs-linux/wr-srm-initramfs-1.0-r0/temp/do_rootfs/log.do_rootfs.17625 for further information)
ERROR: Logfile of failure stored in: /PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/work/kontron_km2m806-wrs-linux/wr-srm-initramfs-1.0-r0/temp/do_rootfs/log.do_rootfs.17625
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Note: configuring RPM platform settings
| Note: configuring RPM system provides
| Note: configuring RPM DB settings
| Note: configuring Smart settings
| New channel 'Fedora 13.89 - x86_64 - Test Updates (updates-testing)' detected.
| Include it? (Y/n):
| Traceback (most recent call last):
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/smart.real", line 200, in <module>
|     main(sys.argv[1:])
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/smart.real", line 170, in main
|     initPlugins()
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/__init__.py", line 188, in initPlugins
|     __import__("smart.plugins."+entry[:-3])
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/plugins/channelsync.py", line 200, in <module>
|     syncChannels(sysconf.get("channel-sync-dir", CHANNELSDIR))
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/plugins/channelsync.py", line 84, in syncChannels
|     "Include it?") % name, True)):
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/interfaces/text/interface.py", line 65, in askYesNo
|     res = raw_input(mask % question).strip().lower()
|   File "/PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/__init__.py", line 69, in raw_input
|     prompt = sys.stdout.encode(prompt)[0]
| AttributeError: 'file' object has no attribute 'encode'
| WARNING: /PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/work/kontron_km2m806-wrs-linux/wr-srm-initramfs-1.0-r0/temp/do_rootfs/run.do_rootfs.17625:259 exit 1 from
|   smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-root=${target_rootfs}
| ERROR: Function failed: do_rootfs (see /PRJ/WRU/IDP/projects/km2m/bitbake_build/tmp/work/kontron_km2m806-wrs-linux/wr-srm-initramfs-1.0-r0/temp/do_rootfs/log.do_rootfs.17625 for further information)
NOTE: recipe wr-srm-initramfs-1.0-r0: task do_rootfs: Failed
NOTE: recipe python-smartpm-1.4.1-r9: task do_fetch: Started
NOTE: recipe wrlinux-image-glibc-idp-1.0-r3: task do_image_info: Started
NOTE: recipe wrlinux-image-glibc-idp-1.0-r3: task do_image_info: Succeeded
ERROR: Task 1273 (/PRJ/WRU/IDP/projects/km2m/layers/wr-idp/wr-srm/recipes-base/images/wr-srm-initramfs.bb, do_rootfs) failed with exit code '1'
NOTE: recipe linux-windriver-3.4-r0: task do_kernel_configme: Started
NOTE: recipe python-smartpm-1.4.1-r9: task do_fetch: Succeeded
NOTE: recipe linux-windriver-3.4-r0: task do_kernel_configme: Succeeded
NOTE: Tasks Summary: Attempted 4396 tasks of which 4392 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /PRJ/WRU/IDP/projects/km2m/layers/wr-idp/wr-srm/recipes-base/images/wr-srm-initramfs.bb, do_rootfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [export/kontron-km2m806-glibc-idp-standard-dist.tar.bz2] Error 1

Other Downloads


Live chat
Online