From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60804 invoked by alias); 28 Apr 2019 19:49:33 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 60646 invoked by uid 48); 28 Apr 2019 19:49:27 -0000 From: "kloczko.tomasz at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug general/24498] New: 0.176: isn't LTO ready Date: Sun, 28 Apr 2019 19:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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-SW-Source: 2019-q2/txt/msg00043.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24498 Bug ID: 24498 Summary: 0.176: isn't LTO ready Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: kloczko.tomasz at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- [tkloczko@domek elfutils-0.176]$ 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 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 -fexceptions -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= =20 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o libdw.so -shared -Wl,-z,defs -Wl,-z,relro -o libdw.so \ -Wl,--soname,libdw.so.1 \ -Wl,--enable-new-dtags,-rpath,/usr/lib64/elfutils \ -Wl,--version-script,libdw.map,--no-undefined \ -Wl,--whole-archive libdw_pic.a ../libdwelf/libdwelf_pic.a ../libdwfl/libdwfl_pic.a ../libebl/libebl.a -Wl,--no-whole-archive \ ../lib/libeu.a ../libelf/libelf.so -ldl -lz -llzma -lbz2=20 /usr/bin/ld: libdw.so: no symbol version section for versioned symbol `dwarf_decl_column@ELFUTILS_0.143' /usr/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status make[3]: *** [Makefile:1372: libdw.so] Error 1 make[3]: Target 'all-am' not remade because of errors. make[2]: *** [Makefile:614: all] Error 2 Making all in libcpu make[2]: Nothing to be done for 'all'. 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 backends make[2]: *** No rule to make target 'libebl_sh.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_ia64.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_alpha.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_arm.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_aarch64.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_sparc.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_ppc.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_ppc64.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_s390.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_tilegx.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_m68k.so', needed by 'all-am'. make[2]: *** No rule to make target 'libebl_riscv.so', needed by 'all-am'. 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 -fexceptions -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 -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -= o size size.o ../libelf/libelf.so ../lib/libeu.a=20=20 size.c: In function =E2=80=98handle_elf=E2=80=99: size.c:628:1: error: stack usage might be unbounded [-Werror=3Dstack-usage= =3D] 628 | 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:637: size] 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 -fexceptions -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 -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o elflint elflint.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a -l= dl=20 elflint.c: In function =E2=80=98compare_hash_gnu_hash.isra.0=E2=80=99: elflint.c:2373:1: error: stack usage might be unbounded [-Werror=3Dstack-us= age=3D] 2373 | compare_hash_gnu_hash (Ebl *ebl, GElf_Ehdr *ehdr, size_t hash_idx, | ^ elflint.c: In function =E2=80=98check_verdef.isra.0=E2=80=99: elflint.c:3224:1: error: stack usage might be unbounded [-Werror=3Dstack-us= age=3D] 3224 | check_verdef (Ebl *ebl, GElf_Shdr *shdr, int idx) | ^ 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:613: elflint] 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 -fexceptions -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 -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o elfcmp elfcmp.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a -ldl= =20 elfcmp.c: In function =E2=80=98main=E2=80=99: elfcmp.c:123:1: error: stack usage might be unbounded [-Werror=3Dstack-usag= e=3D] 123 | 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:605: elfcmp] 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 -fexceptions -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 -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o ranlib ranlib.o libar.a ../libelf/libelf.so ../lib/libeu.a=20=20 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:629: 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 -fexceptions -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 -Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -= o ar ar.o libar.a ../libelf/libelf.so ../lib/libeu.a=20=20 ar.c: In function =E2=80=98no0print=E2=80=99: ar.c:1079:1: error: stack usage might be unbounded [-Werror=3Dstack-usage= =3D] 1079 | no0print (bool ofmt, char *buf, int bufsize, long int val) | ^ 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=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_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=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:601: 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 tests make[2]: Nothing to be done for 'all'. make[1]: *** [Makefile:485: all-recursive] Error 1 make: *** [Makefile:401: all] Error 2 [tkloczko@domek elfutils-0.176]$ --=20 You are receiving this mail because: You are on the CC list for the bug.