From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32487 invoked by alias); 19 Jan 2012 17:54:59 -0000 Received: (qmail 32477 invoked by uid 22791); 19 Jan 2012 17:54:58 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Thu, 19 Jan 2012 17:54:46 +0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51832] [4.7 regression] Rev.182970 causes LTO link errors (multiple definitions of allocator_traits) Date: Thu, 19 Jan 2012 18:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus at trippelsdorf dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-01/txt/msg02193.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51832 --- Comment #16 from Markus Trippelsdorf 2012-01-19 17:54:43 UTC --- I've just checked my Fedora 15 image in KVM. Here ld.bfd is fine and only ld.gold fails: $ ld -v GNU ld version 2.21.51.0.6-6.fc15 20110118 $ /home/markus/gcc/usr/local/bin/g++ test.ii test2.ii -flto -std=gnu++0x /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status $ sudo ln -f /usr/bin/ld.gold /usr/bin/ld $ ld -v GNU gold (version 2.21.51.0.6-6.fc15 20110118) 1.10 $ /home/markus/gcc/usr/local/bin/g++ test.ii test2.ii -flto -std=gnu++0x /usr/bin/ld: error: /tmp/ccOfbqWY.o: multiple definition of '_ZNSt16allocator_traitsISaIP10ElfSegmentEE18__construct_helperIS1_JRKS1_EE5valueE' /usr/bin/ld: /tmp/ccQ2J7XR.o: previous definition here /usr/bin/ld: /usr/lib/../lib64/crt1.o:(.text+0x20): error: undefined reference to 'main' collect2: error: ld returned 1 exit status