https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115628
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to sadineniharish8446 from comment #4) > we ate trying to take coverage for libstdc++, I have tried following > configuration options but getting same error. > > ../configure --enable-languages=c,c++ - --disable-bootstrap > --disable-multilib CFLAGS="-ftest-coverage -fprofile-arcs" > CXXFLAGS="-ftest-coverage -fprofile-arcs " LDFLAGS="--coverage" > > > can you please let me know which configuration will work. Try setting CXXFLAGS_FOR_TARGET only. Note this is not the right place to get help like this. gcc@ (and libstdc++@) mailing list are better places to ask for help on getting this working and only filing a bug if there is no way in the end.