RTEMS Ada build problem on trunk

Sebastian Huber sebastian.huber@embedded-brains.de
Fri Jan 18 10:20:00 GMT 2019


On 17/01/2019 15:25, Sebastian Huber wrote:
> On 17/01/2019 12:40, Eric Botcazou wrote:
>>> I can build the trunk with a native
>>>
>>> gnat --version
>>> GNAT 8.2.1 20190103 [gcc-8-branch revision 267549]
>>> Copyright (C) 1996-2018, Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.
>>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>>> PARTICULAR PURPOSE.
>> This would suggest that bldtools/oscons/xoscons is miscompiled by the 
>> trunk
>> native compiler.  How did you configure this latter compiler?
>>
>
> Are there some build/source path limits involved while building Ada? 
> With long path names the build failed (path includes full Git hashes). 
> Then I move the source and build roots to a shorter path, then build 
> was successful using the same configure options.
>

I reduced the path lengths via short Git hashes. I was able to build GCC 
597c6d15f88

sparc-rtems5-gnat --version
GNAT 9.0.0 20190118 (RTEMS 6, RSB 
b794966eebc2cb09f14fee16e402f2b0eb8c0fcf, Newlib 7f983079d)

on openSUSE with a native GCC

gcc --version
gcc (SUSE Linux) 8.2.1 20190103 [gcc-8-branch revision 267549

provided by openSUSE.

On Debian GNU/Linux 9 (stretch) with a self built native GCC

gcc --version --verbose
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper
gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Target: x86_64-pc-linux-gnu
Configured with: ../src/gcc-8.2.0/configure 
--prefix=/home/user/gcc-8.2.0 --disable-multilib 
--enable-languages=c,c++,ada
Thread model: posix
gcc version 8.2.0 (GCC)
COLLECT_GCC_OPTIONS='--version' '-v' '-mtune=generic' '-march=x86-64'
  /home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/cc1 -quiet 
-v -imultiarch x86_64-linux-gnu help-dummy -quiet -dumpbase help-dummy 
-mtune=generic -march=x86-64 -auxbase help-dummy -version --version -o 
/tmp/cc7wWgjz.s
GNU C17 (GCC) version 8.2.0 (x86_64-pc-linux-gnu)
         compiled by GNU C version 8.2.0, GMP version 6.1.0, MPFR 
version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='--version' '-v' '-mtune=generic' '-march=x86-64'
  as -v --64 --version -o /tmp/ccKF8BFi.o /tmp/cc7wWgjz.s
GNU assembler version 2.28 (x86_64-linux-gnu) using BFD version (GNU 
Binutils for Debian) 2.28
GNU assembler (GNU Binutils for Debian) 2.28
Copyright (C) 2017 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.
COMPILER_PATH=/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/:/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/:/lib/x86_64-linux-gnu/:/lib/../lib64/:/usr/lib/x86_64-linux-gnu/:/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='--version' '-v' '-mtune=generic' '-march=x86-64'
  /home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2 
-plugin 
/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so 
-plugin-opt=/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper 
-plugin-opt=-fresolution=/tmp/cc1NHm21.res 
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s 
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc 
-plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 
-dynamic-linker /lib64/ld-linux-x86-64.so.2 --version 
/usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o 
/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbegin.o 
-L/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0 
-L/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu 
-L/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. 
/tmp/ccKF8BFi.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc 
--as-needed -lgcc_s --no-as-needed 
/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtend.o 
/usr/lib/x86_64-linux-gnu/crtn.o
collect2 version 8.2.0
/usr/bin/ld -plugin 
/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so 
-plugin-opt=/home/user/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper 
-plugin-opt=-fresolution=/tmp/cc1NHm21.res 
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s 
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc 
-plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 
-dynamic-linker /lib64/ld-linux-x86-64.so.2 --version 
/usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o 
/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbegin.o 
-L/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0 
-L/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu 
-L/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. 
/tmp/ccKF8BFi.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc 
--as-needed -lgcc_s --no-as-needed 
/home/user/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtend.o 
/usr/lib/x86_64-linux-gnu/crtn.o
GNU ld (GNU Binutils for Debian) 2.28
Copyright (C) 2017 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later 
version.
This program has absolutely no warranty.
COLLECT_GCC_OPTIONS='--version' '-v' '-mtune=generic' '-march=x86-64

it failed with the following error

rm -f ada/bldtools/snamest/snames.ads-tmpl 
ada/bldtools/snamest/snames.adb-tmpl ada/bldtools/snamest/snames.h-tmpl 
ada/bldtools/snamest/xsnamest.adb ad
a/bldtools/snamest/xutil.ads ada/bldtools/snamest/xutil.adb
mkdir -p ada/libgnat
cp -p ../../gnu-mirror-gcc-597c6d15f88/gcc/ada/snames.ads-tmpl 
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/snames.adb-tmpl 
../../gnu-mirror-gcc-597c6d15f8
8/gcc/ada/snames.h-tmpl 
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/xsnamest.adb 
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/xutil.ads ../../gnu-mirror-gcc-5
97c6d15f88/gcc/ada/xutil.adb ada/bldtools/snamest
cp -p ../../gnu-mirror-gcc-597c6d15f88/gcc/ada/libgnat/s-excmac__gcc.ads 
ada/libgnat/s-excmac.ads
mkdir -p ada/libgnat
xnmake.adb:50:06: "Ada" is not a predefined library unit
xnmake.adb:51:06: "Ada" is not a predefined library unit
xnmake.adb:52:06: "Ada" is not a predefined library unit
xnmake.adb:53:06: "Ada" is not a predefined library unit
xnmake.adb:54:06: "Ada" is not a predefined library unit
xnmake.adb:55:06: "Ada" is not a predefined library unit
xnmake.adb:56:06: "Ada" is not a predefined library unit
xnmake.adb:58:06: "Ada" is not a predefined library unit
xnmake.adb:58:06: "Xnmake (body)" depends on "Gnat.Spitbol (spec)"
xnmake.adb:58:06: "Gnat.Spitbol (spec)" depends on "Ada (spec)"
xnmake.adb:59:06: "Ada" is not a predefined library unit
xnmake.adb:59:06: "Xnmake (body)" depends on "Gnat.Spitbol.Patterns (spec)"
xnmake.adb:59:06: "Gnat.Spitbol.Patterns (spec)" depends on "Ada (spec)"
xnmake.adb:61:06: "Ada" is not a predefined library unit
xnmake.adb:61:06: "Xnmake (body)" depends on "Xutil (spec)"
xnmake.adb:61:06: "Xutil (spec)" depends on "Ada (spec)"
gnatmake: "xnmake.adb" compilation error
/bin/bash: ./xnmake: No such file or directory
/bin/bash: ./xnmake: No such file or directory
xtreeprs.adb:43:06: "ADA" is not a predefined library unit
xtreeprs.adb:44:06: "ADA" is not a predefined library unit
xtreeprs.adb:45:06: "ADA" is not a predefined library unit
xtreeprs.adb:46:06: "ADA" is not a predefined library unit
xtreeprs.adb:47:06: "ADA" is not a predefined library unit
xtreeprs.adb:49:06: "ADA" is not a predefined library unit
xtreeprs.adb:49:06: "XTREEPRS (body)" depends on "GNAT.SPITBOL (spec)"
xtreeprs.adb:49:06: "GNAT.SPITBOL (spec)" depends on "ADA (spec)"
xtreeprs.adb:50:06: "ADA" is not a predefined library unit
xtreeprs.adb:50:06: "XTREEPRS (body)" depends on "GNAT.SPITBOL.PATTERNS 
(spec)"
xtreeprs.adb:50:06: "GNAT.SPITBOL.PATTERNS (spec)" depends on "ADA (spec)"
xeinfo.adb:49:06: "ADA" is not a predefined library unit
xeinfo.adb:50:06: "ADA" is not a predefined library unit
xeinfo.adb:51:06: "ADA" is not a predefined library unit
xeinfo.adb:52:06: "ADA" is not a predefined library unit
xeinfo.adb:53:06: "ADA" is not a predefined library unit
xeinfo.adb:54:06: "ADA" is not a predefined library unit
xeinfo.adb:56:06: "ADA" is not a predefined library unit
xeinfo.adb:56:06: "XEINFO (body)" depends on "GNAT.SPITBOL (spec)"
xeinfo.adb:56:06: "GNAT.SPITBOL (spec)" depends on "ADA (spec)"
xeinfo.adb:57:06: "ADA" is not a predefined library unit
xeinfo.adb:57:06: "XEINFO (body)" depends on "GNAT.SPITBOL.PATTERNS (spec)"
xeinfo.adb:57:06: "GNAT.SPITBOL.PATTERNS (spec)" depends on "ADA (spec)"
xeinfo.adb:60:06: "ADA" is not a predefined library unit
xeinfo.adb:60:06: "XEINFO (body)" depends on "CEINFO (body)"
xeinfo.adb:60:06: "CEINFO (body)" depends on "ADA (spec)"
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/Make-generated.in:61: recipe 
for target 'ada/stamp-nmake' failed
make[2]: *** [ada/stamp-nmake] Error 127
(cd ada/bldtools/snamest; gnatmake -q xsnamest ; ./xsnamest )
make[2]: *** Waiting for unfinished jobs....
cp -p ../../gnu-mirror-gcc-597c6d15f88/gcc/ada/libgnat/s-excmac__gcc.adb 
ada/libgnat/s-excmac.adb
gnatmake: "xtreeprs.adb" compilation error
gnatmake: "xeinfo.adb" compilation error
/bin/bash: ./xtreeprs: No such file or directory
/bin/bash: ./xeinfo: No such file or directory
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/Make-generated.in:28: recipe 
for target 'ada/treeprs.ads' failed
make[2]: *** [ada/treeprs.ads] Error 127
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/Make-generated.in:35: recipe 
for target 'ada/einfo.h' failed
make[2]: *** [ada/einfo.h] Error 127
xsinfo.adb:41:06: "Ada" is not a predefined library unit
xsinfo.adb:42:06: "Ada" is not a predefined library unit
xsinfo.adb:43:06: "Ada" is not a predefined library unit
xsinfo.adb:44:06: "Ada" is not a predefined library unit
xsinfo.adb:46:06: "Ada" is not a predefined library unit
xsinfo.adb:46:06: "Xsinfo (body)" depends on "Gnat.Spitbol (spec)"
xsinfo.adb:46:06: "Gnat.Spitbol (spec)" depends on "Ada (spec)"
xsinfo.adb:47:06: "Ada" is not a predefined library unit
xsinfo.adb:47:06: "Xsinfo (body)" depends on "Gnat.Spitbol.Patterns (spec)"
xsinfo.adb:47:06: "Gnat.Spitbol.Patterns (spec)" depends on "Ada (spec)"
xsinfo.adb:49:06: "Ada" is not a predefined library unit
xsinfo.adb:49:06: "Xsinfo (body)" depends on "Csinfo (body)"
xsinfo.adb:49:06: "Csinfo (body)" depends on "Ada (spec)"
gnatmake: "xsinfo.adb" compilation error
/bin/bash: ./xsinfo: No such file or directory
../../gnu-mirror-gcc-597c6d15f88/gcc/ada/Make-generated.in:42: recipe 
for target 'ada/sinfo.h' failed
make[2]: *** [ada/sinfo.h] Error 127

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Gcc mailing list