public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48947] New: 4.6.0 fails to link ffmpeg with LTO and gold
@ 2011-05-10 11:28 gmarkhor at gmail dot com
  2011-05-10 12:29 ` [Bug lto/48947] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: gmarkhor at gmail dot com @ 2011-05-10 11:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48947

           Summary: 4.6.0 fails to link ffmpeg with LTO and gold
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gmarkhor@gmail.com


I am trying to make ffmpeg snapshot. I configure ffmpeg with the following
line:

../configure --enable-shared --cc='gcc -flto -fuse-linker-plugin -fPIC'
--prefix=/home/markhor/ffmpeg/install --arch=x86_64

It fails to build with
LD    libavcodec/libavcodec.so.53
ffmpeg/libavcodec/jpegls.h:46:0: warning: type of ‘ff_log2_run’ does not match
original declaration [enabled by default]
ffmpeg/libavcodec/jpegls.h:46:0: warning: type of ‘ff_log2_run’ does not match
original declaration [enabled by default]
ffmpeg/libavcodec/bitstream.c:35:15: note: previously declared here
x86_64-unknown-linux-gnu/bin/ld.gold: error: /tmp/ccla9ktI.ltrans3.ltrans.o:
requires dynamic reloc which may overflow at runtime; recompile with -fPIC
x86_64-unknown-linux-gnu/bin/ld.gold: error: /tmp/ccla9ktI.ltrans10.ltrans.o:
requires dynamic reloc which may overflow at runtime; recompile with -fPIC
x86_64-unknown-linux-gnu/bin/ld.gold: error: /tmp/ccla9ktI.ltrans16.ltrans.o:
requires dynamic reloc which may overflow at runtime; recompile with -fPIC
x86_64-unknown-linux-gnu/bin/ld.gold: error: /tmp/ccla9ktI.ltrans21.ltrans.o:
requires dynamic reloc which may overflow at runtime; recompile with -fPIC
collect2: ld returned 1 exit status


--cc='gcc -flto -fPIC' fails the same way. Snapshot is successfully built
without LTO with the BFD linker.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-09-06 10:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 11:28 [Bug lto/48947] New: 4.6.0 fails to link ffmpeg with LTO and gold gmarkhor at gmail dot com
2011-05-10 12:29 ` [Bug lto/48947] " rguenth at gcc dot gnu.org
2011-05-11 12:13 ` gmarkhor at gmail dot com
2011-05-11 12:27 ` rguenth at gcc dot gnu.org
2011-05-11 17:53 ` gmarkhor at gmail dot com
2011-05-12  9:28 ` rguenth at gcc dot gnu.org
2011-05-12 19:56 ` ian at airs dot com
2011-05-24 12:01 ` gmarkhor at gmail dot com
2011-05-24 12:02 ` gmarkhor at gmail dot com
2011-05-24 12:12 ` gmarkhor at gmail dot com
2012-07-14 20:45 ` leif.walsh at gmail dot com
2014-09-06 10:29 ` trippels at gcc dot gnu.org

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).