public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/98227] New: [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
@ 2020-12-10 17:10 doko at debian dot org
  2020-12-11  7:30 ` [Bug middle-end/98227] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: doko at debian dot org @ 2020-12-10 17:10 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/98227] [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
  2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
@ 2020-12-11  7:30 ` rguenth at gcc dot gnu.org
  2020-12-11  8:53 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-12-11  7:30 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
           Keywords|                            |build
          Component|ada                         |middle-end
           Priority|P3                          |P1
                 CC|                            |hjl.tools at gmail dot com

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Looks like get_section is also called for CTORs and 'decl' isn't very well
named.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/98227] [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
  2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
  2020-12-11  7:30 ` [Bug middle-end/98227] " rguenth at gcc dot gnu.org
@ 2020-12-11  8:53 ` marxin at gcc dot gnu.org
  2020-12-11 12:07 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-11  8:53 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Hm, we build Ada for riscv64 and it seems fine:
https://build.opensuse.org/build/devel:gcc/openSUSE_Factory_RISCV/riscv64/gcc11/_log

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/98227] [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
  2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
  2020-12-11  7:30 ` [Bug middle-end/98227] " rguenth at gcc dot gnu.org
  2020-12-11  8:53 ` marxin at gcc dot gnu.org
@ 2020-12-11 12:07 ` hjl.tools at gmail dot com
  2020-12-11 21:03 ` wilson at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2020-12-11 12:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Please try:

https://gcc.gnu.org/pipermail/gcc-patches/2020-December/561484.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/98227] [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
  2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
                   ` (2 preceding siblings ...)
  2020-12-11 12:07 ` hjl.tools at gmail dot com
@ 2020-12-11 21:03 ` wilson at gcc dot gnu.org
  2020-12-12 23:24 ` wilson at gcc dot gnu.org
  2020-12-13 10:56 ` doko at debian dot org
  5 siblings, 0 replies; 7+ messages in thread
From: wilson at gcc dot gnu.org @ 2020-12-11 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #4 from Jim Wilson <wilson at gcc dot gnu.org> ---
This should already be fixed.  I ran into the same problem in my testing and
committed a patch today that HJ helpfully pointed at.  I don't test ada builds
normally.  I can try that to verify.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/98227] [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
  2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
                   ` (3 preceding siblings ...)
  2020-12-11 21:03 ` wilson at gcc dot gnu.org
@ 2020-12-12 23:24 ` wilson at gcc dot gnu.org
  2020-12-13 10:56 ` doko at debian dot org
  5 siblings, 0 replies; 7+ messages in thread
From: wilson at gcc dot gnu.org @ 2020-12-12 23:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jim Wilson <wilson at gcc dot gnu.org> ---
My bootstrap with ada succeeded.  I used the same configure options except for
--prefix.  make check is still running.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/98227] [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
  2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
                   ` (4 preceding siblings ...)
  2020-12-12 23:24 ` wilson at gcc dot gnu.org
@ 2020-12-13 10:56 ` doko at debian dot org
  5 siblings, 0 replies; 7+ messages in thread
From: doko at debian dot org @ 2020-12-13 10:56 UTC (permalink / raw)
  To: gcc-bugs

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

Matthias Klose <doko at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Matthias Klose <doko at debian dot org> ---
yes, the bootstrap works now.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-13 10:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 17:10 [Bug ada/98227] New: [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 doko at debian dot org
2020-12-11  7:30 ` [Bug middle-end/98227] " rguenth at gcc dot gnu.org
2020-12-11  8:53 ` marxin at gcc dot gnu.org
2020-12-11 12:07 ` hjl.tools at gmail dot com
2020-12-11 21:03 ` wilson at gcc dot gnu.org
2020-12-12 23:24 ` wilson at gcc dot gnu.org
2020-12-13 10:56 ` doko at debian dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).