[MacPorts] #23857: cmake 2.8.0 build failed
#23857: cmake 2.8.0 build failed ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: cmake | Port: cmake ----------------------------------------+----------------------------------- cmake 2.8.0 fails to build on Max OS X 10.6.2[[BR]] [[BR]] Platform informations:[[BR]] Model: iMac10.1[[BR]] System version: Mac OS X 10.6.2 (10C540)[[BR]] Kernel version: Darwin 10.2.0[[BR]] 64 bit kernel and extensions: yes[[BR]] Xcode version: 3.2.1[[BR]] port version: 1.8.2[[BR]] [[BR]] {{{ 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> }}} [[BR]] CMakeCache.txt attached. -- Ticket URL: <http://trac.macports.org/ticket/23857> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 build failed ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Changes (by jmr@…): * keywords: cmake => * owner: macports-tickets@… => css@… Comment: Please remember to cc the maintainer. -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 build failed ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Changes (by css@…): * status: new => assigned Comment: 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 }}} [http://software.intel.com/en-us/forums/showthread.php?t=70306 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? -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 build failed ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(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! -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 build failed ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(by css@…): So the catch is twofold ... 1. Can MacPorts easily detect that XCode 3.2.1 is installed into a different location? 2. How can the CMake Portfile indicate this location when configuring the port? -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Changes (by css@…): * priority: Normal => Low -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(by jmr@…): Replying to [comment:4 css@…]:
1. Can MacPorts easily detect that XCode 3.2.1 is installed into a different location? That's the developer_dir variable.
-- Ticket URL: <http://trac.macports.org/ticket/23857#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Has duplicate #25484. -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(by css@…): Replying to [comment:4 css@…]:
2. 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`. -- Ticket URL: <http://trac.macports.org/ticket/23857#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(by chbrosso@…): The bug is fixed upstream (see patch in issue page) and will be rolled in 2.8.5: http://public.kitware.com/Bug/view.php?id=10723 -- Ticket URL: <https://trac.macports.org/ticket/23857#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location ----------------------------------------+----------------------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: assigned Priority: Low | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: cmake ----------------------------------------+----------------------------------- Comment(by css@…): Any confirmation that this may now be closed with cmake 2.8.5? -- Ticket URL: <https://trac.macports.org/ticket/23857#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23857: cmake 2.8.0 fails with non-default XCode 3.2.1 location -----------------------------------+-------------------- Reporter: piergiuseppe.fogli@… | Owner: css@… Type: defect | Status: closed Priority: Low | Milestone: Component: ports | Version: 1.8.2 Resolution: worksforme | Keywords: Port: cmake | -----------------------------------+-------------------- Changes (by mojca@…): * status: assigned => closed * resolution: => worksforme Comment: Given that we have CMake 3.0.0 now and that the bug was supposed to be fixed already way back in 2.8.5, I suspect the problem has been fixed, so I'm closing the ticket. If that's not the case and it's still a problem, please reopen the ticket. -- Ticket URL: <https://trac.macports.org/ticket/23857#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts