Opened 9 years ago
Last modified 9 years ago
#48855 closed defect
python27: NSEnumerator.h:7:15: error: expected ';' after @class — at Version 5
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.
Change History (7)
Changed 9 years ago by l2ofl085@…
comment:1 Changed 9 years ago by l2ofl085@…
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
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 withxcode-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".
destroot* not destroy