Opened 12 years ago

Closed 12 years ago

#35718 closed defect (duplicate)

mountain lion xcodebuild incompatibility

Reported by: drs@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libunwind-headers

Description

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

Change History (8)

comment:1 Changed 12 years ago by drs@…

Cc: drs@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: drs@… removed
Port: libunwind-headers added
Priority: HighNormal
Resolution: duplicate
Status: newclosed

Duplicate of #35336. See also wiki:ProblemHotlist#xcode-eula

comment:3 Changed 12 years ago by drs@…

Resolution: duplicate
Status: closedreopened

I find that all combinations of "xcodebuild -license" do NOT resolve my issue. I did the following:

(1) ran "xcodebuild -license" from my personal account (and accepted the license)
(2) ran "xcodebuild -license" using "sudo" from my personal account (and accepted the license)
(3) ran "xcodebuild -license" after logging in as root with "su" (and accepted the license)
(4) attempted to run "xcodebuild -license" with "sudo -u macports ..." (could not accept this license because as I detailed above all xcodebuild commands hang when run as the macports user

Despite these acrobatics, "port install libunwind-headers" still fails. For this reason, I am reopening the ticket (since the ticket this was marked as a duplicate of has also been closed). Please see below for an execution log...

Last login: Fri Aug 17 19:01:38 on ttys003
mythos:~ dschieb$ xcodebuild -license
ENGLISH

IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING APPLE TERMS:

A. SOFTWARE LICENSE AGREEMENT FOR XCODE 
B. iOS SDK AGREEMENT

APPLE INC.
SOFTWARE LICENSE AGREEMENT FOR XCODE 

PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY BEFORE USING THE DEVELOPER SOFTWARE (DEFINED BELOW). BY USING THE DEVELOPER SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS LICENSE.  IF YOU ARE ACCESSING THE DEVELOPER SOFTWARE ELECTRONICALLY, SIGNIFY YOUR AGREEMENT TO BE BOUND BY THE TERMS OF THIS LICENSE BY CLICKING THE "AGREE " BUTTON.  IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE DEVELOPER SOFTWARE AND CLICK “DISAGREE”. FOR DEVELOPER SOFTWARE INCLUDED WITH YOUR PURCHASE OF HARDWARE, YOU MUST RETURN THE ENTIRE HARDWARE/SOFTWARE PACKAGE IN ORDER TO OBTAIN A REFUND. 

IMPORTANT NOTE: This software may be used to reproduce, modify, publish and distribute materials. It is licensed to you only for reproduction, modification, publication and distribution of non-copyrighted materials, materials in which you o...skipping...
exclusive venue of such District unless such consent is expressly prohibited by the laws of the state in which Your educational institution is domiciled.  

This Agreement shall not be governed by the United Nations Convention on Contracts for the International Sale of Goods, the application of which is expressly excluded.

9.12            Entire Agreement; Governing Language
This Agreement constitutes the entire agreement between the parties with respect to the use of the SDK licensed hereunder and supersedes all prior understandings regarding such subject matter. This Agreement may be modified only: (a) by a written amendment signed by both parties, or (b) to the extent expressly permitted by this Agreement (for example, by Apple by written or email notice to You). Any translation of this Agreement is done for local requirements and in the event of a dispute between the English and any non-English version, the English version of this Agreement shall govern. If You are located in the province of Quebec, Canada, the following clause applies: The parties hereby confirm that they have requested that this Agreement and all related documents be drafted in English. Les parties ont exigé que le présent contrat et tous les documents connexes soient rédigés en anglais.

EA0720
Rev. 03/01/2011


By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

mythos:~ dschieb$ sudo xcodebuild -license
ENGLISH

IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING APPLE TERMS:

A. SOFTWARE LICENSE AGREEMENT FOR XCODE 
B. iOS SDK AGREEMENT

APPLE INC.
SOFTWARE LICENSE AGREEMENT FOR XCODE 

PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY BEFORE USING THE DEVELOPER SOFTWARE (DEFINED BELOW). BY USING THE DEVELOPER SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS LICENSE.  IF YOU ARE ACCESSING THE DEVELOPER SOFTWARE ELECTRONICALLY, SIGNIFY YOUR AGREEMENT TO BE BOUND BY THE TERMS OF THIS LICENSE BY CLICKING THE "AGREE " BUTTON.  IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE DEVELOPER SOFTWARE AND CLICK “DISAGREE”. FOR DEVELOPER SOFTWARE INCLUDED WITH YOUR PURCHASE OF HARDWARE, YOU MUST RETURN THE ENTIRE HARDWARE/SOFTWARE PACKAGE IN ORDER TO OBTAIN A REFUND. 

IMPORTANT NOTE: This software may be used to reproduce, modify, publish and distribute materials. It is licensed to you only for reproduction, modification, publication and distribution of non-copyrighted materials, materials in which you o...skipping...
exclusive venue of such District unless such consent is expressly prohibited by the laws of the state in which Your educational institution is domiciled.  

This Agreement shall not be governed by the United Nations Convention on Contracts for the International Sale of Goods, the application of which is expressly excluded.

9.12            Entire Agreement; Governing Language
This Agreement constitutes the entire agreement between the parties with respect to the use of the SDK licensed hereunder and supersedes all prior understandings regarding such subject matter. This Agreement may be modified only: (a) by a written amendment signed by both parties, or (b) to the extent expressly permitted by this Agreement (for example, by Apple by written or email notice to You). Any translation of this Agreement is done for local requirements and in the event of a dispute between the English and any non-English version, the English version of this Agreement shall govern. If You are located in the province of Quebec, Canada, the following clause applies: The parties hereby confirm that they have requested that this Agreement and all related documents be drafted in English. Les parties ont exigé que le présent contrat et tous les documents connexes soient rédigés en anglais.

EA0720
Rev. 03/01/2011


By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

mythos:~ dschieb$ su
Password:
mythos:~ root# xcodebuild -license
ENGLISH

IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING APPLE TERMS:

A. SOFTWARE LICENSE AGREEMENT FOR XCODE 
B. iOS SDK AGREEMENT

APPLE INC.
SOFTWARE LICENSE AGREEMENT FOR XCODE 

PLEASE READ THIS SOFTWARE LICENSE AGREEMENT ("LICENSE") CAREFULLY BEFORE USING THE DEVELOPER SOFTWARE (DEFINED BELOW). BY USING THE DEVELOPER SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS LICENSE.  IF YOU ARE ACCESSING THE DEVELOPER SOFTWARE ELECTRONICALLY, SIGNIFY YOUR AGREEMENT TO BE BOUND BY THE TERMS OF THIS LICENSE BY CLICKING THE "AGREE " BUTTON.  IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE DEVELOPER SOFTWARE AND CLICK <E2><80><9C>DISAGREE<E2><80><9D>. FOR DEVELOPER SOFTWARE INCLUDED WITH YOUR PURCHASE OF HARDWARE, YOU MUST RETURN THE ENTIRE HARDWARE/SOFTWARE PACKAGE IN ORDER TO OBTAIN A REFUND. 

IMPORTANT NOTE: This software may be used to reproduce, modify, publish and distribute materials. It is licensed to you only for reproduction, modification, pub...skipping...
exclusive venue of such District unless such consent is expressly prohibited by the laws of the state in which Your educational institution is domiciled.  

This Agreement shall not be governed by the United Nations Convention on Contracts for the International Sale of Goods, the application of which is expressly excluded.

9.12            Entire Agreement; Governing Language
This Agreement constitutes the entire agreement between the parties with respect to the use of the SDK licensed hereunder and supersedes all prior understandings regarding such subject matter. This Agreement may be modified only: (a) by a written amendment signed by both parties, or (b) to the extent expressly permitted by this Agreement (for example, by Apple by written or email notice to You). Any translation of this Agreement is done for local requirements and in the event of a dispute between the English and any non-English version, the English version of this Agreement shall govern. If You are located in the province of Quebec, Canada, the following clause applies: The parties hereby confirm that they have requested that this Agreement and all related documents be drafted in English. Les parties ont exig<C3><A9> que le pr<C3><A9>sent contrat et tous les documents connexes soient r<C3><A9>dig<C3><A9>s en anglais.

EA0720
Rev. 03/01/2011


By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

mythos:~ root# port clean libunwind-headers
--->  Cleaning libunwind-headers
mythos:~ root# port -v install libunwind-headers
--->  Fetching distfiles for libunwind-headers
--->  Verifying checksum(s) for libunwind-headers
--->  Checksumming libunwind-30.tar.gz
--->  Extracting libunwind-headers
--->  Extracting libunwind-30.tar.gz
--->  Configuring libunwind-headers
--->  Building libunwind-headers
^C
mythos:~ root# sudo -u macports xcodebuild -license
^Cmythos:~ root# port clean libunwind-headers
--->  Cleaning libunwind-headers
mythos:~ root# port -v install libunwind-headers
--->  Fetching distfiles for libunwind-headers
--->  Verifying checksum(s) for libunwind-headers
--->  Checksumming libunwind-30.tar.gz
--->  Extracting libunwind-headers
--->  Extracting libunwind-30.tar.gz
--->  Configuring libunwind-headers
--->  Building libunwind-headers
^C
mythos:~ root# 


comment:4 Changed 12 years ago by drs@…

Cc: drs@… added

Cc Me!

comment:5 Changed 12 years ago by drs@…

Cc: drs@… removed

Cc Me!

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Please attach the main.log file from the failed libunwind-headers build.

comment:7 Changed 12 years ago by drs@…

It can be resolved.

Logging in as root with "su" and running "port install libunwind-headers" does not work. Any xcodebuild commands run as "macports" when logged in as root with "su" hang; this includes the execution of "xcodebuild" from Portfiles. However, running "sudo port install libunwind-headers" does work.

It didn't occur to me that "sudo" may differ from running the commands from a shell with "su".

comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.