Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#48855 closed defect (invalid)

python27: NSEnumerator.h:7:15: error: expected ';' after @class

Reported by: l2ofl085@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: elcapitan Cc:
Port: python27

Description (last modified by ryandesign (Ryan Carsten Schmidt))

sudo port install python27
--->  Computing dependencies for python27
--->  Staging python27 into destroot
Error: Failed to destroot python27: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log for details.

Attachments (2)

main.log (1.2 MB) - added by l2ofl085@… 9 years ago.
main.2.log (1.5 MB) - added by l2ofl085@… 9 years ago.
new log

Change History (10)

Changed 9 years ago by l2ofl085@…

Attachment: main.log added

comment:1 Changed 9 years ago by l2ofl085@…

destroot* not destroy

comment:2 Changed 9 years ago by mdeaudelin (Mathieu Deaudelin-Lemay)

This is an incomplete logfile:

:debug:main Skipping completed org.macports.fetch (python27)
:debug:main Skipping completed org.macports.checksum (python27)
:debug:main Skipping completed org.macports.extract (python27)
:debug:main Skipping completed org.macports.patch (python27)
:debug:main Skipping completed org.macports.configure (python27)
:debug:main Skipping completed org.macports.build (python27)

Please run "sudo port clean python27", then try installing again. If it fails again, then attach the new log file.

On a side note, I see you are running OS X 10.11. I am running the same version and am unable to reproduce this problem. Looking at the log file, it would seem that the SDK and developer tools you are using are mismatched. Could you provide the output of the following commands:

xcode-select -p
clang --version

Changed 9 years ago by l2ofl085@…

Attachment: main.2.log added

new log

comment:3 Changed 9 years ago by l2ofl085@…

Thanks for the quick reply I added the new log since it failed again and heres the output of the commands.

l2ofls-Mac:~ l2ofl$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
l2ofls-Mac:~ l2ofl$ clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
l2ofls-Mac:~ l2ofl$ sudo port clean python27

comment:4 Changed 9 years ago by mdeaudelin (Mathieu Deaudelin-Lemay)

The problem is indeed caused by a mismatched SDK and compiler. MacPorts is building against the OS X 10.11 SDK, but your default developer tools are Xcode 6.

You can either:

  • Install the Xcode 7.0 GM and set it to be the default with xcode-select -s /path/to/Xcode 7.app

Or:

  • Install the command-line developer tools package for your system with xcode-select --install and set it to be the default with xcode-select -s /

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: python27 added
Summary: python27 fails at "staging python27 into destroy"python27: NSEnumerator.h:7:15: error: expected ';' after @class

Which version of Xcode is that? It looks like Xcode 6.4. OS X 10.11 El Capitan requires Xcode 7 or newer.

Xcode 7's app name is just "Xcode.app" like previous versions, not "Xcode 7.app".

comment:6 Changed 9 years ago by l2ofl085@…

Yup that was it, python is now installed properly the funny thing is I have xcode7 installed already but being the novice and derp that I am I never changed the path to it and it didn't replace 6 because it was saved as Xcode-beta. Thanks!

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: elcapitan added
Resolution: invalid
Status: newclosed

Yes, you should not rename Xcode nor Xcode-beta. But you should use "xcode-select" to select whichever Xcode you want to use.

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

Has duplicate #48908.

Note: See TracTickets for help on using tickets.