Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux.slackware > #35822

GCC 16.2 ICE

From jayjwa <jayjwa@atr2.ath.cx.invalid>
Newsgroups alt.os.linux.slackware
Subject GCC 16.2 ICE
Date 2026-09-29 19:07 -0400
Organization atr2net 2026
Message-ID <875wznu05j.fsf@atr2.ath.cx> (permalink)

Show all headers | View raw


I have a sticky problem here: two machines, one Ryzen 5, one 9. decnet3
(my package I posted before on here, actually) builds on the 5 but not
on the 9. On the 9, GCC bombs out with in internal compiler error. I'm
seeing the same thing with cool-retro-term. Everything else I've tried
to build so far has succeeded, so I know the compiler works. decnet3 nor
cool-retro-term are a part of core Slackware but GCC is. Slackware
Current as of a few days ago, and both GCC versions are the same.

Any idea where to go with this? It's not the dev's code, because it
works on the 5. The only thing I can come up with is maybe it's due to
the CPU, a Ryzen 9 9950X. binutils are the same on both machines. Code
was pulled from github just now on both machines. 

make[1]: Entering directory '/usr/src/decnet3/LinuxDECnet/dnprogs/libdap'
g++ -pipe -fdollars-in-identifiers -fsigned-char -Wall -Wno-unused -Wno-uninitialized -I../libdap -I../include -DVERSION=\"3.27\" -D_XOPEN_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSHADOW_PWD -DDNETUSE_DEVPTS -g -O0  -DGITID=\"dc26065\" -Wno-format-y2k -DSYSCONF_PREFIX=\"\" -c -o connection.o connection.cc
g++ -pipe -fdollars-in-identifiers -fsigned-char -Wall -Wno-unused -Wno-uninitialized -I../libdap -I../include -DVERSION=\"3.27\" -D_XOPEN_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSHADOW_PWD -DDNETUSE_DEVPTS -g -O0  -DGITID=\"dc26065\" -Wno-format-y2k -DSYSCONF_PREFIX=\"\" -c -o protocol.o protocol.cc
during RTL pass: expand
In file included from connection.cc:49:
protocol.h: In constructor ‘dap_bytes::dap_bytes(int)’:
protocol.h:28:44: internal compiler error: Illegal instruction
   28 |             value = (unsigned char *)malloc(size+1); // May be a string
      |                                      ~~~~~~^~~~~~~~
0x2436876 diagnostics::context::diagnostic_impl(rich_location*, diagnostics::metadata const*, diagnostics::option_id, char const*, __va_list_tag (*) [1], diagnostics::kind)
	???:0
0x242f83f internal_error(char const*, ...)
	???:0
0xb78dbd expand_call(tree_node*, rtx_def*, int)
	???:0
0xca5f01 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
	???:0
0xcb387c store_expr(tree_node*, rtx_def*, int, bool, bool)
	???:0
0xcb6135 expand_assignment(tree_node*, tree_node*, bool)
	???:0
/usr/libexec/gcc/x86_64-slackware-linux/16.2.0/cc1plus -quiet -I ../libdap -I ../include -D_GNU_SOURCE -D VERSION="3.27" -D _XOPEN_SOURCE -D _DEFAULT_SOURCE -D _GNU_SOURCE -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D SHADOW_PWD -D DNETUSE_DEVPTS -D GITID="dc26065" -D SYSCONF_PREFIX="" connection.cc -quiet -dumpbase connection.cc -dumpbase-ext .cc -mtune=generic -march=x86-64 -g -O0 -Wall -Wno-unused -Wno-uninitialized -Wno-format-y2k -fdollars-in-identifiers -fsigned-char -o -
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[1]: *** [Makefile:26: connection.o] Error 1
make[1]: *** Waiting for unfinished jobs....
during RTL pass: expand
In file included from protocol.cc:46:
protocol.h: In constructor ‘dap_bytes::dap_bytes(int)’:
protocol.h:28:44: internal compiler error: Illegal instruction
   28 |             value = (unsigned char *)malloc(size+1); // May be a string
      |                                      ~~~~~~^~~~~~~~
0x2436876 diagnostics::context::diagnostic_impl(rich_location*, diagnostics::metadata const*, diagnostics::option_id, char const*, __va_list_tag (*) [1], diagnostics::kind)
	???:0
0x242f83f internal_error(char const*, ...)
	???:0
0xb78dbd expand_call(tree_node*, rtx_def*, int)
	???:0
0xca5f01 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
	???:0
0xcb387c store_expr(tree_node*, rtx_def*, int, bool, bool)
	???:0
0xcb6135 expand_assignment(tree_node*, tree_node*, bool)
	???:0
/usr/libexec/gcc/x86_64-slackware-linux/16.2.0/cc1plus -quiet -I ../libdap -I ../include -D_GNU_SOURCE -D VERSION="3.27" -D _XOPEN_SOURCE -D _DEFAULT_SOURCE -D _GNU_SOURCE -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D SHADOW_PWD -D DNETUSE_DEVPTS -D GITID="dc26065" -D SYSCONF_PREFIX="" protocol.cc -quiet -dumpbase protocol.cc -dumpbase-ext .cc -mtune=generic -march=x86-64 -g -O0 -Wall -Wno-unused -Wno-uninitialized -Wno-format-y2k -fdollars-in-identifiers -fsigned-char -o -
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[1]: *** [Makefile:26: protocol.o] Error 1
make[1]: Leaving directory '/usr/src/decnet3/LinuxDECnet/dnprogs/libdap'
make: *** [Makefile:27: all] Error 2
make exited with status code 2

Tue Sep 29 18:34:04 2026
----------------
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/16.2.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/16.2.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust,cobol --enable-threads=posix --enable-checking=release --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --disable-libstdcxx-pch --disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-plugin --enable-lto --disable-install-libiberty --disable-werror --with-gnu-ld --with-isl --verbose --with-arch-directory=amd64 --disable-gtktest --enable-clocale=gnu --with-arch=x86-64 --enable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.2.0 (GCC) 


I don't think building with clang/++ is possible due to a kernel module
being involved.

-- 
PGP Key ID: 781C A3E2 C6ED 70A6 B356  7AF5 B510 542E D460 5CAE
       "The Internet should always be the Wild West!"

Back to alt.os.linux.slackware | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

GCC 16.2 ICE jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-09-29 19:07 -0400
  Re: GCC 16.2 ICE Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2026-09-30 05:53 +0000
    Re: GCC 16.2 ICE jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-09-30 10:45 -0400
      Re: GCC 16.2 ICE Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-09-30 15:26 +0000
  Re: GCC 16.2 ICE jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-09-30 21:25 -0400
    Re: GCC 16.2 ICE Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2026-10-01 05:37 +0000
      Re: GCC 16.2 ICE jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-10-01 11:09 -0400
        Re: GCC 16.2 ICE Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2026-10-01 17:15 +0000

csiph-web