Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44210 closed defect (invalid)

cmake fails to build for OS X 10.10 Yosemite

Reported by: per.larsen@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: yosemite Cc: francisdb@…, robertoschwald (Robert Oschwald), hkroger@…, odslabs@…
Port: cmake

Description

from the log

:info:configure CMake Error at Modules/Platform/Darwin.cmake:211 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:
: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:16 (project)

Change History (14)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: css@… removed
Keywords: yosemite added; Yosemite removed
Owner: changed from macports-tickets@… to css@…

Note that because 10.10 is pre-release software we may not be able to help you with it until it is released.

comment:2 Changed 10 years ago by francisdb@…

Cc: francisdb@… added

Cc Me!

comment:3 Changed 10 years ago by robertoschwald (Robert Oschwald)

CMake can be compiled on Yosemite here.

You must install Xcode 6 DP in order to have the 10.10 SDK available. You must set xcode-select accordinghly.

comment:4 Changed 10 years ago by robertoschwald (Robert Oschwald)

Cc: robertoschwald@… added

Cc Me!

comment:5 Changed 10 years ago by robertoschwald (Robert Oschwald)

--->  Computing dependencies for cmake
--->  Fetching archive for cmake
--->  Attempting to fetch cmake-3.0.0_3.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/cmake
--->  Attempting to fetch cmake-3.0.0_3.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/cmake
--->  Attempting to fetch cmake-3.0.0_3.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/cmake
--->  Fetching distfiles for cmake
--->  Verifying checksums for cmake
--->  Extracting cmake
--->  Applying patches to cmake
--->  Configuring cmake
--->  Building cmake
--->  Staging cmake into destroot
--->  Installing cmake @3.0.0_3
--->  Activating cmake @3.0.0_3
--->  Cleaning cmake

comment:6 in reply to:  3 ; Changed 10 years ago by platipodium (Carsten Lemmen)

You must install Xcode 6 DP in order to have the 10.10 SDK available. You must set xcode-select accordinghly.

In addition to using xcode-select, I had to set CMAKE_OSX_SYSROOT=/Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/. Works for me now.

comment:7 Changed 10 years ago by hkroger@…

Cc: hkroger@… added

Cc Me!

comment:8 in reply to:  6 ; Changed 10 years ago by hkroger@…

Replying to carsten@…:

You must install Xcode 6 DP in order to have the 10.10 SDK available. You must set xcode-select accordinghly.

In addition to using xcode-select, I had to set CMAKE_OSX_SYSROOT=/Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/. Works for me now.

I Installed the beta4 of Xcode 6 and did setup the env. var and ran xcode-select but still it didn't work. what could I have done wrong?

comment:9 in reply to:  8 ; Changed 10 years ago by borodiychuk (Andriy Borodiychuk)

Just run "sudo port clean cmake", and then install it again.

Replying to hkroger@…:

Replying to carsten@…:

You must install Xcode 6 DP in order to have the 10.10 SDK available. You must set xcode-select accordinghly.

In addition to using xcode-select, I had to set CMAKE_OSX_SYSROOT=/Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/. Works for me now.

I Installed the beta4 of Xcode 6 and did setup the env. var and ran xcode-select but still it didn't work. what could I have done wrong?

comment:10 in reply to:  9 Changed 10 years ago by hkroger@…

Ah, of course. That helped. Thanks! Replying to ab@…:

Just run "sudo port clean cmake", and then install it again.

Replying to hkroger@…:

Replying to carsten@…:

You must install Xcode 6 DP in order to have the 10.10 SDK available. You must set xcode-select accordinghly.

In addition to using xcode-select, I had to set CMAKE_OSX_SYSROOT=/Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/. Works for me now.

I Installed the beta4 of Xcode 6 and did setup the env. var and ran xcode-select but still it didn't work. what could I have done wrong?

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

Cc: odslabs@… added
Resolution: invalid
Status: newclosed

Has duplicate #44505.

comment:12 Changed 10 years ago by hkroger@…

Why was this ticket closed. That #44505 was closed as a duplicate?

comment:13 Changed 10 years ago by neverpanic (Clemens Lang)

Probably because there is a solution outlined above?

comment:14 Changed 10 years ago by odslabs@…

Thanks ryandesign for including me in this.

I was able to get cmake to install by downloading and installing xcode 6 from https://developer.apple.com/xcode/downloads/ then:

port clean cmake
xcode-select -s /Applications/Xcode6-Beta4.app/Contents/Developer/
port upgrade outdated

cmake configured, built and installed without a problem but then I hit:

--->  Computing dependencies for llvm-gcc42
--->  Fetching distfiles for llvm-gcc42
Error: llvm-gcc42 is not supported on Yosemite or later.
Error: org.macports.fetch for port llvm-gcc42 returned: unsupported platform
Please see the log file for port llvm-gcc42 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-gcc42/llvm-gcc42/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

I see this error message was added on Tue, 03 Jun 2014, at https://lists.macosforge.org/pipermail/macports-changes/2014-June/105842.html

Please let me know if I need to open a new ticket for this, or if it's not valid as it seems jeremyhu is already aware of this.

Note: See TracTickets for help on using tickets.