From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14041 invoked by alias); 20 Mar 2011 08:13:10 -0000 Received: (qmail 14031 invoked by uid 22791); 20 Mar 2011 08:13:08 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_IB 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; Sun, 20 Mar 2011 08:13:03 +0000 From: "Denis.Excoffier at airbus dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/44107] libstdc++ (dylib) is built with an erroneous dependency towards /usr/lib 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: Denis.Excoffier at airbus 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: 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 Date: Sun, 20 Mar 2011 12:43: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-03/txt/msg02143.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107 --- Comment #7 from Denis Excoffier 2011-03-20 08:12:49 UTC --- 1) In no configuration the bootstrap fails (as long as you take care of PR45381 and PR47016). 2) Indeed, the DYLD_LIBRARY_PATH that makes things to work properly is DYLD_LIBRARY_PATH=$(prefix)/lib 3) I have built with the patch attached in #4 (together with the addition included in #5), it seems to work properly now (see configuration 'y' below). 4) I have now 3 configurations (all with 4.6.0 RC 20110314) - 4.6.x: built with my modification (the change in t-slibgcc-darwin) - 4.6.y: built with the 2 patches from yesterday - 4.6.z: no change from the distribution I have also built the Xerces-C library 3 times, xerces-c-3.1.1x, xerces-c-3.1.1y and xerces-c3.1.1.z. The libxerces-c-3.1.dylib contains (iaw otool -L) a dependency towards /usr/lib/libgcc_s.1.dylib in the cases 'y' and 'z'. The libxerces-c-3.1.dylib contains a dependency towards /usr/lib/libSystem.B.dylib in the three configurations. My C++ program links with this library. The sets 'x' and 'y' work properly. The set 'z' does not work (stuck between throw and catch, CPU running).