error in building RTEMS Source Builder

Abhinav Jain ghanta.aj at gmail.com
Fri Mar 4 06:03:05 UTC 2016


So I am trying to build the RTEMS Source Builder on my Ubuntu machine
and this is the report file that gets generated!
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building rtems-tools-HEAD-1
 Command Line: ../source-builder/sb-set-builder --log=l-i386.txt --prefix=/home/abhinav/development/rtems/4.12 4.12/rtems-i386
 Python: 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2]
 git://git.rtems.org/rtems-source-builder.git/origin/b537e5536459e207fc8e56a1df3774c1700606d5-modified
 Linux cr33p 3.19.0-49-generic #55~14.04.1-Ubuntu SMP Fri Jan 22 11:24:31 UTC 2016 x86_64
Tail of the build log:
script: 69: 
script: 70: 
script: 71: export PATH
script: 72: # Default environment set up.
script: 73: LANG=C
script: 74: export LANG
script: 75: unset DISPLAY || :
script: 76: umask 022
script: 77: cd "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1"
script: 78: echo "=> rtems-tools-HEAD-1:"
script: 79: echo "==> %prep:"
script: 80: build_top=$(pwd)
script: 81: rtems_tools_source="rtems-tools.git"
script: 82: source_dir_rtems_tools=${rtems_tools_source}
source setup: rtems-tools-HEAD-1: source rtems-tools -q -n ${rtems_tools_source}
Creating source directory: sources/git
making dir: /home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git
git: clone: git://git.rtems.org/rtems-tools.git -> sources/git/rtems-tools.git
git: reset: git://git.rtems.org/rtems-tools.git
git: fetch: git://git.rtems.org/rtems-tools.git -> sources/git/rtems-tools.git
git: checkout: git://git.rtems.org/rtems-tools.git => HEAD
git: pull: git://git.rtems.org/rtems-tools.git
script: 83: cd /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
script: 84: /bin/rm -rf ${rtems_tools_source}
script: 85: ln -s /home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git ${source_dir_rtems_tools}
script: 86: cd ${rtems_tools_source}
script: 87: /bin/chmod -R a+rX,g-w,o-w .
script: 88: cd ${build_top}
script: 89: SB_CXC="no"
script: 90: echo "==> clean %{buildroot}: ${SB_BUILD_ROOT}"
script: 91: /bin/rm -rf ${SB_BUILD_ROOT}
script: 92: /bin/mkdir -p ${SB_BUILD_ROOT}
script: 93: echo "==> %build:"
script: 94: build_top=$(pwd)
script: 95: if test "x86_64-linux-gnu" != "x86_64-linux-gnu" ; then
script: 96: RT_HOST="-host=x86_64-linux-gnu"
script: 97: else
script: 98: RT_HOST=
script: 99: fi
script:100: cd ${source_dir_rtems_tools}
script:101: ./waf configure ${RT_HOST} --prefix=/home/abhinav/development/rtems/4.12
script:102: ./waf
script:103: cd ${build_top}
script:104: echo "==> %install:"
script:105: build_top=$(pwd)
script:106: /bin/rm -rf $SB_BUILD_ROOT
script:107: SB_BUILD_ROOT_WAF=$SB_BUILD_ROOT
script:108: cd ${source_dir_rtems_tools}
script:109: ./waf --destdir=$SB_BUILD_ROOT_WAF install
script:110: cd ${build_top}
script:111: echo "==> %clean:"
removing: /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
making dir: /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
write script: /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1/doit
building: rtems-tools-HEAD-1
run: /bin/sh -ex  /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1/doit
+ export SB_ORIG_PATH=/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ SB_PREFIX=/home/abhinav/development/rtems/4.12
+ echo /home/abhinav/development/rtems/4.12
+ /usr/bin/sed -e s/^\///
+ SB_PREFIX_CLEAN=home/abhinav/development/rtems/4.12
+ SB_SOURCE_DIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources
+ SB_BUILD_DIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ SB_HOST_CFLAGS=-O2 -pipe 
+ SB_HOST_CXXFLAGS=-O2 -pipe 
+ SB_HOST_LDFLAGS=-L/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/lib
+ SB_BUILD_CFLAGS=-O2 -pipe -I/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/include
=> rtems-tools-HEAD-1:
==> %prep:
+ SB_BUILD_CXXFLAGS=-O2 -pipe -I/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/include
+ SB_BUILD_LDFLAGS=-L/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/lib
+ SB_CFLAGS=-O2 -pipe -I/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/include 
+ SB_CXXFLAGS=-O2 -pipe -I/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/include 
+ SB_ARCH=x86_64
+ SB_OS=linux
+ export SB_SOURCE_DIR SB_BUILD_DIR SB_ARCH SB_OS
+ export SB_HOST_CFLAGS SB_HOST_CXXFLAGS SB_HOST_LDFLAGS
+ export SB_BUILD_CFLAGS SB_BUILD_CXXFLAGS SB_BUILD_LDFLAGS
+ export SB_CFLAGS SB_CXXFLAGS
+ SB_DOC_DIR=/home/abhinav/development/rtems/4.12/share/doc
+ export SB_DOC_DIR
+ SB_PACKAGE_NAME=rtems-tools-HEAD-1
+ SB_PACKAGE_BUILDNAME=rtems-tools-HEAD-1
+ SB_PACKAGE_VERSION=HEAD
+ SB_PACKAGE_RELEASE=1
+ export SB_PACKAGE_NAME SB_PACKAGE_VERSION SB_PACKAGE_RELEASE
+ export SB_PREFIX
+ SB_BUILD_DIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ SB_BUILD_ROOT=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-root-abhinav
+ SB_BUILD_ROOT_BINDIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-root-abhinav/home/abhinav/development/rtems/4.12/bin
+ export SB_BUILD_ROOT SB_BUILD_DIR SB_BUILD_ROOT_BINDIR
+ SB_BUILD_CXC_DIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1-cxc
+ SB_BUILD_CXC_ROOT=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-abhinav-cxc
+ SB_BUILD_CXC_ROOT_BINDIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-abhinav-cxc/home/abhinav/development/rtems/4.12/bin
+ export SB_BUILD_CXC_ROOT SB_BUILD_CXC_DIR SB_BUILD_CXC_ROOT_BINDIR
+ SB_TMPROOT=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386
+ SB_TMPPREFIX=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12
+ SB_TMPBINDIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin
+ export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
+ SB_TMPCXCROOT=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386
+ SB_TMPCXCPREFIX=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav-cxc/4.12/rtems-i386/home/abhinav/development/rtems/4.12
+ SB_TMPCXCBINDIR=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav-cxc/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin
+ export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
+ SB_EXTRAPATH=/home/abhinav/development/rtems/src/rtems-source-builder/source-builder
+ export CFLAGS_FOR_TARGET
+ export CXXFLAGS_FOR_TARGET
+ test -n /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin
+ PATH=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ test -n /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav-cxc/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin
+ PATH=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav-cxc/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ test -n /home/abhinav/development/rtems/src/rtems-source-builder/source-builder
+ PATH=/home/abhinav/development/rtems/src/rtems-source-builder/source-builder:/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav-cxc/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/sb-abhinav/4.12/rtems-i386/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.12/bin:/home/abhinav/development/rtems/4.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ export PATH
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ cd /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ echo => rtems-tools-HEAD-1:
+ echo ==> %prep:
+ pwd
+ build_top=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ rtems_tools_source=rtems-tools.git
+ source_dir_rtems_tools=rtems-tools.git
+ cd /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ /bin/rm -rf rtems-tools.git
+ ln -s /home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git rtems-tools.git
+ cd rtems-tools.git
+ /bin/chmod -R a+rX,g-w,o-w .
+ cd /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ SB_CXC=no
==> clean %{buildroot}: /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-root-abhinav
+ echo ==> clean %{buildroot}: /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-root-abhinav
+ /bin/rm -rf /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-root-abhinav
+ /bin/mkdir -p /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/tmp/rtems-tools-HEAD-1-root-abhinav
==> %build:
+ echo ==> %build:
+ pwd
+ build_top=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1
+ test x86_64-linux-gnu != x86_64-linux-gnu
+ RT_HOST=
+ cd rtems-tools.git
+ ./waf configure --prefix=/home/abhinav/development/rtems/4.12
Setting top to                           : /home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git 
Setting out to                           : /home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/build 
Traceback (most recent call last):
  File "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Utils.py", line 44, in run
    run_old(*args,**kwargs)
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/rtemstoolkit/execute.py", line 196, in _readthread
    data = data.decode(sys.stdout.encoding)
TypeError: decode() argument 1 must be string, not None
Traceback (most recent call last):
  File "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Utils.py", line 44, in run
    run_old(*args,**kwargs)
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/rtemstoolkit/execute.py", line 196, in _readthread
    data = data.decode(sys.stdout.encoding)
TypeError: decode() argument 1 must be string, not None
Traceback (most recent call last):
  File "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Utils.py", line 44, in run
    run_old(*args,**kwargs)
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/rtemstoolkit/execute.py", line 196, in _readthread
    data = data.decode(sys.stdout.encoding)
TypeError: decode() argument 1 must be string, not None
Version                                  : 4.12._modified (4.12) 
Checking for program 'python'            : /usr/bin/python 
Checking for python version              : (2, 7, 6, 'final', 0) 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for header alloca.h             : yes 
Checking for header fcntl.h              : yes 
Checking for header process.h            : not found 
Checking for header stdlib.h             : yes 
Checking for header string.h             : yes 
Checking for header strings.h            : yes 
Checking for header sys/file.h           : yes 
Checking for header sys/stat.h           : yes 
Checking for header sys/time.h           : yes 
Checking for header sys/types.h          : yes 
Checking for header sys/wait.h           : yes 
Checking for header unistd.h             : yes 
Checking for header vfork.h              : not found 
Checking for function getrusage          : yes 
Checking for program 'm4'                : /usr/bin/m4 
Checking for header sys/wait.h           : yes 
Checking for function kill               : yes 
Checking for function open64             : not found 
Checking for function stat64             : not found 
'configure' finished successfully (0.815s)
+ ./waf
Waf: Entering directory `/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/build'
Waf: Leaving directory `/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/build'
source not found: 'rt/version.py' in bld(features=['py'], idx=1, meths=['process_rule', 'feature_py', 'process_source'], install_path='${PREFIX}/share/rtems/tester', prec=defaultdict(<type 'list'>, {}), _name='', source=['rt/__init__.py', 'rt/bsps.py', 'rt/config.py', 'rt/console.py', 'rt/gdb.py', 'rt/options.py', 'rt/report.py', 'rt/stty.py', 'rt/test.py', 'rt/version.py'], install_from=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/tester, mappings={}, path=/home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/tester, posted=True, target='') in /home/abhinav/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git/tester
shell cmd failed: /bin/sh -ex  /home/abhinav/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-HEAD-1/doit
error: building rtems-tools-HEAD-1


More information about the devel mailing list