[MacPorts] #33286: XCode 4.3 changed location of compilers

MacPorts noreply at macports.org
Fri Feb 17 13:09:34 PST 2012


#33286: XCode 4.3 changed location of compilers
------------------------------+---------------------------------------------
 Reporter:  snaury@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:  2.0.3                                
 Keywords:                    |        Port:                                       
------------------------------+---------------------------------------------
 Uninstalled XCode 4.2, installed XCode 4.3. Now anything that depends on C
 compiler fails to build, because path to clang is used as
 $DEVELOPER/usr/bin/clang, which is wrong for 4.3. For example:

 {{{
 $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
 $ sudo port -v install graphviz
 [...]
 checking for gcc...
 /Applications/Xcode.app/Contents/Developer/usr/bin/clang
 checking for C compiler default output file name...
 configure: error: C compiler cannot create executables
 See `config.log' for more details.
 [...]
 $ sudo port -v install mercurial
 [...]
 building 'mercurial.base85' extension
 /Applications/Xcode.app/Contents/Developer/usr/bin/clang [...]
 unable to execute
 /Applications/Xcode.app/Contents/Developer/usr/bin/clang: No such file or
 directory
 [...]
 $ xcrun -find clang
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 }}}

 If I use xcode-select to switch to / then {{{xcodebuild -version}}} calls
 take forever because they scan my whole hard-drive, so currently there's
 no {{{xcode-select -switch}}} path that would work for all needed tools.

 Perhaps macports should use xcrun -find to find actual locations of
 executables.

 P.S. I know XCode 4.3 was just released, I'm logging it in case it's
 useful.

-- 
Ticket URL: <https://trac.macports.org/ticket/33286>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list