From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AEE15385B834; Mon, 30 Mar 2020 22:11:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEE15385B834 From: "kloczko.tomasz at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug general/24498] 0.176: isn't LTO ready Date: Mon, 30 Mar 2020 22:11:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kloczko.tomasz at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2020 22:11:08 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24498 --- Comment #6 from kloczek --- 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=3Dgnu99 -Wall -Wshadow -Wformat=3D2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=3D5 -Werror -Wunused -Wextra -Wstack-usage=3D262144 -O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=3Dauto -flto-partition=3Dnone -Wformat -Wl,-z,relro -Wl,--as-needed= =20 -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto=3Dauto -flto-partition=3Dnone -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 =E2=80=98dwfl_standard_find_debuginfo=E2=80= =99: debuginfod-client.c:85:8: error: =E2=80=98bits=E2=80=99 may be used uniniti= alized in this function [-Werror=3Dmaybe-uninitialized] find-debuginfo.c:360:24: note: =E2=80=98bits=E2=80=99 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=3Dgnu99 -Wall -Wshadow -Wformat=3D2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=3D5 -Werror -Wunused -Wextra -Wstack-usage=3D262144 -O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=3Dauto -flto-partition=3Dnone -Wformat -Wl,-rpath-link,../libelf:../l= ibdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto=3Dauto -flto-partitio= n=3Dnone -fuse-linker-plugin -o size size.o ../libelf/libelf.so ../lib/libeu.a size.c: In function =E2=80=98handle_elf=E2=80=99: size.c:634:1: error: stack usage might be unbounded [-Werror=3Dstack-usage= =3D] 634 | handle_elf (Elf *elf, const char *prefix, const char *fname) | ^ size.c: In function =E2=80=98handle_ar=E2=80=99: size.c:341:1: error: stack usage might be unbounded [-Werror=3Dstack-usage= =3D] 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 'objdu= mp'. gcc -std=3Dgnu99 -Wall -Wshadow -Wformat=3D2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=3D5 -Werror -Wunused -Wextra -Wstack-usage=3D262144 -O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=3Dauto -flto-partition=3Dnone -Wformat -Wl,-rpath-link,../libelf:../l= ibdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto=3Dauto -flto-partitio= n=3Dnone -fuse-linker-plugin -o ranlib ranlib.o libar.a ../libelf/libelf.so ../lib/libeu.a ranlib.c: In function =E2=80=98handle_file=E2=80=99: ranlib.c:136:1: error: stack usage might be unbounded [-Werror=3Dstack-usag= e=3D] 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=3Dgnu99 -Wall -Wshadow -Wformat=3D2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=3D5 -Werror -Wunused -Wextra -Wstack-usage=3D262144 -O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=3Dauto -flto-partition=3Dnone -Wformat -Wl,-rpath-link,../libelf:../l= ibdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto=3Dauto -flto-partitio= n=3Dnone -fuse-linker-plugin -o ar ar.o libar.a ../libelf/libelf.so ../lib/libeu.a ar.c: In function =E2=80=98do_oper_extract=E2=80=99: ar.c:441:1: error: stack usage might be unbounded [-Werror=3Dstack-usage=3D] 441 | do_oper_extract (int oper, const char *arfname, char **argv, int ar= gc, | ^ ar.c: In function =E2=80=98do_oper_delete=E2=80=99: ar.c:908:1: error: stack usage might be unbounded [-Werror=3Dstack-usage=3D] 908 | do_oper_delete (const char *arfname, char **argv, int argc, | ^ ar.c: In function =E2=80=98do_oper_insert=E2=80=99: ar.c:1092:1: error: stack usage might be unbounded [-Werror=3Dstack-usage= =3D] 1092 | do_oper_insert (int oper, const char *arfname, char **argv, int arg= c, | ^ ar.c: In function =E2=80=98main=E2=80=99: ar.c:140:1: error: stack usage might be unbounded [-Werror=3Dstack-usage=3D] 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 --=20 You are receiving this mail because: You are on the CC list for the bug.=