https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97022
Bug ID: 97022 Summary: -Werror flag aborts compilation of "current" git pull on main Product: gcc Version: new-ra Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: grgoffe at yahoo dot com Target Milestone: --- Hi, I'm not sure this is a bug but it looks like one. In a current pull from the source repository, compilation fails with msg 'cc1plus: all warnings being treated as errors' System is Fedora Core 34 (x86_64)(Rawhide). Builds have been succeeding but now fail for past 3 days. A full build log is available if desired. THANKS! Be safe! George... /tools/gcc/obj-x86_64-pc-linux-gnu/./prev-gcc/xg++ -B/tools/gcc/obj-x86_64-pc-linux-gnu/./prev-gcc/ -B/usr/lsd/Linux/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/tools/gcc/gcc/libstdc++-v3/libsupc++ -L/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/usr/lsd/Linux/include -I/usr/lsd/Linux/include -I/usr/lsd/Linux/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o ggc-common.o -MT ggc-common.o -MMD -MP -MF ./.deps/ggc-common.TPo ../../gcc/gcc/ggc-common.c ../../gcc/gcc/ggc-common.c: In function ‘void report_heap_memory_use()’: ../../gcc/gcc/ggc-common.c:1018:62: error: ‘mallinfo mallinfo()’ is deprecated [-Werror=deprecated-declarations] 1018 | fprintf (stderr," {heap %luk}", (unsigned long)(mallinfo().arena / 1024)); | ^ In file included from ../../gcc/gcc/system.h:736, from ../../gcc/gcc/ggc-common.c:25: /usr/include/malloc.h:118:24: note: declared here 118 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED; | ^~~~~~~~ /tools/gcc/obj-x86_64-pc-linux-gnu/./prev-gcc/xg++ -B/tools/gcc/obj-x86_64-pc-linux-gnu/./prev-gcc/ -B/usr/lsd/Linux/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/tools/gcc/gcc/libstdc++-v3/libsupc++ -L/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tools/gcc/obj-x86_64-pc-linux-gnu/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/usr/lsd/Linux/include -I/usr/lsd/Linux/include -I/usr/lsd/Linux/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o ggc-tests.o -MT ggc-tests.o -MMD -MP -MF ./.deps/ggc-tests.TPo ../../gcc/gcc/ggc-tests.c cc1plus: all warnings being treated as errors make[3]: *** [Makefile:1123: ggc-common.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gfdl.pod gcc.pod gfortran.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod make[3]: Leaving directory '/export/home/tools/gcc/obj-x86_64-pc-linux-gnu/gcc' make[2]: *** [Makefile:4785: all-stage2-gcc] Error 2 make[2]: Leaving directory '/export/home/tools/gcc/obj-x86_64-pc-linux-gnu' make[1]: *** [Makefile:24608: stage2-bubble] Error 2 make[1]: Leaving directory '/export/home/tools/gcc/obj-x86_64-pc-linux-gnu' make: *** [Makefile:999: all] Error 2