RTEMS Toolchain building failed

Jacob Saina jsaina at terpmail.umd.edu
Fri Aug 18 18:55:36 UTC 2017


I have the same result. I used to be able to build from the 4.11 tag, so I
assume something is wrong with the current master.

On Fri, Aug 18, 2017 at 2:50 PM, Jianxun Yan <yanjx at jlab.org> wrote:

> 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
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170818/5e37d9c6/attachment-0001.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building rtems-tools-HEAD-1
 Command Line: ../source-builder/sb-set-builder --prefix=/home/prime/rtems/4.12 4.12/rtems-arm
 Python: 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
 git://git.rtems.org/rtems-source-builder.git/origin/7208ab69e1fc068bdf23edc51e862db2f2a6a189-modified
 Linux u16-0 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 x86_64
Tail of the build log:
+ export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
+ SB_TMPCXCROOT=/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime/4.12/rtems-arm
+ SB_TMPCXCPREFIX=/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime-cxc/4.12/rtems-arm/home/prime/rtems/4.12
+ SB_TMPCXCBINDIR=/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime-cxc/4.12/rtems-arm/home/prime/rtems/4.12/bin
+ export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
+ SB_EXTRAPATH=/home/prime/workspace/rtems/rsb/source-builder
+ export CFLAGS_FOR_TARGET
+ export CXXFLAGS_FOR_TARGET
+ test -n /home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime/4.12/rtems-arm/home/prime/rtems/4.12/bin
+ PATH=/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime/4.12/rtems-arm/home/prime/rtems/4.12/bin:/home/prime/bin:/home/prime/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ test -n /home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime-cxc/4.12/rtems-arm/home/prime/rtems/4.12/bin
+ PATH=/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime-cxc/4.12/rtems-arm/home/prime/rtems/4.12/bin:/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime/4.12/rtems-arm/home/prime/rtems/4.12/bin:/home/prime/bin:/home/prime/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ test -n /home/prime/workspace/rtems/rsb/source-builder
+ PATH=/home/prime/workspace/rtems/rsb/source-builder:/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime-cxc/4.12/rtems-arm/home/prime/rtems/4.12/bin:/home/prime/workspace/rtems/rsb/rtems/build/tmp/sb-prime/4.12/rtems-arm/home/prime/rtems/4.12/bin:/home/prime/bin:/home/prime/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ export PATH
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ cd /home/prime/workspace/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ echo => rtems-tools-HEAD-1:
+ echo ==> %prep:
+ pwd
+ build_top=/home/prime/workspace/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ rtems_tools_source=rtems-tools.git
+ source_dir_rtems_tools=rtems-tools.git
+ cd /home/prime/workspace/rtems/rsb/rtems/build/rtems-tools-HEAD-1
+ /bin/rm -rf rtems-tools.git
+ ln -s /home/prime/workspace/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 /home/prime/workspace/rtems/rsb/rtems/build/rtems-tools-HEAD-1
==> clean %{buildroot}: /home/prime/workspace/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-prime
+ SB_CXC=no
+ echo ==> clean %{buildroot}: /home/prime/workspace/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-prime
+ /bin/rm -rf /home/prime/workspace/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-prime
+ /bin/mkdir -p /home/prime/workspace/rtems/rsb/rtems/build/tmp/rtems-tools-HEAD-1-root-prime
+ echo ==> %build:
==> %build:
+ pwd
+ build_top=/home/prime/workspace/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=/home/prime/rtems/4.12
'distclean' finished successfully (0.007s)
Setting top to                           : /home/prime/workspace/rtems/rsb/rtems/sources/git/rtems-tools.git 
Setting out to                           : /home/prime/workspace/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.12 
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.369s)
+ ./waf
Waf: Entering directory `/home/prime/workspace/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: ambiguating new declaration of '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:596:26: note: 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 /usr/include/features.h:367:0,
                 from /usr/include/ctype.h:25,
                 from ../rtemstoolkit/rld-process.cpp:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:207:1: error: from previous declaration 'int vasprintf(char**, const char*, __va_list_tag*) throw ()'
 __NTH (vasprintf (char **__restrict __ptr, const char *__restrict __fmt,
 ^

Waf: Leaving directory `/home/prime/workspace/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  /home/prime/workspace/rtems/rsb/rtems/build/rtems-tools-HEAD-1/doit
error: building rtems-tools-HEAD-1


More information about the users mailing list