https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100345
Bug ID: 100345 Summary: gcc 11.1 build "make -n install" fails linking gcov undefined reference to std::__throw_bad_array_new_length() Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: bugs at pu dot net Target Milestone: --- Attempting to build gcc-11.1 "make" succeeds but "make -n install" fails when it attempts to link gcov with an undefined symbol std::__throw_bad_array_new_length() I believe that the build is using the system default libstdc++.a rather than the gcc-11 built version. Modifying gcc-11.1.0-obj/gcc/Makefile to link gcov with "-L ../x86_64-pc-linux-gnu/libstdc++-v3/src/.libs" succeeds.