From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23327 invoked by alias); 25 Jul 2012 03:19:05 -0000 Received: (qmail 23316 invoked by uid 22791); 25 Jul 2012 03:19:04 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Wed, 25 Jul 2012 03:18:51 +0000 From: "skunk at iskunk dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/52887] Bootstrap on AIX failure: Undefined symbol: .std::function::function(std::function const&) Date: Wed, 25 Jul 2012 03:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: skunk at iskunk dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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-07/txt/msg01909.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52887 --- Comment #21 from Daniel Richard G. 2012-07-25 03:18:32 UTC --- (In reply to comment #18) > Maybe the code is non-functional, but *something* is referencing the > symbol under certain circumstances. I figure this is a question worth answering. Repeating the failed link with -Wl,-bnoquiet gives some helpful information: ld: 0711-318 ERROR: Undefined symbols were found. The following symbols are in error: Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object} RLD: Address Section Rld-type Referencing Symbol ---------------------------------------------------------------------------------------------- .std::function::function(std::function const&) [146] ER PR /home/src/gcc-4.7.1/libstdc++-v3/src/c++11/regex.cc(/tmp/gcc-build/prev-powerpc-ibm-aix5.3.0.0/libstdc++-v3/src/.libs/libstdc++.a[regex.o]) 00002918 .text R_RBR [3582] .std::__regex::_State::_State(std::__regex::_State const&) .std::function::function(std::function const&) [276] ER PR /home/src/gcc-4.7.1/libstdc++-v3/src/c++11/functexcept.cc(/tmp/gcc-build/prev-powerpc-ibm-aix5.3.0.0/libstdc++-v3/src/.libs/libstdc++.a[functexcept.o]) 00003e18 .text R_RBR [4312] .std::__regex::_State::_State(std::__regex::_State const&) .std::function::function(std::function const&) [148] ER PR /home/src/gcc-4.7.1/libstdc++-v3/src/c++11/regex.cc(/tmp/gcc-build/prev-powerpc-ibm-aix5.3.0.0/libstdc++-v3/src/.libs/libstdc++.a[regex.o]) 00002938 .text R_RBR [3582] .std::__regex::_State::_State(std::__regex::_State const&) .std::function::function(std::function const&) [278] ER PR /home/src/gcc-4.7.1/libstdc++-v3/src/c++11/functexcept.cc(/tmp/gcc-build/prev-powerpc-ibm-aix5.3.0.0/libstdc++-v3/src/.libs/libstdc++.a[functexcept.o]) 00003e38 .text R_RBR [4312] .std::__regex::_State::_State(std::__regex::_State const&) ER: The return code is 8. ld: 0711-317 ERROR: Undefined symbol: .std::function::function(std::function const&) ld: 0711-317 ERROR: Undefined symbol: .std::function::function(std::function const&) collect2: error: ld returned 8 exit status