Ticket #23857 (assigned defect)
cmake 2.8.0 fails with non-default XCode 3.2.1 location
| Reported by: | piergiuseppe.fogli@… | Owned by: | css@… |
|---|---|---|---|
| Priority: | Low | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | ||
| Port: | cmake |
Description
cmake 2.8.0 fails to build on Max OS X 10.6.2
Platform informations:
Model: iMac10.1
System version: Mac OS X 10.6.2 (10C540)
Kernel version: Darwin 10.2.0
64 bit kernel and extensions: yes
Xcode version: 3.2.1
port version: 1.8.2
CMake has bootstrapped. Now run make.
---> Building cmake
DEBUG: Executing org.macports.build (cmake)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.8.0" && /usr/bin/make -j2 all'
CMake Error: Parse error in cache file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.8.0/CMakeCache.txt. Offending entry: /SDKs/MacOSX10.6.sdk
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.8.0" && /usr/bin/make -j2 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.8.0" && /usr/bin/make -j2 all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for cmake): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
CMakeCache.txt attached.
Attachments
Change History
comment:1 Changed 3 years ago by jmr@…
- Owner changed from macports-tickets@… to css@…
- Keywords cmake removed
Please remember to cc the maintainer.
comment:2 Changed 3 years ago by css@…
- Status changed from new to assigned
Do you have XCode installed into a different location? Your CMAKE_OSX_SYSROOT looks different from mine:
CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.6.sdk
This post indicates someone encountering a similar problem with XCode 3.2.1 not installed into the default location. I think the catch will be trying to tell the CMake port to look for the XCode development tools in a non-standard location. Do you have all the SDKs installed into /Developer/XCode3.2.1?
comment:3 Changed 3 years ago by piergiuseppe.fogli@…
First of all thanks for your reply!
Yes, XCode is installed in a different directory, /Developer/Xcode3.2.1 . Setting CMAKE_OSX_SYSROOT to the exact location:
CMAKE_OSX_SYSROOT:PATH=/Developer/Xcode3.2.1/SDKs/MacOSX10.6.sdk
solved the problem!
Thank you very much again!
comment:4 follow-ups: ↓ 6 ↓ 8 Changed 3 years ago by css@…
So the catch is twofold ...
- Can MacPorts easily detect that XCode 3.2.1 is installed into a different location?
- How can the CMake Portfile indicate this location when configuring the port?
comment:5 Changed 3 years ago by css@…
- Priority changed from Normal to Low
- Summary changed from cmake 2.8.0 build failed to cmake 2.8.0 fails with non-default XCode 3.2.1 location
comment:6 in reply to: ↑ 4 Changed 3 years ago by jmr@…
Replying to css@…:
- Can MacPorts easily detect that XCode 3.2.1 is installed into a different location?
That's the developer_dir variable.
comment:8 in reply to: ↑ 4 Changed 3 years ago by css@…
Replying to css@…:
- How can the CMake Portfile indicate this location when configuring the port?
During the configure phase, provide an init file to the cmake bootstrap that specifies CMAKE_OSX_SYSROOT as the developer_dir.
comment:9 Changed 2 years ago by chbrosso@…
The bug is fixed upstream (see patch in issue page) and will be rolled in 2.8.5:
comment:10 Changed 21 months ago by css@…
Any confirmation that this may now be closed with cmake 2.8.5?

