From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30391 invoked by alias); 16 Nov 2010 17:48:46 -0000 Received: (qmail 30377 invoked by uid 22791); 16 Nov 2010 17:48:42 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_XJ 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, 16 Nov 2010 17:48:36 +0000 From: "nightstrike at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/46501] Relocatable toolchains still search --prefix X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nightstrike 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: 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: Tue, 16 Nov 2010 17:57: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: 2010-11/txt/msg02087.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46501 --- Comment #2 from nightstrike 2010-11-16 17:48:32 UTC --- Configure: ../../../build/gcc/src/configure \ --target=i686-w64-mingw32 \ \ --prefix=/buildbot/mingw-w64/linux-x86_64-x86/build/build/root \ --with-sysroot=/buildbot/mingw-w64/linux-x86_64-x86/build/build/root \ --enable-languages=all,obj-c++ \ --enable-fully-dynamic-string --disable-multilib Build toolchain, install to $prefix. cd $prefix && tar cjf a.tbz2 * (or similar) cd /usr && tar xjf a.tbz2 (or equivalent) So what we are doing is essentially building a "relocatable" toolchain, installing it to some location, tarring up that location, and then extracting it wherever we want. The user referenced in the URL attached this PR wanted to extract it to /usr (thus causing the issue of the embedded directory "root"), but the eventual location you extract to doesn't affect the inclusion of directories outside of the gcc hierarchy. Observe: i686-w64-mingw32-gcc -print-search-dirs: install: /usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/ programs: =/usr/bin/../libexec/gcc/i686-w64-mingw32/4.6.0/:/usr/bin/../libexec/gcc/:/usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/bin/i686-w64-mingw32/4.6.0/:/usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/bin/ libraries: =/usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/:/usr/bin/../lib/gcc/:/usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/i686-w64-mingw32/4.6.0/:/usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/:/usr/bin/../../root/mingw/lib/i686-w64-mingw32/4.6.0/:/usr/bin/../../root/mingw/lib/../lib/:/usr/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/:/usr/bin/../../root/mingw/lib/ You can see in there where there are references to "root". These are what are incorrect. Please let me know if that is enough information for you.