* LTO build of elfutils-0.158 fails
@ 2014-01-06 17:22 David Kredba
0 siblings, 0 replies; only message in thread
From: David Kredba @ 2014-01-06 17:22 UTC (permalink / raw)
To: gcc-help
Hello.
Could you please tell me if I should report this failure as elfutils
or gcc problem?
----CUT----
x86_64-pc-linux-gnu-gcc -m32 -std=gnu99 -Wall -Wshadow -Wunused
-Wextra -fgnu89-inline -Wformat=2 -O2 -ggdb -pipe -march=native
-mtune=native -flto=4 -Wl,--as-needed -Wl,-O1 -Wl,-flto -O2 -ggdb
-pipe -march=native -mtune=native -flto=4 -o libelf.so -shared -o
libelf.so -Wl,--whole-archive,libelf_pic.a,--no-whole-archive \
-Wl,--version-script,/var/tmp/portage/dev-libs/elfutils-0.158/work/elfutils-0.158/libelf/libelf.map,--no-undefined
\
-Wl,--soname,libelf.so.1,-z,defs,-z,relro -lpthread
if readelf -d libelf.so | fgrep -q TEXTREL; then exit 1; fi
Makefile:944: recipe for target 'libelf.so' failed
----CUT----
When I removed check for TEXTREL from libelf/Makefile.in and ran it
again it failed at link time for libdw.so:
----CUT-----
x86_64-pc-linux-gnu-gcc -m32 -std=gnu99 -Wall -Wshadow -Wunused
-Wextra -fgnu89-inline -Wformat=2 -O2 -ggdb -pipe -march=native
-mtune=native -flto=4 -Wl,--as-needed -Wl,-O1 -Wl,-flto -O2 -ggdb
-pipe -march=native -mtune=native -flto=4 -o libdw.so -shared -o
libdw.so -Wl,--soname,libdw.so.1,-z,defs \
-Wl,--enable-new-dtags,-rpath,/usr/lib32/elfutils \
-Wl,--version-script,/var/tmp/portage/dev-libs/elfutils-0.158/work/elfutils-0.158/libdw/libdw.map,--no-undefined
\
-Wl,--whole-archive libdw_pic.a ../libdwfl/libdwfl_pic.a
../libebl/libebl.a ../libelf/libelf.so -Wl,--no-whole-archive\
-ldl -llzma -lbz2 -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140105/../../../../x86_64-pc-linux-gnu/bin/ld:
libdw.so: No symbol version section for versioned symbol
`dwarf_decl_column@ELFUTILS_0.143'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140105/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:958: recipe for target 'libdw.so' failed
----CUT----
When -flto=4 is removed and even with TEXTREL check present all compiles fine.
Using gcc-ar, gcc-nm and gcc-ranlib changes nothing.
Thank you in advance.
Best regards, David.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-06 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 17:22 LTO build of elfutils-0.158 fails David Kredba
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).