Wind River Support Network

HomeDefectsCGP5-1041
Fixed

CGP5-1041 : building rrdtool package in WRLx5.0.1.1 CGP platform project blocked by build error.

Created: Apr 1, 2013    Updated: Mar 11, 2016
Resolved Date: Nov 29, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.3,6.0
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace
Host OS: Linux Ubuntu

Description

building rrdtool package WRLx5.0.1.1 CGP platform project with blocked by following build error.  (for the detailed build log, please refer  log.do_compile.6768 in the Attachments tab)

Traceback (most recent call last):
  File "setup.py", line 52, in <module>
    include_dirs=[include_dir],
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/core.py", line 138, in setup
    ok = dist.parse_command_line()
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py", line 467, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py", line 523, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py", line 815, in get_command_class
    __import__ (module_name)
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/command/build_ext.py", line 16, in <module>
    from distutils.sysconfig import customize_compiler, get_python_version
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
    PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
make[3]: *** [python] Error 1
make[3]: *** Waiting for unfinished jobs....

Steps to Reproduce

1) install WRLinux5.0.1.1 with CGP and workbench 3.3.4
Wind River Linux 5.0.1.1: DVD-R174754.1-21-00, 	DVD-R174755.1-21-00
Board Support Packages (BSPs): DVD-R174756.1-21-00
Wind River Linux Carrier Grade Profile 5.0.1.1 : DVD-R177856.1-2-00
Wind River Workbench 3.3.4 :DVD-R158451.1-1-1

2) configure a platform project with the following configuration
$ installDir/wrlinux-5/wrlinux/configure \
--enable-board=qemux86-64 \
--enable-kernel=cgl \
--enable-rootfs=glibc-cgl \
--enable-parallel-pkgbuilds=3 \
--enable-jobs=3

3.a) to avoid build error from WIND00411105, modify  <projectDir>/layers/wr-features/recipes-support/liblockfile/liblockfile_1.09.bb (for details, see http://clearquest.wrs.com/cqweb/main?command=GenerateMainFrame&service=CQ&schema=2003.06.00&contextid=WIND&entityID=33965537&entityDefName=Defect)

3.b) build the project by invoking "make" command

4) build will stop with the following error 
Traceback (most recent call last):
  File "setup.py", line 52, in <module>
    include_dirs=[include_dir],
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/core.py", line 138, in setup
    ok = dist.parse_command_line()
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py", line 467, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py", line 523, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py", line 815, in get_command_class
    __import__ (module_name)
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/command/build_ext.py", line 16, in <module>
    from distutils.sysconfig import customize_compiler, get_python_version
  File "/home/wruser/workspace/qemux86-64_cgl/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
    PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
make[3]: *** [python] Error 1
make[3]: *** Waiting for unfinished jobs....

Other Downloads


Live chat
Online