Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#35150 closed defect (fixed)

builds fail with Xcode 4.4

Reported by: k.krauter@… Owned by: mfeiri
Priority: Normal Milestone: MacPorts 2.1.2
Component: base Version: 2.1.1
Keywords: Cc: dnedrow@…
Port: libunwind-headers

Description

My System:
Mountain Lion GM Seed 10.8
Xcode 4.4

What i have done is:

  1. Remove Xcode 4.3 and and Xcode 4.4
  2. sudo port selfupdate [=> no errors]
  3. sudo port upgrade outdated [=> couple of errors, e.g. Xcode not found]
  4. Xcode install console [=> no errors]
  5. sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer [=> no errors]
  6. sudo port upgrade outdated
Error: 
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error:     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4
Error: 
--->  Building libunwind-headers
Error: org.macports.build for port libunwind-headers returned: command execution failed
Please see the log file for port libunwind-headers for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind-headers/libunwind-headers/main.log
Error: Problem while installing libunwind-headers

Attachments (2)

main.log (3.0 KB) - added by k.krauter@… 12 years ago.
macports.tcl.diff (402 bytes) - added by dnedrow@… 12 years ago.
Patch for Xcode 4.4 and 4.5 validation check

Download all attachments as: .zip

Change History (13)

Changed 12 years ago by k.krauter@…

Attachment: main.log added

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

Owner: changed from macports-tickets@… to mfeiri@…
Port: libunwind-headers added
Summary: Error: Problem while installing libunwind-headerslibunwind-headers: build fails with Xcode 4.4

Xcode 4.4 is not a final release yet so we don't support it yet.

Changed 12 years ago by dnedrow@…

Attachment: macports.tcl.diff added

Patch for Xcode 4.4 and 4.5 validation check

comment:2 Changed 12 years ago by dnedrow@…

Knowing that Xcode 4.4 and 4.5 are not yet supported…

4.4 and 4.5 no longer include the Headers directory under Xcode.app/Contents/Developer. Looks like these headers were for building legacy carbon apps, which are no longer supported.

Patch file attached should anyone want to apply it.

comment:3 Changed 12 years ago by dnedrow@…

Cc: dnedrow@… added

Cc Me!

comment:4 in reply to:  2 Changed 12 years ago by k.krauter@…

Replying to dnedrow@…:

Knowing that Xcode 4.4 and 4.5 are not yet supported…

4.4 and 4.5 no longer include the Headers directory under Xcode.app/Contents/Developer. Looks like these headers were for building legacy carbon apps, which are no longer supported.

Patch file attached should anyone want to apply it.

thank you for this patch, that i have applied. the problem still persists, same error.

comment:5 Changed 12 years ago by k.krauter@…

Cc: k.krauter@… added

Cc Me!

comment:6 Changed 12 years ago by k.krauter@…

Cc: k.krauter@… removed

Cc Me!

comment:7 in reply to:  description ; Changed 12 years ago by kankuma@…

1.Xcode 4.4 installed. 2.Xcode 4.4 Command Line Tools installed. 3.Terminal open.

4.sudo xcodebuild -license [=>'space'=>'space'...] 5.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] 6.[=>agree<enter-key>] 7.You can view the license agreements in Xcode's About Box, or at /Applications/Xcode44-DP7.app/Contents/Resources/English.lproj/License.rtf

8.sudo xcode-select -switch /Applications/Xcode44-DP7.app/Contents/Developer 9.sudo port upgrade outdated

Not Error:libunwind-headers

comment:8 in reply to:  7 Changed 12 years ago by k.krauter@…

Replying to kankuma@…:

1.Xcode 4.4 installed. 2.Xcode 4.4 Command Line Tools installed. 3.Terminal open.

4.sudo xcodebuild -license [=>'space'=>'space'...] 5.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] 6.[=>agree<enter-key>] 7.You can view the license agreements in Xcode's About Box, or at /Applications/Xcode44-DP7.app/Contents/Resources/English.lproj/License.rtf

8.sudo xcode-select -switch /Applications/Xcode44-DP7.app/Contents/Developer 9.sudo port upgrade outdated

Not Error:libunwind-headers

thank you very much, I have totally forgot the agreements. after I applied the patch above and agree the license => "port update outdated" runs without errors! thanks again.

comment:9 Changed 12 years ago by mfeiri

Resolution: fixed
Status: newclosed
Summary: libunwind-headers: build fails with Xcode 4.4builds fail with Xcode 4.4

Good to hear your problem is solved. Applied the Xcode 4.4 support patch in r95552. Thanks dnedrow!

comment:10 Changed 12 years ago by jmroot (Joshua Root)

Component: portsbase
Milestone: MacPorts Future

comment:11 Changed 12 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.1.2
Note: See TracTickets for help on using tickets.