https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98227

            Bug ID: 98227
           Summary: [11 Regression] ICE: tree check: expected tree that
                    contains 'decl common' structure, have 'constructor'
                    in get_section, at varasm.c:297 on riscv64-linux-gnu
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

trunk 20201210 ftbfs on riscv64-linux-gnu

mkdir -p ada/libgnat/
/<<PKGBUILDDIR>>/build/./prev-gcc/xgcc -B/<<PKGBUILDDIR>>/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/riscv64-linux-gnu/bin/ -
B/usr/lib/gcc-snapshot/riscv64-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/riscv64-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/
riscv64-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/riscv64-linux-gnu/sys-include   -fno-checking -c -g -O2
-fno-checki
ng -gtoggle -fprofile-generate  -gnatpg -gnata -W -Wall -nostdinc -I- -I.
-Iada/generated -Iada -Iada/gcc-interface -I../../
src/gcc/ada -I../../src/gcc/ada/gcc-interface -Iada/libgnat
-I../../src/gcc/ada/libgnat ../../src/gcc/ada/libgnat/a-elchha.a
db -o ada/libgnat/a-elchha.o
+===========================GNAT BUG DETECTED==============================+
| 11.0.0 20201210 (experimental) [master revision
79c1b9fb44c:3f67ba38dca:8c60696b699e0b22cc12ae628473f0a23f90c82e] (riscv64
-linux-gnu) GCC error:|
| tree check: expected tree that contains 'decl common' structure,         |
|     have 'constructor' in get_section, at varasm.c:297                   |
| Error detected around ../../src/gcc/ada/libgnat/a-elchha.adb:118:7       |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

../../src/gcc/ada/gcc-interface/system.ads
../../src/gcc/ada/libgnat/a-elchha.adb
../../src/gcc/ada/libgnat/a-elchha.ads
../../src/gcc/ada/libgnat/a-except.ads
../../src/gcc/ada/libgnat/ada.ads
../../src/gcc/ada/libgnat/s-parame.ads
../../src/gcc/ada/libgnat/s-stalib.ads
../../src/gcc/ada/libgnat/a-unccon.ads
../../src/gcc/ada/libgnat/s-traent.ads
../../src/gcc/ada/libgnat/s-soflin.ads
../../src/gcc/ada/libgnat/s-secsta.ads
../../src/gcc/ada/libgnat/s-stoele.ads
../../src/gcc/ada/libgnat/s-stache.ads


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:407
make[5]: *** [../../src/gcc/ada/gcc-interface/Make-lang.in:139:
ada/libgnat/a-elchha.o] Error 1
make[5]: *** Waiting for unfinished jobs....
rm gfdl.pod gcc.pod gfortran.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod
gpl.pod cpp.pod gcov.pod lto-dump.pod gccgo.pod gdc.pod
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/gcc'
make[4]: *** [Makefile:4904: all-stageprofile-gcc] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[3]: *** [Makefile:25239: stageprofile-bubble] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [Makefile:25504: profiledbootstrap-lean] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'

that's a profiled bootstrap configured with:

         --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++
         --prefix=/usr/lib/gcc-snapshot
         --with-gcc-major-version-only
         --program-prefix=
         --enable-shared
         --enable-linker-build-id
         --disable-nls
         --enable-bootstrap
         --enable-clocale=gnu
         --enable-libstdcxx-debug
         --enable-libstdcxx-time=yes
         --with-default-libstdcxx-abi=new
         --enable-gnu-unique-object
         --disable-libitm
         --disable-libsanitizer
         --disable-libquadmath
         --disable-libquadmath-support
         --enable-plugin
         --with-system-zlib
         --enable-libphobos-checking=release
         --with-target-system-zlib=auto
         --enable-objc-gc=auto
         --enable-multiarch
         --disable-werror
         --disable-multilib
         --with-arch=rv64imafdc
         --with-abi=lp64d
         --enable-checking=yes
         --build=riscv64-linux-gnu
         --host=riscv64-linux-gnu
         --target=riscv64-linux-gnu

Reply via email to