This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug general/24498] New: 0.176: isn't LTO ready


https://sourceware.org/bugzilla/show_bug.cgi?id=24498

            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=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 -fexceptions
-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 
-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/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 
/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=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 -fexceptions
-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
-Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o size
size.o ../libelf/libelf.so ../lib/libeu.a  
size.c: In function ‘handle_elf’:
size.c:628:1: error: stack usage might be unbounded [-Werror=stack-usage=]
  628 | 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:637: size] 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 -fexceptions
-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
-Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o
elflint elflint.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl 
elflint.c: In function ‘compare_hash_gnu_hash.isra.0’:
elflint.c:2373:1: error: stack usage might be unbounded [-Werror=stack-usage=]
 2373 | compare_hash_gnu_hash (Ebl *ebl, GElf_Ehdr *ehdr, size_t hash_idx,
      | ^
elflint.c: In function ‘check_verdef.isra.0’:
elflint.c:3224:1: error: stack usage might be unbounded [-Werror=stack-usage=]
 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=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 -fexceptions
-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
-Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/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 
elfcmp.c: In function ‘main’:
elfcmp.c:123:1: error: stack usage might be unbounded [-Werror=stack-usage=]
  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 '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 -fexceptions
-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
-Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -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:629: 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 -fexceptions
-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
-Wl,-rpath-link,../libelf:../libdw -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -o ar
ar.o libar.a ../libelf/libelf.so ../lib/libeu.a  
ar.c: In function ‘no0print’:
ar.c:1079:1: error: stack usage might be unbounded [-Werror=stack-usage=]
 1079 | no0print (bool ofmt, char *buf, int bufsize, long int val)
      | ^
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 ‘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_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 ‘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: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]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]