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

            Bug ID: 125258
           Summary: ICE:
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Compiler output:
$ echo 'void foo() {}' | x86_64-pc-linux-gnu-gcc -flto -flto-partition=none
-fltrans -xc -
cc1: warning: command-line option '-fltrans' is valid for LTO but not for C
lto1: internal compiler error: resolution sub id 0xe3d338721a4464e not in
object file
0x2d525ff internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe97751 lto_resolution_read
        /repo/gcc-trunk/gcc/lto/lto-common.cc:2161
0xea1142 lto_file_read
        /repo/gcc-trunk/gcc/lto/lto-common.cc:2369
0xea1142 read_cgraph_and_symbols(unsigned int, char const**)
        /repo/gcc-trunk/gcc/lto/lto-common.cc:2829
0xe818e8 lto_main()
        /repo/gcc-trunk/gcc/lto/lto.cc:663
/repo/gcc-trunk/binary-trunk-20260508062249-r17-398-g582e88fd9184bb-checking-yes-rtl-df-extra-amd64/bin/../lib/gcc/../../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto1
-quiet -dumpbase ./a.lto.o -mtune=generic -march=x86-64 -fno-openmp
-fno-openacc -fno-pie -fcf-protection=none -flto-partition=none -fltrans
-fresolution=/tmp/ccUAHJpe.res -flinker-output=exec @/tmp/ccBMNOQF -o
/tmp/cc7RJNVd.s
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.
lto-wrapper: fatal error:
/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc returned 1 exit
status
compilation terminated.
/usr/x86_64-pc-linux-gnu/binutils-bin/2.46.0/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20260508062249-r17-398-g582e88fd9184bb-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--enable-libsanitizer --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20260508062249-r17-398-g582e88fd9184bb-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260508 (experimental) (GCC)

Reply via email to