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

            Bug ID: 118788
           Summary: [15 Regression] during IPA pass: static-var, ICE:
                    qsort checking failed
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20241218 and 20250203, bootstrapping the golang-1.23 package.
Disabling LTO lets the package build.

            lto1: error: qsort comparator non-negative on sorted output: 10
            during IPA pass: static-var
            lto1: internal compiler error: qsort checking failed
            0x2d33d66 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
                ???:0
            0x2d49d73 internal_error(char const*, ...)
                ???:0
            0x2d91253 gcc_sort_r(void*, unsigned long, unsigned long, int
(*)(void const*, void const*, void*), void*)
                ???:0
            0x1346ab1 lto_output()
                ???:0
            0x13e1b4d ipa_write_optimization_summaries(lto_symtab_encoder_d*,
bool)
                ???:0
            0xee508a lto_main()
                ???:0
            Please submit a full bug report, with preprocessed source (by using
-freport-bug).
            Please include the complete backtrace with any bug report.
            See <file:///usr/share/doc/gcc-15/README.Bugs> for instructions.
            lto-wrapper: fatal error: gcc returned 1 exit status
            compilation terminated.
            /usr/bin/ld: error: lto-wrapper failed
            collect2: error: ld returned 1 exit status


complete build log at
https://launchpad.net/ubuntu/+archive/test-rebuild-20241218-plucky-gcc15/+build/29610190

Reply via email to