From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7514 invoked by alias); 23 Dec 2011 16:13:18 -0000 Received: (qmail 7500 invoked by uid 22791); 23 Dec 2011 16:13:17 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_IB,TW_LG 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; Fri, 23 Dec 2011 16:13:04 +0000 From: "kai.extern at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/37079] cannot find -lgcc_s Date: Fri, 23 Dec 2011 16:32: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: kai.extern 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: CC 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: 2011-12/txt/msg02551.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37079 Kai Henningsen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kai.extern at gmail dot com --- Comment #9 from Kai Henningsen 2011-12-23 16:12:17 UTC --- I am seeing something very like this on x86_64-linux-gnu (native), gcc 4.6.2. The compiler (with --disable-bootstrap) builds and installs into the prefix, but then ld is unable to find libgcc_s, because the directory it is installed in is not in the search path. It is installed into $(prefix)/lib/gcc/$(target)/lib64. Complete configure options (including some only relevant for different packages; from config.log): $(src)/gcc/configure --build=x86_64-linux-gnu --host=x86_64-linux-gnu --prefix=$(prefix) --disable-bootstrap --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-multilib --disable-nls --enable-cxx --enable-decimal-float=no --enable-maintainer-mode --enable-optimization --enable-pch --enable-rpath --enable-version-specific-runtime-libs --with-bits=gmp --with-gnu-as --with-gnu-ld --with-ppl --enable-languages=c,c++ --with-gmp=$(prefix) --with-mpfr=$(prefix) --with-mpc=$(prefix) --with-ppl=$(prefix) --with-cloog=$(prefix) --target=x86_64-linux-gnu Other coments: Ubuntu, I'm symlinking all system libs into $(prefix)/$(target)/lib before I start. The actual path searched is: $(prefix)/lib/gcc/x86_64-linux-gnu/4.6.2/ $(prefix)/lib/gcc/x86_64-linux-gnu/4.6.2/../../../../lib64/ /lib/../lib64/ /usr/lib/../lib64/ $(prefix)/lib/gcc/x86_64-linux-gnu/4.6.2/../../../../x86_64-linux-gnu/lib/ $(prefix)/lib/gcc/x86_64-linux-gnu/4.6.2/../../../ $(prefix)/x86_64-linux-gnu/lib64/ $(prefix)/lib64/ /usr/local/lib64/ /lib64/ /usr/lib64/ $(prefix)/x86_64-linux-gnu/lib/ $(prefix)/lib/ /usr/local/lib/ /lib/ /usr/lib/