public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "kloczko.tomasz at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug general/24498] 0.176: isn't LTO ready
Date: Mon, 30 Mar 2020 22:11:08 +0000	[thread overview]
Message-ID: <bug-24498-10460-burVC7hQoU@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-24498-10460@http.sourceware.org/bugzilla/>

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.

  parent reply	other threads:[~2020-03-30 22:11 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-28 19:49 [Bug general/24498] New: " kloczko.tomasz at gmail dot com
2019-04-28 20:25 ` [Bug general/24498] " mark at klomp dot org
2019-04-28 20:25 ` mark at klomp dot org
2019-04-28 20:37 ` kloczko.tomasz at gmail dot com
2019-04-28 20:43 ` mark at klomp dot org
2019-09-15 13:57 ` kloczko.tomasz at gmail dot com
2019-10-04  7:39 ` mark at klomp dot org
2020-03-30 22:11 ` kloczko.tomasz at gmail dot com [this message]
2020-04-02 11:14 ` mark at klomp dot org
2020-04-10 19:47 ` mark at klomp dot org
2020-04-15  5:12 ` marxin.liska at gmail dot com
2020-04-15  7:03 ` kloczko.tomasz at gmail dot com
2020-04-15  7:07 ` marxin.liska at gmail dot com
2020-04-15 12:50 ` mark at klomp dot org
2020-04-15 13:56 ` mark at klomp dot org
2020-04-15 15:53 ` kloczko.tomasz at gmail dot com
2020-04-16 16:00 ` mark at klomp dot org
2020-04-16 17:04 ` mark at klomp dot org
2020-04-17  9:42 ` mark at klomp dot org
2020-04-17 10:36 ` mark at klomp dot org
2020-05-06 14:39 ` mark at klomp dot org
2020-05-06 15:23 ` kloczko.tomasz at gmail dot com
2020-05-06 15:25 ` kloczko.tomasz at gmail dot com
2020-05-06 16:10 ` mark at klomp dot org
2020-05-06 16:10 ` [Bug general/24498] 0.179: " mark at klomp dot org
2020-05-06 17:28 ` kloczko.tomasz at gmail dot com
2022-04-24 18:14 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-24498-10460-burVC7hQoU@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=elfutils-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).