https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117361
Bug ID: 117361 Summary: [15 Regression] GCC build fails with "gcc/opts-diagnostic.cc:599: test_output_arg_parsing: FAIL: ASSERT_STREQ (pt.get_diagnostic_text ()" Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: bootstrap Assignee: dmalcolm at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- That's due to commit r15-4760-g0b73e9382ab51c diagnostics: support multiple output formats simultaneously [PR116613] The problem is that 'error' might get translated if one happens to have LANG, as I happened to have in one terminal. Namely, with 'de_DE.UTF-8' bootstrapping fails with: ../../../repos/gcc/gcc/opts-diagnostic.cc:599: test_output_arg_parsing: FAIL: ASSERT_STREQ (pt.get_diagnostic_text (), "PROGNAME: error: `-fOPTION=foo:':" " expected KEY=VALUE-style parameter for format `foo'" " after `:';" " got `'\n") val1="PROGNAME: Fehler: `-fOPTION=foo:': expected KEY=VALUE-style parameter for format `foo' after `:'; got `' " val2="PROGNAME: error: `-fOPTION=foo:': expected KEY=VALUE-style parameter for format `foo' after `:'; got `' " ... PROGNAME: interner Compiler-Fehler: in fail_formatted, bei selftest.cc:63 0x2833460 internal_error(char const*, ...) ../../../repos/gcc/gcc/diagnostic-global-context.cc:518 0xa7ccb1 fancy_abort(char const*, int, char const*) ../../../repos/gcc/gcc/diagnostic.cc:1693 0x2815496 selftest::fail_formatted(selftest::location const&, char const*, ...) ../../../repos/gcc/gcc/selftest.cc:63 0x2815541 selftest::assert_streq(selftest::location const&, char const*, char const*, char const*, char const*) ../../../repos/gcc/gcc/selftest.cc:92 0x254aba0 internal_error(char const*, ...) ../../../repos/gcc/gcc/diagnostic-global-context.cc:518 0x99dbcf fancy_abort(char const*, int, char const*) ../../../repos/gcc/gcc/diagnostic.cc:1693 0x252cbd6 selftest::fail_formatted(selftest::location const&, char const*, ...) ../../../repos/gcc/gcc/selftest.cc:63 0x252cc81 selftest::assert_streq(selftest::location const&, char const*, char const*, char const*, char const*) ../../../repos/gcc/gcc/selftest.cc:92 0x2804630 test_output_arg_parsing ../../../repos/gcc/gcc/opts-diagnostic.cc:599 0x251bd70 test_output_arg_parsing ../../../repos/gcc/gcc/opts-diagnostic.cc:599 0x27342ee selftest::run_tests() ../../../repos/gcc/gcc/selftest-run-tests.cc:109 0x2457a6e selftest::run_tests() ../../../repos/gcc/gcc/selftest-run-tests.cc:109 0x13bb3b9 toplev::run_self_tests() ../../../repos/gcc/gcc/toplev.cc:2270