From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17917 invoked by alias); 10 May 2011 11:28:37 -0000 Received: (qmail 17907 invoked by uid 22791); 10 May 2011 11:28:36 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 May 2011 11:28:23 +0000 From: "gmarkhor at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/48947] New: 4.6.0 fails to link ffmpeg with LTO and gold X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gmarkhor at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Tue, 10 May 2011 11:28:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00819.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48947 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=3D'gcc -flto -fuse-linker-plugin -fPIC' --prefix=3D/home/markhor/ffmpeg/install --arch=3Dx86_64 It fails to build with LD libavcodec/libavcodec.so.53 ffmpeg/libavcodec/jpegls.h:46:0: warning: type of =E2=80=98ff_log2_run=E2= =80=99 does not match original declaration [enabled by default] ffmpeg/libavcodec/jpegls.h:46:0: warning: type of =E2=80=98ff_log2_run=E2= =80=99 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=3D'gcc -flto -fPIC' fails the same way. Snapshot is successfully built without LTO with the BFD linker.