Building RTEMS for BeagleBone Black failed

Russell Haley russ.haley at gmail.com
Sun Jul 16 20:13:23 UTC 2017


Hi,

I'm following the instructions here

http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html

to build rtems for my BBB on TrueOS (aka FreeBSD 12-CURRENT).

The rsb report is attached and in pastebin if it gets stripped.
https://pastebin.com/KA9S0NQL

I'll start digging but this looks like it's out of my league. Let me
know what other context I can provide.

Thanks!
Russ
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building arm-rtems4.12-gcc-6.3.0-newlib-2.5.0.20170228-x86_64-freebsd12.0-1
 Command Line: ../source-builder/sb-set-builder --log=beagle.txt --prefix=/usr/home/russellh/development/rtems/4.12 devel/beagle.bset
 Python: 2.7.13 (default, May 20 2017, 02:58:00) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)]
 https://github.com/bengras/rtems-source-builder.git/origin/1aaee3315ebdf0825c924043404e845fcd89a466
 FreeBSD prescott.highfell.local 12.0-CURRENT FreeBSD 12.0-CURRENT #66 ac2f0aa3b(trueos-stable)-dirty: Wed Jun 21 01:09:23 UTC 2017     root at gauntlet:/usr/obj/usr/src/sys/GENERIC amd64
Tail of the build log:
				     common/common-target-hooks-def.h
echo timestamp > s-target-hooks-def-h
build/genhooks "C Target Hook" \
				     > tmp-c-target-hooks-def.h
echo timestamp > s-common-target-hooks-def-h
build/genmodes > tmp-modes.c
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-c-target-hooks-def.h \
				     c-family/c-target-hooks-def.h
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-modes.c insn-modes.c
echo timestamp > s-c-target-hooks-def-h
build/genmddeps ../../gcc-6.3.0/gcc/common.md ../../gcc-6.3.0/gcc/config/arm/arm.md > tmp-mddeps
echo timestamp > s-modes
build/genmodes -h > tmp-modes.h
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-modes.h insn-modes.h
echo timestamp > s-modes-h
build/gengenrtl > tmp-genrtl.h
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-genrtl.h genrtl.h
echo timestamp > s-genrtl-h
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-mddeps mddeps.mk
if [ xinfo = xinfo ]; then \
	makeinfo --split-size=5000000 --split-size=5000000 --no-split -I . -I ../../gcc-6.3.0/gcc/doc \
		-I ../../gcc-6.3.0/gcc/doc/include -o doc/gccint.info ../../gcc-6.3.0/gcc/doc/gccint.texi; \
fi
echo timestamp > s-mddeps
build/genconstants ../../gcc-6.3.0/gcc/common.md ../../gcc-6.3.0/gcc/config/arm/arm.md \
   > tmp-constants.h
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-constants.h insn-constants.h
echo timestamp > s-constants
/usr/bin/c++ -O2 -pipe -fbracket-depth=1024 -I/usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/tmp/sb-russellh/devel/beagle.bset/usr/home/russellh/development/rtems/4.12/include -c    -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../gcc-6.3.0/gcc -I../../gcc-6.3.0/gcc/build -I../../gcc-6.3.0/gcc/../include  -I../../gcc-6.3.0/gcc/../libcpp/include  \
	-o build/min-insn-modes.o min-insn-modes.c
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
build/genenums ../../gcc-6.3.0/gcc/common.md ../../gcc-6.3.0/gcc/config/arm/arm.md \
   > tmp-enums.c
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-enums.c insn-enums.c
echo timestamp > s-enums
config.status: creating Makefile
config.status: creating cc1plugin-config.h
config.status: executing depfiles commands
config.status: executing libtool commands
19 warnings generated.
31 warnings generated.
/usr/bin/c++ -O2 -pipe -fbracket-depth=1024 -I/usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/tmp/sb-russellh/devel/beagle.bset/usr/home/russellh/development/rtems/4.12/include    -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -L/usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/tmp/sb-russellh/devel/beagle.bset/usr/home/russellh/development/rtems/4.12/lib  -o build/gengtype \
    build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o build/gengtype-state.o build/version.o ../build-x86_64-freebsd12.0/libiberty/libiberty.a
cp doc/gcc.1 doc/g++.1
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
nawk -f ../../gcc-6.3.0/gcc/opt-functions.awk -f ../../gcc-6.3.0/gcc/opt-read.awk \
       -f ../../gcc-6.3.0/gcc/opth-gen.awk \
       < optionlist > tmp-options.h
nawk -f ../../gcc-6.3.0/gcc/opt-functions.awk -f ../../gcc-6.3.0/gcc/opt-read.awk \
       -f ../../gcc-6.3.0/gcc/optc-save-gen.awk \
       -v header_name="config.h system.h coretypes.h tm.h" < optionlist > options-save.c
nawk -f ../../gcc-6.3.0/gcc/opt-functions.awk -f ../../gcc-6.3.0/gcc/opt-read.awk \
       -f ../../gcc-6.3.0/gcc/optc-gen.awk \
       -v header_name="config.h system.h coretypes.h options.h tm.h" < optionlist > options.c
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
build/gengtype  \
                    -S ../../gcc-6.3.0/gcc -I gtyp-input.list -w tmp-gtype.state
/usr/bin/c++ -O2 -pipe -fbracket-depth=1024 -I/usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/tmp/sb-russellh/devel/beagle.bset/usr/home/russellh/development/rtems/4.12/include -c    -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../gcc-6.3.0/gcc -I../../gcc-6.3.0/gcc/build -I../../gcc-6.3.0/gcc/../include  -I../../gcc-6.3.0/gcc/../libcpp/include  \
	-o build/gencheck.o ../../gcc-6.3.0/gcc/gencheck.c
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
In file included from ../../gcc-6.3.0/gcc/gencheck.c:25:
../../gcc-6.3.0/gcc/coretypes.h:62:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags]
class rtx_def;
^
../../gcc-6.3.0/gcc/coretypes.h:55:8: note: previous use is here
struct rtx_def;
       ^
In file included from ../../gcc-6.3.0/gcc/gencheck.c:26:
In file included from ./tm.h:17:
./options.h:5327:3: error: redefinition of enumerator 'OPT_C'
  OPT_C = 127,                               /* -C */
  ^
./options.h:5324:3: note: previous definition is here
  OPT_C = 124,                               /* -C */
  ^
./options.h:5335:3: error: redefinition of enumerator 'OPT_d'
  OPT_d = 135,                               /* -d */
  ^
./options.h:5333:3: note: previous definition is here
  OPT_d = 133,                               /* -d */
  ^
./options.h:5336:3: error: redefinition of enumerator 'OPT_D'
  OPT_D = 136,                               /* -D */
  ^
./options.h:5334:3: note: previous definition is here
  OPT_D = 134,                               /* -D */
  ^
./options.h:5337:3: error: redefinition of enumerator 'OPT_d'
  OPT_d = 137,                               /* -d */
  ^
./options.h:5333:3: note: previous definition is here
  OPT_d = 133,                               /* -d */
  ^
./options.h:5338:3: error: redefinition of enumerator 'OPT_D'
  OPT_D = 138,                               /* -D */
  ^
./options.h:5334:3: note: previous definition is here
  OPT_D = 134,                               /* -D */
  ^
./options.h:5339:3: error: redefinition of enumerator 'OPT_d'
  OPT_d = 139,                               /* -d */
  ^
./options.h:5333:3: note: previous definition is here
  OPT_d = 133,                               /* -d */
  ^
./options.h:5347:3: error: redefinition of enumerator 'OPT_E'
  OPT_E = 147,                               /* -E */
  ^
./options.h:5345:3: note: previous definition is here
  OPT_E = 145,                               /* -E */
  ^
./options.h:6029:3: error: redefinition of enumerator 'OPT_H'
  OPT_H = 829,                               /* -H */
  ^
./options.h:6027:3: note: previous definition is here
  OPT_H = 827,                               /* -H */
  ^
./options.h:6032:3: error: redefinition of enumerator 'OPT_I'
  OPT_I = 832,                               /* -I */
  ^
./options.h:6030:3: note: previous definition is here
  OPT_I = 830,                               /* -I */
  ^
./options.h:6068:3: error: redefinition of enumerator 'OPT_MF'
  OPT_MF = 868,                              /* -MF */
  ^
./options.h:6066:3: note: previous definition is here
  OPT_MF = 866,                              /* -MF */
  ^
./options.h:6071:3: error: redefinition of enumerator 'OPT_M'
  OPT_M = 871,                               /* -M */
  ^
./options.h:6060:3: note: previous definition is here
  OPT_M = 860,                               /* -M */
  ^
./options.h:6076:3: error: redefinition of enumerator 'OPT_M'
  OPT_M = 876,                               /* -M */
  ^
./options.h:6060:3: note: previous definition is here
  OPT_M = 860,                               /* -M */
  ^
./options.h:6082:3: error: redefinition of enumerator 'OPT_MM'
  OPT_MM = 882,                              /* -MM */
  ^
./options.h:6079:3: note: previous definition is here
  OPT_MM = 879,                              /* -MM */
  ^
./options.h:6089:3: error: redefinition of enumerator 'OPT_MP'
  OPT_MP = 889,                              /* -MP */
  ^
./options.h:6086:3: note: previous definition is here
  OPT_MP = 886,                              /* -MP */
  ^
./options.h:6102:3: error: redefinition of enumerator 'OPT_MT'
  OPT_MT = 902,                              /* -MT */
  ^
./options.h:6099:3: note: previous definition is here
  OPT_MT = 899,                              /* -MT */
  ^
./options.h:6126:3: error: redefinition of enumerator 'OPT_o'
  OPT_o = 926,                               /* -o */
  ^
./options.h:6123:3: note: previous definition is here
  OPT_o = 923,                               /* -o */
  ^
./options.h:6128:3: error: redefinition of enumerator 'OPT_o'
  OPT_o = 928,                               /* -o */
  ^
./options.h:6123:3: note: previous definition is here
  OPT_o = 923,                               /* -o */
  ^
./options.h:6135:3: error: redefinition of enumerator 'OPT_P'
  OPT_P = 935,                               /* -P */
  ^
./options.h:6131:3: note: previous definition is here
  OPT_P = 931,                               /* -P */
  ^
./options.h:6236:3: error: redefinition of enumerator 'OPT_U'
  OPT_U = 1036,                              /* -U */
  ^
./options.h:6234:3: note: previous definition is here
  OPT_U = 1034,                              /* -U */
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
gmake[2]: *** [Makefile:2495: build/gencheck.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/bin/sh ../../gcc-6.3.0/gcc/../move-if-change tmp-gtype.state gtype.state
build/gengtype  \
                    -r gtype.state
echo timestamp > s-gtype
rm gcc.pod
gmake[2]: Leaving directory '/usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/arm-rtems4.12-gcc-6.3.0-newlib-2.5.0.20170228-x86_64-freebsd12.0-1/build/gcc'
gmake[1]: *** [Makefile:4137: all-gcc] Error 2
gmake[1]: Leaving directory '/usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/arm-rtems4.12-gcc-6.3.0-newlib-2.5.0.20170228-x86_64-freebsd12.0-1/build'
gmake: *** [Makefile:882: all] Error 2
shell cmd failed: /bin/sh -ex  /usr/home/russellh/Git/rtems-bbb/sources/rtems-source-builder/rtems/build/arm-rtems4.12-gcc-6.3.0-newlib-2.5.0.20170228-x86_64-freebsd12.0-1/doit
error: building arm-rtems4.12-gcc-6.3.0-newlib-2.5.0.20170228-x86_64-freebsd12.0-1


More information about the users mailing list