From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28853 invoked by alias); 5 Nov 2014 05:40:53 -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 Received: (qmail 28805 invoked by uid 48); 5 Nov 2014 05:40:49 -0000 From: "htl10 at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57792] toplevel configure should enable "--with-sysroot="`xcrun --show-sdk-path`"" for darwin13 and later Date: Wed, 05 Nov 2014 05:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: htl10 at users dot sourceforge.net X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00229.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57792 --- Comment #12 from Hin-Tak Leung --- (In reply to howarth from comment #10) > This change was reverted when Apple abandoned the idea of removing the > /usr/include. They didn't appreciate the number of packages (like python) > which would require the changes to also find the new location of the > /usr/include. (In reply to howarth from comment #11) > Also, if you can't find /usr/include on OS X, that means you need to install > the Command Line Tools with 'xcode-select --install'. Have Apple really abandoned the idea of removing /usr/include ? xcode 6.1 ships all the headers under the SDK places; indeed as you said, running 'xcode-select --install' prompts for installing the command line developer's tools, which seems to install /usr/include ; but the Command Line Developer's Tool installed this way is only version 5.1 (i.e. against an older version of xcode, I think). Also I think it could be a bit more user friendly - e.g. test for the existence of /usr/include, and set "--with-sysroot=\"`xcrun --show-sdk-path`\" if /usr/include does not exist? It isn't much more code, but would make a lot of difference in user-friendliness.