[MacPorts] #44581: cmake and CMAKE_OSX_SYSROOT value on mac os 10.10 yosemite

MacPorts noreply at macports.org
Fri Oct 17 21:33:30 PDT 2014


#44581: cmake and CMAKE_OSX_SYSROOT value on mac os 10.10 yosemite
---------------------------------+--------------------------------
  Reporter:  daniele.pontillo@…  |      Owner:  macports-tickets@…
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.1
Resolution:                      |   Keywords:  yosemite
      Port:  cmake               |
---------------------------------+--------------------------------

Comment (by jasoncampisi+macports@…):

 I have had this same problem building cmake in OS X.X Beta 1 through OS
 X.X Goldmaster with no luck fixing the problem. I only care about cmake,
 so I can install WINE.

 I have done the following:

 1. Completely uninstall Macports. Remove all traces using these steps
 [https://guide.macports.org/chunked/installing.macports.uninstalling.html
 guide.macports.org/chunked/installing.macports.uninstalling.html]
 2. Reboot the system
 3. Download and build Macports from the latest source (I tried using the
 binary install route with no luck fixing this problem). Guide here
 [https://guide.macports.org/chunked/installing.macports.html#installing.macports.source
 guide.macports.org/chunked/installing.macports.html#installing.macports.source]
 4. Next, run the command: ''sudo port install cmake''

 Note: these steps, assume you already installed
 1. Xcode 6
 2. Xcode 6 Command-line tools and agreed to the Xcode license: ''sudo
 xcodebuild -license''
 3. X11 via the XQuartz project [http://xquartz.macosforge.org/
 http://xquartz.macosforge.org]

 After investigating the below log fragment, I am left with the question,
 how do I '''set CMAKE_OSX_DEPLOYMENT_TARGET to empty''', as a means to get
 around this problem?

 My error log includes this detail:[[BR]]
 info:configure CMake Warning at Modules/Platform/Darwin.cmake:143
 (message):[[BR]]
 :info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but the matching
 SDK does not exist[[BR]]
 :info:configure   at:[[BR]]
 :info:configure [[BR]]
 :info:configure
 "/Applications/Xcode.app/Contents/Developer//Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"[[BR]]
 :info:configure [[BR]]
 :info:configure   Instead using SDK:[[BR]]
 :info:configure [[BR]]
 :info:configure
 "/Applications/Xcode.app/Contents/Developer//Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"[[BR]]
 :info:configure [[BR]]
 :info:configure   matching the host OS X version.[[BR]]
 :info:configure Call Stack (most recent call first):[[BR]]
 :info:configure   Modules/CMakeSystemSpecificInformation.cmake:36
 (include)[[BR]]
 :info:configure   CMakeLists.txt:16 (project)[[BR]]
 :info:configure [[BR]]
 :info:configure [[BR]]
 :info:configure CMake Warning at Modules/Platform/Darwin.cmake:179
 (message):[[BR]]
 :info:configure   Ignoring CMAKE_OSX_SYSROOT value:[[BR]]
 :info:configure [[BR]]
 :info:configure
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk[[BR]]
 :info:configure [[BR]]
 :info:configure   because the directory does not exist.[[BR]]
 :info:configure Call Stack (most recent call first):[[BR]]
 :info:configure   Modules/CMakeSystemSpecificInformation.cmake:36
 (include)[[BR]]
 :info:configure   CMakeLists.txt:16 (project)[[BR]]
 :info:configure [[BR]]
 :info:configure CMake Error at Modules/Platform/Darwin.cmake:213
 (message):[[BR]]
 :info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but
 CMAKE_OSX_SYSROOT:[[BR]]
 :info:configure [[BR]]
 :info:configure    ""[[BR]]
 :info:configure [[BR]]
 :info:configure   is not set to a MacOSX SDK with a recognized version.
 Either set[[BR]]
 :info:configure   '''CMAKE_OSX_SYSROOT to a valid SDK or set
 CMAKE_OSX_DEPLOYMENT_TARGET to'''[[BR]]
 :info:configure   '''empty'''.[[BR]]
 :info:configure Call Stack (most recent call first):[[BR]]
 :info:configure   Modules/CMakeSystemSpecificInformation.cmake:36
 (include)[[BR]]
 :info:configure   CMakeLists.txt:16 (project)[[BR]]
 :info:configure [[BR]]
 :info:configure -- Configuring incomplete, errors occurred!

-- 
Ticket URL: <https://trac.macports.org/ticket/44581#comment:43>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list