Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44581 closed defect (fixed)

cmake fails when a deployment target is set but not a matching SDK

Reported by: daniele.pontillo@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: haspatch yosemite Cc: wronglink@…, amir.shaahin@…, m74z00219@…, ryandesign (Ryan Carsten Schmidt), mkae (Marko Käning), breenh@…, jasoncampisi+macports@…, schnide (Joe Schnide), Christoph.Ender@…, glen@…, sobakasu@…, laughingtiger, lpsinger (Leo Singer), onurdomanic@…, whitepurplegreen@…, rubendibattista (Ruben Di Battista), edwardmoon (Edward Moon), tim.lock@…, dbender@…, akarypid@…
Port: cmake

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

I guess the problem lies in the CMAKE_OSX_SYSROOT value: as noted in the following log lines, and I cannot install cmake:

:info:configure -- The C compiler identification is AppleClang 5.1.0.5030040
:info:configure -- The CXX compiler identification is AppleClang 5.1.0.5030040
:info:configure CMake Warning at Modules/Platform/Darwin.cmake:143 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but the matching SDK does not exist
:info:configure   at:
:info:configure 
:info:configure    "/Applications/Utilities/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
:info:configure 
:info:configure   Instead using SDK:
:info:configure 
:info:configure    "/Applications/Utilities/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
:info:configure 
:info:configure   matching the host OS X version.
:info:configure Call Stack (most recent call first):
:info:configure   Modules/CMakeSystemSpecificInformation.cmake:36 (include)
:info:configure   CMakeLists.txt:16 (project)
:info:configure 
:info:configure 
:info:configure CMake Warning at Modules/Platform/Darwin.cmake:179 (message):
:info:configure   Ignoring CMAKE_OSX_SYSROOT value:
:info:configure 
:info:configure    /Applications/Utilities/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.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:16 (project)
:info:configure 
:info:configure 
:info:configure CMake Error at Modules/Platform/Darwin.cmake:213 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' 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:16 (project)
:info:configure 
:info:configure 
:info:configure -- Configuring incomplete, errors occurred!
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0/CMakeFiles/CMakeOutput.log".
: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_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0" && ./configure --prefix=/opt/local --mandir=/share/man --docdir=/share/doc/cmake --parallel=2 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.0/macports.cmake --system-libs 
:info:configure Exit code: 11
:error:configure org.macports.configure for port cmake returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"portconfigure::configure_main org.macports.configure"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:configure Warning: targets not executed for cmake: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Please see the log file for port cmake for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log

Attachments (8)

cmake.log (2.6 KB) - added by daniele.pontillo@… 10 years ago.
with xcode6
main.log (99.7 KB) - added by wronglink@… 10 years ago.
main.2.log (24.7 KB) - added by daniele.pontillo@… 10 years ago.
main.3.log (163.2 KB) - added by m74z00219@… 10 years ago.
cmake log
main.audvare.log (8.1 KB) - added by Tatsh (Andrew Udvare) 10 years ago.
main.log
main.sobakasu.log (57.7 KB) - added by sobakasu@… 10 years ago.
errors after applying patch 'set(CMAKE_OSX_DEPLOYMENT_TARGET "")'
cmake-no-deployment-target.patch (506 bytes) - added by neverpanic (Clemens Lang) 10 years ago.
Patch against the Portfile that achieves the same thing
patch-Modules-Platform-Darwin.cmake.diff (1.8 KB) - added by jmroot (Joshua Root) 10 years ago.

Download all attachments as: .zip

Change History (101)

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

Description: modified (diff)
Keywords: yosemite added
Port: cmake added

You must run:

sudo xcode-select -s /Applications/Xcode6-Beta5.app/Contents/Developer

Then clean cmake and try again.

Changed 10 years ago by daniele.pontillo@…

Attachment: cmake.log added

with xcode6

comment:2 Changed 10 years ago by daniele.pontillo@…

Not working for me. Take a look at the attachment please.

Changed 10 years ago by wronglink@…

Attachment: main.log added

comment:3 Changed 10 years ago by wronglink@…

I'm having the same trouble. The only one Xcode in the system is 5.1.1 and it's located in /Applications/Xcode.app

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

Cc: wronglink@… added

daniele, your log is incomplete. Please clean and try again and then attach the complete log.

wronglink, you need the Xcode 6 beta. Get it from the Apple developer web site and then select it with xcode-select.

Changed 10 years ago by daniele.pontillo@…

Attachment: main.2.log added

comment:5 Changed 10 years ago by daniele.pontillo@…

I attached my log file. Please heeeelllllpppppp

comment:6 Changed 10 years ago by wronglink@…

ryandesign, thank you.

I also had to reconfigure and reinstall MacPorts (it didn't see new Xcode path). Then I cleaned all ports and finally cmake installed without any problem.

comment:7 Changed 10 years ago by daniele.pontillo@…

To everyone who helped: thank you, but I followed step-by-step, with no success. It may be Yosemite...

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

wronglink, you don't need to reconfigure or reinstall MacPorts after installing the new Xcode. You just need to xcode-select it and install its command line tools.

daniele, your log says:

:info:configure CMake Error at Modules/FindGTK2.cmake:181 (file):
:info:configure   file STRINGS file
:info:configure   "/Library/Frameworks/Gtk.framework/Headers/gtk/gtk/gtkversion.h" cannot be
:info:configure   read.

You need to remove /Library/Frameworks/Gtk.framework from your disk, clean cmake and then try again. Installing frameworks in /Library/Frameworks will interfere with MacPorts.

comment:9 in reply to:  8 Changed 10 years ago by daniele.pontillo@…

Replying to ryandesign@…:

wronglink, you don't need to reconfigure or reinstall MacPorts after installing the new Xcode. You just need to xcode-select it and install its command line tools.

daniele, your log says:

:info:configure CMake Error at Modules/FindGTK2.cmake:181 (file):
:info:configure   file STRINGS file
:info:configure   "/Library/Frameworks/Gtk.framework/Headers/gtk/gtk/gtkversion.h" cannot be
:info:configure   read.

You need to remove /Library/Frameworks/Gtk.framework from your disk, clean cmake and then try again. Installing frameworks in /Library/Frameworks will interfere with MacPorts.

Done. I works. Thanks

comment:10 Changed 10 years ago by daniele.pontillo@…

removing Gtk from frameworks, it works.

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

Cc: amir.shaahin@… added

Cc reporter of duplicate #44718.

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

Has duplicate #44807.

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

Xcode 6 final has been released, but the 10.10 SDK which was present in the betas was removed for the final version. So for 10.10 you'll now need the Xcode 6.1 beta.

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

Has duplicate #45172.

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

Has duplicate #45182.

comment:16 in reply to:  13 ; Changed 10 years ago by m74z00219@…

Replying to ryandesign@…:

Xcode 6 final has been released, but the 10.10 SDK which was present in the betas was removed for the final version. So for 10.10 you'll now need the Xcode 6.1 beta.

I tried this and made it as far as building cmake before an error cropped up.

Error: org.macports.build for port cmake returned: command execution failed
Please see the log file for port cmake for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
Error: Unable to upgrade port: 1

I tried upgrading gnuplot, but this requires cmake, so that didn't work either.

I then tried the alternative compile methods cited on the problems hotlist and that didn't work either.

Thoughts?

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:17 Changed 10 years ago by m74z00219@…

Cc: m74z00219@… added

Cc Me!

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

Has duplicate #45226.

comment:19 in reply to:  16 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to m74z00219@…:

Please see the log file for port cmake for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log

It's not possible for us to know why this happened until we see what's in that file.

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

Cc: ryandesign@… added

Cc Me!

Changed 10 years ago by m74z00219@…

Attachment: main.3.log added

cmake log

comment:21 Changed 10 years ago by m74z00219@…

I just attached the cmake log. I would also like to note that I am using Xcode 6.1 beta 3

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

The log says:

:info:build ld: warning: ignoring file /Library/Frameworks/libcurl.framework/libcurl, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/libcurl.framework/libcurl

Please remove libcurl.framework from /Library/Frameworks (and ideally remove anything else you've installed in that directory), then "sudo port clean cmake" and try again.

comment:23 in reply to:  22 Changed 10 years ago by m74z00219@…

Thank you, Ryan. That did the trick.

Replying to ryandesign@…:

The log says:

:info:build ld: warning: ignoring file /Library/Frameworks/libcurl.framework/libcurl, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/libcurl.framework/libcurl

Please remove libcurl.framework from /Library/Frameworks (and ideally remove anything else you've installed in that directory), then "sudo port clean cmake" and try again.

comment:24 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:25 Changed 10 years ago by Tatsh (Andrew Udvare)

Apple has seemingly removed Xcode 6.1 beta from the developer site and we are stuck on 6.0.1 until at least Monday when iOS 8.1 comes out as far as I can tell.

With 6.0.1 and official Yosemite I get the same error as in the original post.

Changed 10 years ago by Tatsh (Andrew Udvare)

Attachment: main.audvare.log added

main.log

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

Xcode 6.1 is available from the developer downloads page.

comment:27 in reply to:  26 Changed 10 years ago by Tatsh (Andrew Udvare)

Replying to ryandesign@…:

Xcode 6.1 is available from the developer downloads page.

Thanks, didn't notice that somehow. Maybe that's a bad UI there :P

comment:28 Changed 10 years ago by breenh@…

I upgraded to Yosemite tonight and am hitting this issue with cmake. I do not have Xcode installed at all; I use the command line tools only. These were upgraded by the Mac App Store after the upgrade to Yosemite; it claims they are the command line tools "10.10 version 6.1". So given that I supposedly have the 6.1 version, is there anything else I can do? Is there something I should check to verify that I actually have the changes in Xcode 6.1 that are required?

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

Cc: breenh@… added

Please install and select Xcode 6.1. MacPorts had always required Xcode and the Xcode command line tools.

comment:30 in reply to:  29 ; Changed 10 years ago by breenh@…

Replying to ryandesign@…:

Please install and select Xcode 6.1. MacPorts had always required Xcode and the Xcode command line tools.

This fixed the issue. Curious what is different between the full Xcode install and the command line tools (other than the obvious). For the record, the command line tools alone worked fine on Mavericks for these same packages.

Thanks.

comment:31 Changed 10 years ago by kap4020@…

Just confirming that, as of 11/17/2014:

  • Xcode 6.1 beta is not on the developer downloads page anymore
  • There is a "Xcode command line tools for XCode 6.1" installer, but it doesn't fix the cmake error because there is still no /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk directory.

comment:32 in reply to:  30 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to breenh@…:

Curious what is different between the full Xcode install and the command line tools (other than the obvious).

Xcode provides SDKs. cmake requires an SDK.

comment:33 in reply to:  31 ; Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: kap4020@… added

Replying to kap4020@…:

  • Xcode 6.1 beta is not on the developer downloads page anymore

Xcode 6.1 final is available from this developer downloads page; please install and select it.

comment:34 in reply to:  33 Changed 10 years ago by jmroot (Joshua Root)

Replying to ryandesign@…:

Replying to kap4020@…:

  • Xcode 6.1 beta is not on the developer downloads page anymore

Xcode 6.1 final is available from this developer downloads page; please install and select it.

I certainly can’t find it there.

comment:35 Changed 10 years ago by jmroot (Joshua Root)

Cc: css@… added

I vaguely recall an upstream bug report related to this; does anyone have a link? If there isn’t one there should be, since I can’t think of any reason why cmake would absolutely need an SDK.

comment:36 Changed 10 years ago by kap4020@…

@ryandesign:

My Apple Developer Downloads page looks like this:

http://goo.gl/yTRfCl

comment:37 in reply to:  36 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to kap4020@…:

My Apple Developer Downloads page looks like this:

I see, I guess Apple shows different downloads to different people. Perhaps I get to see it early because I was a member of the Yosemite beta program.

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

Cc: easieste@… added

Has duplicate #45422.

comment:41 Changed 10 years ago by kyawsoelynn@…

  1. Download Xcode 6.1 from https://developer.apple.com/downloads/
  2. Install and replace old version Xcode 6.0.1
  3. Download Command Line Tools (OS X 10.10) for Xcode 6.1 and install it.

Try to install again for cmake, make sure "port clean cmake".

It worked for me.

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Has duplicate #45432.

comment:43 Changed 10 years ago by jasoncampisi+macports@…

I have had this same problem building cmake in OS X.X Beta 1 through OS X.X Gold-master.

This fixed the problem:

  1. Completely uninstall Macports. Remove all traces using these steps 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, but the installer hung for over 1hr eating 95% of the CPU cycles; so, I killed the task, and built from the source and installed within 5mins). Guide here guide.macports.org/chunked/installing.macports.html#installing.macports.source
  4. Update to Xcode 6.1
  5. Run the command: sudo port install cmake
Last edited 10 years ago by jasoncampisi+macports@… (previous) (diff)

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

Cc: jasoncampisi+macports@… added

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

Has duplicate #45433.

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

Cc: jschnide@… added

Has duplicate #45437.

comment:48 Changed 10 years ago by Christoph.Ender@…

Cc: Christoph.Ender@… added

Cc Me!

comment:49 Changed 10 years ago by glen@…

Cc: glen@… added

Cc Me!

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

Has duplicate #45446.

comment:51 Changed 10 years ago by kap4020@…

If you can't download/install XCode 6.1, here's a workaround:

  1. Open /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2/Modules/Platform/Darwin.cmake.
  2. Add the line set(CMAKE_OSX_DEPLOYMENT_TARGET "") at the top.
  3. 'sudo port install cmake'

In patch format:

--- Darwin.cmake-orig	2014-10-18 12:24:56.000000000 -0400
+++ Darwin.cmake	2014-10-18 12:25:03.000000000 -0400
@@ -1,4 +1,5 @@
 set(APPLE 1)
+set(CMAKE_OSX_DEPLOYMENT_TARGET "")

 # Darwin versions:
 #   6.x == Mac OSX 10.2 (Jaguar)

comment:52 Changed 10 years ago by philippe.lang@…

Worked perfect for me. Thanks!

comment:53 in reply to:  52 Changed 10 years ago by bogdandaja@…

Replying to philippe.lang@…:

Worked perfect for me. Thanks!

You was faster than me :) It works for me also. Thank You

Changed 10 years ago by sobakasu@…

Attachment: main.sobakasu.log added

errors after applying patch 'set(CMAKE_OSX_DEPLOYMENT_TARGET "")'

comment:54 in reply to:  51 ; Changed 10 years ago by sobakasu@…

Replying to kap4020@…:

If you can't download/install XCode 6.1, here's a workaround:

I tried your patch but got a bunch of new errors after 'sudo port install cmake', in main.sobakasu.log. i'm using xcode 6.0.1

comment:55 in reply to:  54 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sobakasu@… added

Replying to sobakasu@…:

I tried your patch but got a bunch of new errors after 'sudo port install cmake', in main.sobakasu.log. i'm using xcode 6.0.1

The log you attached is not from a clean build.

comment:56 Changed 10 years ago by sobakasu@…

I ended up making a symlink in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
MacOSX10.10.sdk -> MacOSX10.9.sdk
cmake now compiles. what could possibly go wrong
Version 0, edited 10 years ago by sobakasu@… (next)

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

I cannot endorse making such a symlink, and recommend you remove it.

comment:58 Changed 10 years ago by laughingtiger

Cc: mllists@… added

Cc Me!

comment:59 in reply to:  51 ; Changed 10 years ago by Dmole (Tim)

Replying to kap4020@…:

Thanks that worked for me.

Someone please fix the cmake package with

set(CMAKE_OSX_DEPLOYMENT_TARGET "")

so we can close this bug.

comment:60 in reply to:  41 Changed 10 years ago by jrblevin@…

Replying to kyawsoelynn@…:

  1. Download Xcode 6.1 from https://developer.apple.com/downloads/
  2. Install and replace old version Xcode 6.0.1
  3. Download Command Line Tools (OS X 10.10) for Xcode 6.1 and install it.

Try to install again for cmake, make sure "port clean cmake".

Many thanks! Just to confirm, this worked for me as well.

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

Has duplicate #45459.

comment:62 in reply to:  59 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to elatllat@…:

Someone please fix the cmake package with

set(CMAKE_OSX_DEPLOYMENT_TARGET "")

so we can close this bug.

I don't believe we intend to make that change. I believe we intend for the fix to be to install a version of Xcode with the required SDK, e.g. Xcode 6.1.

comment:63 in reply to:  59 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #45462.

Changed 10 years ago by neverpanic (Clemens Lang)

Patch against the Portfile that achieves the same thing

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

I've attached a patch against the Portfile that achieves the same without fiddling with Darwin.cmake.

Maintainer: Is there something that requires us to build cmake with a deployment target, especially when it refuses to build using a deployment target but without and SDK?

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

Chris hasn't weighed in on this issue yet, but I'm really reluctant to make any change here, since we've tried making changes to the deployment target and SDK stuff in the cmake portgroup before which have resulted in unintended breakage and the need to put things back the way they were. What we have now works fine, provided the OS SDK is present, which it will be as soon as a compatible version of Xcode is installed. I still think that is the correct solution.

comment:66 Changed 10 years ago by gorticus (Jason Mitchell)

Installing Xcode 6.1 and associated command line tools worked for me.

[edit] Perhaps adding a note regarding Xcode 6.1 to the Migration page for Yosemite would help?

Last edited 10 years ago by gorticus (Jason Mitchell) (previous) (diff)

comment:67 Changed 10 years ago by grail@…

Worked for me: upgraded to Yosemite from Mavericks, downloaded Xcode 6.1 from the links above, ran xcode-select, port clean cmake, port upgrade outdated.

NB: when downloading and installing Xcode 6.1, make sure the application name has no spaces in it. Many Unix build tools are not designed to handle filenames or paths with spaces in them.

comment:68 Changed 10 years ago by joepreludian@…

What happening is when we Setup a brand new OS X and put Xcode, the public version is 6.0.1 and doesn't have the 10.10 SDK. (Just have iOS8 one). I got the developer version of Xcode (6.1), did an Xcode select, also I set CMAKE_OSX_SYSROOT and rebuild my cmake. I Did the following:

    # Download Xcode 6.1;
    # Download Xcode Command Line Tools;
    # Download and Install Macports;

    env  MAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
    sudo port selfupdate
    sudo port install cmake


    # If You tried to install before, try cleaning cmake's setup by doing:

    sudo port clean cmake

I Hope it helps.

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:69 Changed 10 years ago by lpsinger (Leo Singer)

Cc: aronnax@… added

Cc Me!

comment:70 Changed 10 years ago by onurdomanic@…

Cc: onurdomanic@… added

Cc Me!

comment:71 Changed 10 years ago by mf2k (Frank Schima)

Cc: whitepurplegreen@… added

Cc reporter of duplicate #45493.

comment:72 Changed 10 years ago by mf2k (Frank Schima)

Cc: css@… removed
Owner: changed from macports-tickets@… to css@…
Version: 2.3.12.3.2

comment:73 Changed 10 years ago by mf2k (Frank Schima)

Cc: rubendibattista@… added

Cc reporter of duplicate #45491.

comment:74 Changed 10 years ago by larryv (Lawrence Velázquez)

Xcode 6.1 is now available from the Mac App Store.

comment:75 Changed 10 years ago by jmroot (Joshua Root)

How about this addition to the Darwin.cmake patch currently used by the port? The compiler and linker don’t complain about the combination of a deployment target and no SDK, so why should cmake? There’s still a warning about the SDK matching the deployent target not existing, which would be nice to silence as well, but this allows cmake to build on 10.10 without a 10.10 SDK.

comment:76 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: edwardsmoon@… added

Has duplicate #45510.

comment:77 Changed 10 years ago by kap4020@…

Cc: kap4020@… removed

Cc Me!

comment:78 Changed 10 years ago by kap4020@…

Cc: kap4020@… added

Cc Me!

comment:79 Changed 10 years ago by kap4020@…

Cc: kap4020@… removed

Cc Me!

comment:80 Changed 10 years ago by kap4020@…

Cc: kap4020@… added

Cc Me!

comment:81 Changed 10 years ago by jmroot (Joshua Root)

OK, new version of the patch that also silences the warning when it’s not relevant. This should be good to send upstream, apart from the previously existing bit that allows /, which I think they already applied.

comment:82 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: tim.lock@… added

Has duplicate #45519.

comment:83 Changed 10 years ago by jmroot (Joshua Root)

Keywords: haspatch added

comment:84 Changed 10 years ago by tim.lock@…

Great, fixed!

Changed 10 years ago by jmroot (Joshua Root)

comment:85 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: dbender@… added

Has duplicate #45542.

comment:86 Changed 10 years ago by easye

Cc: easieste@… removed

comment:87 Changed 10 years ago by notinmyhead@…

Hello,

I tried everything but I still get a different error:

:info:build ld: warning: ignoring file /Library/Frameworks/expat.framework/expat, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/expat.framework/expat
:info:build Undefined symbols for architecture x86_64:
:info:build   "_XML_ErrorString", referenced from:
:info:build       cmXMLParser::ReportXmlParseError() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_GetCurrentColumnNumber", referenced from:
:info:build       cmXMLParser::ReportXmlParseError() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_GetCurrentLineNumber", referenced from:
:info:build       cmXMLParser::ReportXmlParseError() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_GetErrorCode", referenced from:
:info:build       cmXMLParser::ReportXmlParseError() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_Parse", referenced from:
:info:build       cmXMLParser::CleanupParser() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build       cmXMLParser::ParseBuffer(char const*, unsigned long) in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_ParserCreate", referenced from:
:info:build       cmXMLParser::InitializeParser() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_ParserFree", referenced from:
:info:build       cmXMLParser::CleanupParser() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_SetCharacterDataHandler", referenced from:
:info:build       cmXMLParser::InitializeParser() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_SetElementHandler", referenced from:
:info:build       cmXMLParser::InitializeParser() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build   "_XML_SetUserData", referenced from:
:info:build       cmXMLParser::InitializeParser() in libCMakeLib.a(cmXMLParser.cxx.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [bin/ccmake] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/work/cmake-3.0.2'
:info:build make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

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

notinmyhead, this is a different issue, please open a separate ticket for that. That being said, it seems you have an incompatible expat in /Library/Frameworks (possibly installed manually or by some 3rd-party-installer). Remove it or build cmake in trace mode (port -t ...).

comment:89 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Patch committed in r127220 (maintainer timeout).

comment:90 Changed 10 years ago by jmroot (Joshua Root)

Summary: cmake and CMAKE_OSX_SYSROOT value on mac os 10.10 yosemitecmake fails when a deployment target is set but not a matching SDK

comment:91 Changed 10 years ago by akarypid@…

Cc: akarypid@… added

Cc Me!

comment:92 Changed 10 years ago by akarypid@…

Hello,

I located this bug when investigating a build problem with port that uses cmake to build; see: https://trac.macports.org/ticket/47062#comment:8

I was actually trying to build octave, which failed due to the gl2ps library missing, which failed due to CMAKE_OSX_SYSROOT being specified when running cmake for the gl2ps package.

Any idea what the problem is with the the XCode 6.1 command line tools? I think that starting with XCode 5 the command line tools are included in the XCode application. So you don't need to install the separate command-line tools package (just the XCode GUI will do). The command line tools are only required if you want to be able to build in a headless environment.

I've installed XCode GUI and been able to build lots of ports without issue until now. When I run port I always get a warning:

$ sudo port install octave
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build.
Warning: Install them by running `xcode-select --install'.
--->  Computing dependencies for octave
...

...but in fact everything works because the command line tools are present on the syste:

$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

It seems that due to the above, macports note detecting the location of the command line tools, it passes a CMAKE_OSX_SYSROOT="/" to cmake which causes it to silently break the build...

Currently I've "cheated" by building and installing gl2ps manually... I was able to build octave normally after that.

comment:93 Changed 10 years ago by akarypid@…

Apparently there's some issue with the command line tools bundled with the XCode application? I installed the "traditional" version with xcode-select --install and the problem has gone away...

I guess macports isn't supposed to support the version that comes with XCode?

comment:94 Changed 10 years ago by kap4020@…

Cc: kap4020@… removed

Cc Me!

comment:95 Changed 10 years ago by kap4020@…

Cc: kap4020@… added

Cc Me!

comment:96 Changed 10 years ago by kap4020@…

Cc: kap4020@… removed

Cc Me!

Note: See TracTickets for help on using tickets.