Opened 11 years ago

Closed 11 years ago

#40237 closed defect (invalid)

cmake 2.8.11.2 fails on install

Reported by: rsdancey@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: cmake

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

Summary: cmake @2.8.11.2 build error

Description: OSX Mountain Lion v10.8.4 xcode 4.6.2

:info:configure make: `cmake' is up to date.
:info:configure loading initial cache file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-2.8.10.2-x86_64/Bootstrap.cmk/InitialCacheFlags.cmake
:info:configure -- The C compiler identification is Clang 4.2.0
:info:configure -- The CXX compiler identification is Clang 4.2.0
:info:configure CMake Warning at Modules/Platform/Darwin.cmake:158 (message):
:info:configure   Ignoring CMAKE_OSX_SYSROOT value:
:info:configure 
:info:configure    /Developer/SDKs/MacOSX10.8.sdk
:info:configure 
:info:configure   because the directory does not exist.
:info:configure Call Stack (most recent call first):
:info:configure   Modules/CMakeSystemSpecificInformation.cmake:36 (include)
:info:configure   CMakeLists.txt:14 (project)
:info:configure 
:info:configure 
:info:configure CMake Error at Modules/Platform/Darwin.cmake:190 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT:
:info:configure 
:info:configure    ""
:info:configure 
:info:configure   is not set to a MacOSX SDK with a recognized version.  Either set
:info:configure   CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
:info:configure   empty.
:info:configure Call Stack (most recent call first):
:info:configure   Modules/CMakeSystemSpecificInformation.cmake:36 (include)
:info:configure   CMakeLists.txt:14 (project)
:info:configure 
:info:configure 
:info:configure -- Configuring incomplete, errors occurred!
:info:configure ---------------------------------------------
:info:configure Error when bootstrapping CMake:
:info:configure Problem while running initial CMake
:info:configure ---------------------------------------------
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-2.8.10.2-x86_64" && ./configure --prefix=/opt/local --mandir=/share/man --docdir=/share/doc/cmake --parallel=4 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-2.8.10.2/macports.cmake 
:info:configure Exit code: 11

Unique Factors: After installing xcode, I moved it to another volume and placed an alias in the default Applications folder

I manually edited the Darwin.cmake file to force CMAKE_OSX_SYSROOT to the proper location (/Volumes/Terabyte/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk) and was able to manually "./config", "make config" and "make" the application. cmake is in /usr/local/bin and does run correctly but MacPorts doesn't know that it has been installed.

The proper CMAKE_OSC_SYSROOT shows up when I run the "env" command from the command line. It does not appear when I use the "export" command from the command line.

Change History (5)

comment:1 Changed 11 years ago by rsdancey@…

Darnit - screwed up the formatting. :( my bad

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

Description: modified (diff)
Owner: changed from macports-tickets@… to css@…
Port: cmake added

comment:3 Changed 11 years ago by rsdancey@…

I removed, then re-installed XCode and the XCode command line tools. CMake install still fails. Here's the relevant part of the log:

:info:configure loading initial cache file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-2.8.10.2-x86_64/Bootstrap.cmk/InitialCacheFlags.cmake
:info:configure -- The C compiler identification is Clang 4.2.0
:info:configure -- The CXX compiler identification is Clang 4.2.0
:info:configure CMake Error at Modules/Platform/Darwin.cmake:190 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT:
:info:configure 
:info:configure    ""
:info:configure 
:info:configure   is not set to a MacOSX SDK with a recognized version.  Either set
:info:configure   CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
:info:configure   empty.
:info:configure Call Stack (most recent call first):
:info:configure   Modules/CMakeSystemSpecificInformation.cmake:36 (include)
:info:configure   CMakeLists.txt:14 (project)
:info:configure 
:info:configure 
:info:configure -- Configuring incomplete, errors occurred!
:info:configure ---------------------------------------------
:info:configure Error when bootstrapping CMake:
:info:configure Problem while running initial CMake
:info:configure ---------------------------------------------
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-2.8.10.2-x86_64" && ./configure --prefix=/opt/local --mandir=/share/man --docdir=/share/doc/cmake --parallel=4 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-2.8.10.2/macports.cmake 

comment:4 Changed 11 years ago by rsdancey@…

I completely scrubbed my system of xcode and the command line tools, then reinstalled everything.

I was able to get MacPorts to succeed at doing a port upgrade outdated. cmake updated. Problem seems resolved.

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.