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
This is a long-standing pain. Definitely not a regression, just shows up with checking (and IIRC needs lto). *** This bug has been marked as a duplicate of bug 113204 ***