Bug 106735 - tens of thousands of errors in C++ library
Summary: tens of thousands of errors in C++ library
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: 13.0
Assignee: Jonathan Wakely
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-24 21:14 UTC by seurer
Modified: 2022-08-24 22:53 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2022-08-24 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description seurer 2022-08-24 21:14:49 UTC
I am seeing over 42,000 new errors after some recent trunk commit in the C++ library or usage of the C++ library.

A couple of examples (they are all or mostly like these):

FAIL: g++.dg/gomp/pr88182.C  -std=gnu++98 (test for excess errors)
Excess errors:
/home/seurer/binutils/install/bin/ld: /home/seurer/gcc/git/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'


FAIL: g++.dg/ext/tmplattr4.C  -std=c++98 (test for excess errors)
Excess errors:
/home/seurer/binutils/install/bin/ld: /home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'


I have a bisect running and will report if it finds a culprit.
Comment 1 Marek Polacek 2022-08-24 21:31:41 UTC
Confirmed, I see it too (vanilla trunk).
Comment 2 seurer 2022-08-24 21:41:30 UTC
It it causing so many error messages that emails to the gcc test results list from my autotesters are being rejected as they are 3.9MB in size.
Comment 3 Marek Polacek 2022-08-24 22:27:02 UTC
I think it started with r13-2175-g0b7c9254998b3f.
Comment 4 Jonathan Wakely 2022-08-24 22:53:22 UTC
Reverted at r13-2192-ge5428086c2c8daf69e5916dd5016d1e7b85d3f0d

lxo identified the problem:
https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600268.html
But I'll revisit when the sun is up and figure out why my testing didn't see it.