RTEMS Toolchain building failed

Jianxun Yan yanjx at jlab.org
Fri Aug 18 18:50:27 UTC 2017


Hi,

I tried to build RTEMS 4.12 toolchain, but failed.

 > ../source-builder/sb-set-builder 
--prefix=/group/eesicgrp/yanjx/development/rtems/4.12 4.12/rtems-arm
RTEMS Source Builder - Set Builder, 4.12 (7208ab69e1fc)
Build Set: 4.12/rtems-arm
Build Set: 4.12/rtems-autotools.bset
Build Set: 4.12/rtems-autotools-internal.bset
config: tools/rtems-autoconf-2.69-1.cfg
......

......

git: pull: git://git.rtems.org/rtems-tools.git
building: rtems-tools-HEAD-1
error: building rtems-tools-HEAD-1
Build FAILED
   See error report: rsb-report-rtems-tools-HEAD-1.txt
error: building rtems-tools-HEAD-1
Build Set: Time 0:50:33.463151
Build FAILED


Does anyone know what is the problem?

Thanks

Jay

-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building rtems-tools-HEAD-1
 Command Line: ../source-builder/sb-set-builder --prefix=/group/eesicgrp/yanjx/development/rtems/4.12 4.12/rtems-arm
 Python: 2.7.5 (default, May  3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
 git://git.rtems.org/rtems-source-builder.git/origin/7208ab69e1fc068bdf23edc51e862db2f2a6a189
 Linux jlabl5.jlab.org 3.10.0-693.1.1.el7.x86_64 #1 SMP Thu Aug 3 08:15:31 EDT 2017 x86_64
Tail of the build log:
+ SB_TMPPREFIX=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12
+ SB_TMPBINDIR=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin
+ export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
+ SB_TMPCXCROOT=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm
+ SB_TMPCXCPREFIX=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx-cxc/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12
+ SB_TMPCXCBINDIR=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx-cxc/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin
+ export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
+ SB_EXTRAPATH=/u/group/eesicgrp/yanjx/development/rtems/rsb/source-builder
+ export CFLAGS_FOR_TARGET
+ export CXXFLAGS_FOR_TARGET
+ test -n /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin
+ PATH=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin:/group/eesicgrp/yanjx/development/rtems/4.12/bin:/home/yanjx/bin:/home/yanjx/bin/Linux:/apps/bin:/site/bin:/usr/local/bin:/usr/sbin:/usr/bin/X11:/opt/SUNWspro/bin:/opt/ansic/bin:/opt/aCC/bin:/opt/fortran/bin:/opt/fortran90/bin:/opt/langtools/bin:/usr/ccs/bin:/usr/bin:/bin:/usr/dt/bin:/usr/openwin/bin:/etc:/usr/etc:/usr/xpg4/bin:/usr/ucb:/usr/bsd:/sbin:/usr/proc/bin:/opt/imake/bin
+ test -n /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx-cxc/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin
+ PATH=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx-cxc/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin:/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin:/group/eesicgrp/yanjx/development/rtems/4.12/bin:/home/yanjx/bin:/home/yanjx/bin/Linux:/apps/bin:/site/bin:/usr/local/bin:/usr/sbin:/usr/bin/X11:/opt/SUNWspro/bin:/opt/ansic/bin:/opt/aCC/bin:/opt/fortran/bin:/opt/fortran90/bin:/opt/langtools/bin:/usr/ccs/bin:/usr/bin:/bin:/usr/dt/bin:/usr/openwin/bin:/etc:/usr/etc:/usr/xpg4/bin:/usr/ucb:/usr/bsd:/sbin:/usr/proc/bin:/opt/imake/bin
+ test -n /u/group/eesicgrp/yanjx/development/rtems/rsb/source-builder
+ PATH=/u/group/eesicgrp/yanjx/development/rtems/rsb/source-builder:/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx-cxc/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin:/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/sb-yanjx/4.12/rtems-arm/group/eesicgrp/yanjx/development/rtems/4.12/bin:/group/eesicgrp/yanjx/development/rtems/4.12/bin:/home/yanjx/bin:/home/yanjx/bin/Linux:/apps/bin:/site/bin:/usr/local/bin:/usr/sbin:/usr/bin/X11:/opt/SUNWspro/bin:/opt/ansic/bin:/opt/aCC/bin:/opt/fortran/bin:/opt/fortran90/bin:/opt/langtools/bin:/usr/ccs/bin:/usr/bin:/bin:/usr/dt/bin:/usr/openwin/bin:/etc:/usr/etc:/usr/xpg4/bin:/usr/ucb:/usr/bsd:/sbin:/usr/proc/bin:/opt/imake/bin
+ export PATH
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ cd /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ echo '=> rtems-tools-HEAD-1:'
+ echo '==> %prep:'
++ pwd
+ build_top=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ rtems_tools_source=rtems-tools.git
+ source_dir_rtems_tools=rtems-tools.git
+ cd /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ /bin/rm -rf rtems-tools.git
+ ln -s /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/sources/git/rtems-tools.git rtems-tools.git
+ cd rtems-tools.git
+ /bin/chmod -R a+rX,g-w,o-w .
+ cd /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ SB_CXC=no
==> clean %{buildroot}: /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-yanjx
+ echo '==> clean %{buildroot}: /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-yanjx'
+ /bin/rm -rf /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-yanjx
+ /bin/mkdir -p /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-yanjx
+ echo '==> %build:'
==> %build:
++ pwd
+ build_top=/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ test x86_64-linux-gnu '!=' x86_64-linux-gnu
+ RT_HOST=
+ cd rtems-tools.git
+ ./waf distclean configure --prefix=/group/eesicgrp/yanjx/development/rtems/4.12
'distclean' finished successfully (0.002s)
Setting top to                           : /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/sources/git/rtems-tools.git 
Setting out to                           : /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/sources/git/rtems-tools.git/build 
Version                                  : 4.12.78bbe4c1a31d (4.12) 
Checking for program 'python'            : /usr/bin/python 
Checking for python version >= 2.6.6     : 2.7.5 
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 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for function open64             : not found 
Checking for function stat64             : not found 
'configure' finished successfully (1.448s)
+ ./waf
Waf: Entering directory `/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/sources/git/rtems-tools.git/build'
[1/4] Compiling rtemstoolkit/elftoolchain/libelf/libelf_convert.m4
[2/4] Compiling rtemstoolkit/elftoolchain/libelf/libelf_fsize.m4
[3/4] Compiling rtemstoolkit/elftoolchain/libelf/libelf_msize.m4
[4/4] Compiling rtemstoolkit/elftoolchain/common/native-elf-format
[  5/151] Compiling rtemstoolkit/elftoolchain/libelf/elf.c
[  6/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_begin.c
[  7/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_cntl.c
[  8/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_end.c
[  9/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_errmsg.c
[ 10/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_errno.c
[ 11/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_data.c
[ 12/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_fill.c
[ 13/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_flag.c
[ 14/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_getarhdr.c
[ 15/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_getarsym.c
[ 16/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_getbase.c
[ 17/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_getident.c
[ 18/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_hash.c
[ 19/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_kind.c
[ 20/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_memory.c
[ 21/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_next.c
[ 22/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_rand.c
[ 23/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_rawfile.c
[ 24/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_phnum.c
[ 25/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_shnum.c
[ 26/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_shstrndx.c
[ 27/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_scn.c
[ 28/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_strptr.c
[ 29/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_update.c
[ 30/151] Compiling rtemstoolkit/elftoolchain/libelf/elf_version.c
[ 31/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_cap.c
[ 32/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_checksum.c
[ 33/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_dyn.c
[ 34/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_ehdr.c
[ 35/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_getclass.c
[ 36/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_fsize.c
[ 37/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_move.c
[ 38/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_phdr.c
[ 39/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_rel.c
[ 40/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_rela.c
[ 41/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_shdr.c
[ 42/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_sym.c
[ 43/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_syminfo.c
[ 44/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_symshndx.c
[ 45/151] Compiling rtemstoolkit/elftoolchain/libelf/gelf_xlate.c
[ 46/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_align.c
[ 47/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_allocate.c
[ 48/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_ar.c
[ 49/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_ar_util.c
[ 50/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_checksum.c
[ 51/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_data.c
[ 52/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_ehdr.c
[ 53/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_extended.c
[ 54/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_phdr.c
[ 55/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_shdr.c
[ 56/151] Compiling rtemstoolkit/elftoolchain/libelf/libelf_xlate.c
[ 57/151] Compiling build/rtemstoolkit/libelf_convert.c
[ 58/151] Compiling build/rtemstoolkit/libelf_fsize.c
[ 59/151] Compiling build/rtemstoolkit/libelf_msize.c
[ 60/151] Compiling rtemstoolkit/libiberty/concat.c
[ 61/151] Compiling rtemstoolkit/libiberty/cplus-dem.c
[ 62/151] Compiling rtemstoolkit/libiberty/cp-demangle.c
[ 63/151] Compiling rtemstoolkit/libiberty/d-demangle.c
[ 64/151] Compiling rtemstoolkit/libiberty/rust-demangle.c
[ 65/151] Compiling rtemstoolkit/libiberty/make-temp-file.c
[ 66/151] Compiling rtemstoolkit/libiberty/mkstemps.c
[ 67/151] Compiling rtemstoolkit/libiberty/safe-ctype.c
[ 68/151] Compiling rtemstoolkit/libiberty/stpcpy.c
[ 69/151] Compiling rtemstoolkit/libiberty/pex-common.c
[ 70/151] Compiling rtemstoolkit/libiberty/pex-one.c
[ 71/151] Compiling rtemstoolkit/libiberty/xmalloc.c
[ 72/151] Compiling rtemstoolkit/libiberty/xmemdup.c
[ 73/151] Compiling rtemstoolkit/libiberty/xstrdup.c
[ 74/151] Compiling rtemstoolkit/libiberty/xstrerror.c
[ 75/151] Compiling rtemstoolkit/libiberty/pex-unix.c
[ 76/151] Compiling rtemstoolkit/ConvertUTF.c
[ 77/151] Compiling rtemstoolkit/pkgconfig.cpp
[ 78/151] Compiling rtemstoolkit/rld-buffer.cpp
[ 79/151] Compiling rtemstoolkit/rld-cc.cpp
[ 80/151] Compiling rtemstoolkit/rld-compression.cpp
[ 81/151] Compiling rtemstoolkit/rld-config.cpp
[ 82/151] Compiling rtemstoolkit/rld-elf.cpp
[ 83/151] Compiling rtemstoolkit/rld-files.cpp
[ 84/151] Compiling rtemstoolkit/rld-outputter.cpp
[ 85/151] Compiling rtemstoolkit/rld-path.cpp
[ 86/151] Compiling rtemstoolkit/rld-process.cpp
[ 87/151] Compiling rtemstoolkit/rld-rap.cpp
In file included from ../rtemstoolkit/libiberty/libiberty.h:42:0,
                 from ../rtemstoolkit/rld-process.cpp:64:
../rtemstoolkit/libiberty/ansidecl.h:169:64: error: new declaration 'char* basename(const char*)'
 #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
                                                                ^
../rtemstoolkit/libiberty/libiberty.h:112:64: note: in expansion of macro 'ATTRIBUTE_NONNULL'
 extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
                                                                ^
In file included from ../rtemstoolkit/rld-process.cpp:24:0:
/usr/include/string.h:599:26: error: ambiguates old declaration 'const char* basename(const char*)'
 extern "C++" const char *basename (const char *__filename)
                          ^
In file included from ../rtemstoolkit/libiberty/libiberty.h:42:0,
                 from ../rtemstoolkit/rld-process.cpp:64:
../rtemstoolkit/libiberty/ansidecl.h:169:64: error: declaration of 'int vasprintf(char**, const char*, __va_list_tag*)' has a different exception specifier
 #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
                                                                ^
../rtemstoolkit/libiberty/ansidecl.h:198:80: note: in expansion of macro 'ATTRIBUTE_NONNULL'
 #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m)
                                                                                ^
../rtemstoolkit/libiberty/libiberty.h:651:55: note: in expansion of macro 'ATTRIBUTE_PRINTF'
 extern int vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2,0);
                                                       ^
In file included from ../rtemstoolkit/rld-process.cpp:23:0:
/usr/include/stdio.h:399:12: error: from previous declaration 'int vasprintf(char**, const char*, __va_list_tag*) throw ()'
 extern int vasprintf (char **__restrict __ptr, const char *__restrict __f,
            ^

Waf: Leaving directory `/u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/sources/git/rtems-tools.git/build'
Build failed
 -> task in 'rld' failed with exit status 1 (run with -v to display more information)
shell cmd failed: /bin/sh -ex  /u/group/eesicgrp/yanjx/development/rtems/rsb/rtems/build/rtems-tools-HEAD-1/doit
error: building rtems-tools-HEAD-1


More information about the users mailing list