This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 lto/48947] New: 4.6.0 fails to link ffmpeg with LTO and gold


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.


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