https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70519
--- Comment #1 from Jason Vas Dias <jason.vas.dias at gmail dot com> --- And it happens for gcov also: <quote><pre> /usr/build/linux/gcc-5.3.0/./prev-gcc/xg++ -B/usr/build/linux/gcc-5.3.0/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/usr/os_src/gcc-5.3.0/libstdc++-v3/libsupc++ -L/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc gcov.o libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -o gcov libcommon.a(pretty-print.o): In function `pretty_printer::~pretty_printer()': pretty-print.c:(.text+0x1ce): undefined reference to `operator delete(void*)' libcommon.a(input.o): In function `diagnostic_file_cache_init() [clone .part.5]': input.c:(.text+0x1da): undefined reference to `operator new[](unsigned long)' libcommon.a(input.o): In function `diagnostic_file_cache_fini()': input.c:(.text+0x88d): undefined reference to `operator delete[](void*)' collect2: error: ld returned 1 exit status Makefile:2673: recipe for target 'gcov' failed make[3]: *** [gcov] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/usr/build/linux/gcc-5.3.0/gcc' Makefile:4411: recipe for target 'all-stage2-gcc' failed make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory '/usr/build/linux/gcc-5.3.0' Makefile:21905: recipe for target 'stage2-bubble' failed make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory '/usr/build/linux/gcc-5.3.0' Makefile:902: recipe for target 'all' failed make: *** [all] Error 2 [root@[Linux]:/usr/build/linux/gcc-5.3.0 [5067] 14:07:38 #:111!:1990] $ cd gcc [root@[Linux]:/usr/build/linux/gcc-5.3.0/gcc [5067] 14:08:10 #:112!:1991] $ /usr/build/linux/gcc-5.3.0/./prev-gcc/xg++ -B/usr/build/linux/gcc-5.3.0/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/usr/os_src/gcc-5.3.0/libstdc++-v3/libsupc++ -L/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc gcov.o libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -o gcov libcommon.a(pretty-print.o): In function `pretty_printer::~pretty_printer()': pretty-print.c:(.text+0x1ce): undefined reference to `operator delete(void*)' libcommon.a(input.o): In function `diagnostic_file_cache_init() [clone .part.5]': input.c:(.text+0x1da): undefined reference to `operator new[](unsigned long)' libcommon.a(input.o): In function `diagnostic_file_cache_fini()': input.c:(.text+0x88d): undefined reference to `operator delete[](void*)' collect2: error: ld returned 1 exit status [root@[Linux]:/usr/build/linux/gcc-5.3.0/gcc [5067] 14:08:21 #:113!:1992] $ /usr/build/linux/gcc-5.3.0/./prev-gcc/xg++ -B/usr/build/linux/gcc-5.3.0/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/usr/os_src/gcc-5.3.0/libstdc++-v3/libsupc++ -L/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/build/linux/gcc-5.3.0/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc gcov.o libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -o gcov -lstdc++ [root@[Linux]:/usr/build/linux/gcc-5.3.0/gcc [5067] 14:08:33 #:114!:1993] $ echo $? 0 </pre></quote>