https://sourceware.org/bugzilla/show_bug.cgi?id=24498
--- Comment #6 from kloczek <kloczko.tomasz at gmail dot com> --- Just gave chance new 0.179 and latest rawhide gcc and looks like now set of warnings treated as werrors is a bit different. [tkloczko@barrel elfutils-0.179]$ make -k make --no-print-directory all-recursive Making all in config make[2]: Nothing to be done for 'all'. Making all in m4 make[2]: Nothing to be done for 'all'. Making all in lib make[2]: Nothing to be done for 'all'. Making all in libelf make[2]: Nothing to be done for 'all'. Making all in libcpu make[2]: Nothing to be done for 'all'. Making all in backends make[2]: Nothing to be done for 'all'. Making all in libebl make[2]: Nothing to be done for 'all'. Making all in libdwelf make[2]: Nothing to be done for 'all'. Making all in libdwfl make[2]: Nothing to be done for 'all'. Making all in libdw make all-am gcc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wformat -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o libdw.so -shared -Wl,-z,defs -Wl,-z,relro -o libdw.so \ -Wl,--soname,libdw.so.1,--enable-new-dtags \ -Wl,--version-script,libdw.map,--no-undefined \ -Wl,--whole-archive ../libebl/libebl_pic.a ../backends/libebl_backends_pic.a ../libcpu/libcpu_pic.a libdw_pic.a ../libdwelf/libdwelf_pic.a ../libdwfl/libdwfl_pic.a -Wl,--no-whole-archive \ ../lib/libeu.a ../libelf/libelf.so -ldl -lz -llzma -lbz2 -pthread find-debuginfo.c: In function ‘dwfl_standard_find_debuginfo’: debuginfod-client.c:85:8: error: ‘bits’ may be used uninitialized in this function [-Werror=maybe-uninitialized] find-debuginfo.c:360:24: note: ‘bits’ was declared here lto1: all warnings being treated as errors lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[3]: *** [Makefile:1405: libdw.so] Error 1 make[3]: Target 'all-am' not remade because of errors. make[2]: *** [Makefile:649: all] Error 2 Making all in libasm make[2]: *** No rule to make target '../libdw/libdw.so', needed by 'libasm.so'. make[2]: Target 'all' not remade because of errors. Making all in src make[2]: *** No rule to make target '../libdw/libdw.so', needed by 'readelf'. gcc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wformat -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o size size.o ../libelf/libelf.so ../lib/libeu.a size.c: In function ‘handle_elf’: size.c:634:1: error: stack usage might be unbounded [-Werror=stack-usage=] 634 | handle_elf (Elf *elf, const char *prefix, const char *fname) | ^ size.c: In function ‘handle_ar’: size.c:341:1: error: stack usage might be unbounded [-Werror=stack-usage=] 341 | handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) | ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[2]: *** [Makefile:670: size] Error 1 make[2]: *** No rule to make target '../libasm/libasm.so', needed by 'objdump'. gcc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wformat -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o ranlib ranlib.o libar.a ../libelf/libelf.so ../lib/libeu.a ranlib.c: In function ‘handle_file’: ranlib.c:136:1: error: stack usage might be unbounded [-Werror=stack-usage=] 136 | handle_file (const char *fname) | ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[2]: *** [Makefile:662: ranlib] Error 1 gcc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wformat -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o ar ar.o libar.a ../libelf/libelf.so ../lib/libeu.a ar.c: In function ‘do_oper_extract’: ar.c:441:1: error: stack usage might be unbounded [-Werror=stack-usage=] 441 | do_oper_extract (int oper, const char *arfname, char **argv, int argc, | ^ ar.c: In function ‘do_oper_delete’: ar.c:908:1: error: stack usage might be unbounded [-Werror=stack-usage=] 908 | do_oper_delete (const char *arfname, char **argv, int argc, | ^ ar.c: In function ‘do_oper_insert’: ar.c:1092:1: error: stack usage might be unbounded [-Werror=stack-usage=] 1092 | do_oper_insert (int oper, const char *arfname, char **argv, int argc, | ^ ar.c: In function ‘main’: ar.c:140:1: error: stack usage might be unbounded [-Werror=stack-usage=] 140 | main (int argc, char *argv[]) | ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[2]: *** [Makefile:630: ar] Error 1 make[2]: Target 'all' not remade because of errors. Making all in po make[2]: Nothing to be done for 'all'. Making all in doc make[2]: Nothing to be done for 'all'. Making all in tests make[2]: Nothing to be done for 'all'. Making all in debuginfod make[2]: *** No rule to make target '../libdw/libdw.so', needed by 'debuginfod'. make[2]: Target 'all' not remade because of errors. make[1]: *** [Makefile:499: all-recursive] Error 1 make: *** [Makefile:415: all] Error 2 -- You are receiving this mail because: You are on the CC list for the bug.