[MacPorts] #35718: mountain lion xcodebuild incompatibility

MacPorts noreply at macports.org
Fri Aug 17 11:41:35 PDT 2012


#35718: mountain lion xcodebuild incompatibility
--------------------------+-------------------------------------------------
 Reporter:  drs@…         |       Owner:  macports-tickets@…                   
     Type:  defect        |      Status:  new                                  
 Priority:  High          |   Milestone:                                       
Component:  ports         |     Version:  2.1.2                                
 Keywords:                |        Port:                                       
--------------------------+-------------------------------------------------
 I've gotten a new laptop with Mountain Lion installed. I installed Xcode
 4.4.1 *AND* the corresponding Mountain Lion command line tools. I
 installed MacPorts 2.1.2 from source (configured with "./configure
 --prefix=/opt/local").

 When I try to build and install "libunwind-headers", the build hangs at:

 {{{
 mythos:local root# port install libunwind-headers
 --->  Fetching distfiles for libunwind-headers
 --->  Attempting to fetch libunwind-30.tar.gz from
 http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/libunwind-
 headers
 --->  Verifying checksum(s) for libunwind-headers
 --->  Extracting libunwind-headers
 --->  Configuring libunwind-headers
 --->  Building libunwind-headers
 }}}

 Digging deeper, I find that the xcodebuild process seems to be hung:

 {{{
 mythos:MacPorts-2.1.2 root# ps auxww | grep xcodebuild
 macports        3024   0.0  0.0  2433436    972 s001  S+    2:09PM
 0:00.00 sh -c cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_devel_libunwind-headers/libunwind-
 headers/work/libunwind-30" && /usr/bin/xcodebuild  -target "libunwind-ld"
 -configuration Deployment build OBJROOT=build/ SYMROOT=build/
 MACOSX_DEPLOYMENT_TARGET=10.8 ARCHS= SDKROOT=""
 GCC_VERSION=com.apple.compilers.llvm.clang.1_0
 root            3031   0.0  0.0  2432768    500 s000  S+    2:09PM
 0:00.00 grep xcodebuild
 macports        3027   0.0  0.1 19276188   8184 s001  S+    2:09PM
 0:00.03 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
 -license check
 macports        3025   0.0  0.0  2432776    512 s001  S+    2:09PM
 0:00.00 /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
 xcodebuild -target libunwind-ld -configuration Deployment build
 OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.8 ARCHS=
 SDKROOT= GCC_VERSION=com.apple.compilers.llvm.clang.1_0
 mythos:MacPorts-2.1.2 root#

 }}}

 Finally, I find that any xcodebuild (4.4.1) commands run as the macports
 user (on the Mountain Lion system) hang:

 {{{
 mythos:~ root# sudo -u macports xcodebuild -version
 ^Cmythos:~ root#

 }}}

 This command (xcodebuild 4.4.1) run as root (rather than "macports") runs
 with no problems on the Mountain Lion system, and reports:

 {{{
 mythos:~ root# xcodebuild -version
 Xcode 4.4.1
 Build version 4F1003
 mythos:~ root#

 }}}

 The installer will not allow me to install an earlier version (pre-4.4) of
 XCode on this Mountain Lion system, and I find that the same command (run
 as root), i.e. "sudo -u macports xcodebuild -version", works on my Lion
 system with Xcode 4.1.

 Giving the "macports" user a non-/usr/bin/false shell did not help.

 Thanks for any advice!
 Darrell

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


More information about the macports-tickets mailing list