https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108147
Bug ID: 108147 Summary: Bootstrap failure on powerpc64le-linux with m2 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Bootstrap fails on powerpc64le-linux when modula 2 is enabled. ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-targets=powerpcle-linux --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.0.0-20221215/obj-ppc64le-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-secureplt --with-long-double-128 --with-long-double-format=ieee --with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 --build=ppc64le-redhat-linux and the ICE I get is on: /builddir/build/BUILD/gcc-13.0.0-20221215/obj-ppc64le-redhat-linux/./gcc/gm2 -B/builddir/build/BUILD/gcc-13.0.0-20221215/obj-ppc64le-redhat-linux/./gcc/ -c -O2 -fexceptions -g -grecord-gcc-switches -Wall -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -fexceptions -g -grecord-gcc-switches -Wall -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I. -I/builddir/build/BUILD/gcc-13.0.0-20221215/gcc/m2/gm2-libs-min -I/builddir/build/BUILD/gcc-13.0.0-20221215/gcc/m2/gm2-libs -fno-exceptions -fno-m2-plugin -fno-scaffold-dynamic -fno-scaffold-main ../../../../libgm2/libm2min/../../gcc/m2/gm2-libs-min/M2RTS.mod -o M2RTS.lo /builddir/build/BUILD/gcc-13.0.0-20221215/obj-ppc64le-redhat-linux/./gcc/cc1gm2 -msecure-plt -quiet -dumpbase M2RTS.mod -dumpbase-ext .mod -mcpu=power8 -mtune=power8 -mcpu=power8 -mtune=power8 -g -g -grecord-gcc-switches -O2 -O2 -Wall -Wformat-security -version -fasynchronous-unwind-tables -fstack-clash-protection -fno-exceptions -fno-m2-plugin -fno-scaffold-dynamic -fno-scaffold-main -B /builddir/build/BUILD/gcc-13.0.0-20221215/obj-ppc64le-redhat-linux/./gcc/ -c -fasynchronous-unwind-tables -fstack-clash-protection -fno-exceptions -fno-m2-plugin -fno-scaffold-dynamic -fno-scaffold-main -I . -I /builddir/build/BUILD/gcc-13.0.0-20221215/gcc/m2/gm2-libs-min -I /builddir/build/BUILD/gcc-13.0.0-20221215/gcc/m2/gm2-libs -I /usr/lib/gcc/ppc64le-redhat-linux/13/tune=power8/m2/m2pim -I /usr/lib/gcc/ppc64le-redhat-linux/13/tune=power8/m2/m2log -I /usr/lib/gcc/ppc64le-redhat-linux/13/tune=power8/m2/m2iso ../../../../libgm2/libm2min/../../gcc/m2/gm2-libs-min/M2RTS.mod -o /tmp/ccAHJQJE.s cc1gm2: warning: command-line option '-Wformat-security' is valid for C/C++/ObjC/ObjC++ but not for Modula-2 GNU Modula-2 (GCC) version 13.0.0 20221215 (Red Hat 13.0.0-0) (ppc64le-redhat-linux) compiled by GNU C version 13.0.0 20221215 (Red Hat 13.0.0-0), GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version 1.2.1, isl version none GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Modula-2 (GCC) version 13.0.0 20221215 (Red Hat 13.0.0-0) (ppc64le-redhat-linux) compiled by GNU C version 13.0.0 20221215 (Red Hat 13.0.0-0), GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version 1.2.1, isl version none GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 /builddir/build/BUILD/gcc-13.0.0-20221215/gcc/m2/gm2-libs-min/M2RTS.def:41:27: warning: In procedure 'RegisterModule': unused parameter 'name' in procedure 'RegisterModule' 41 | PROCEDURE RegisterModule (name: ADDRESS; | ^~~~ terminate called after throwing an instance of 'unsigned int' cc1gm2: internal compiler error: Aborted 0x103c716b crash_signal ../../gcc/toplev.cc:317 0x116465d7 __gnu_cxx::__verbose_terminate_handler() ../../../../libstdc++-v3/libsupc++/vterminate.cc:95 0x11644e13 __cxxabiv1::__terminate(void (*)()) ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48 0x11644edf std::terminate() ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58 0x116451a3 __cxa_throw ../../../../libstdc++-v3/libsupc++/eh_throw.cc:98 0x111327df InvokeHandler m2/gm2-libs-boot/RTExceptions.c:483 0x111327df RTExceptions_Raise m2/gm2-libs-boot/RTExceptions.c:943 0x1113a717 sigbusDespatcher ../../gcc/m2/gm2-libs-ch/SysExceptions.c:125 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <http://bugzilla.redhat.com/bugzilla> for instructions.