On 8/1/2013 9:54 PM, Alexander Hansen wrote: > On 8/1/13 6:12 PM, Tiziano Passerini wrote: >> Good evening, >> >> I get a compilation error when trying to build the package >> boost1.46.1.cmake-1.46.1-3. >> >> Here's the full log of the error: >> >> sudo -u fink-bld [ENV] sh -c /tmp/fink.CinWi >> /tmp/fink.XX3Yi >> #!/bin/sh -ev >> cmake -DENABLE_STATIC=off -DENABLE_DEBUG=off \ >> -DBUILD_SOVERSIONED=on -DINSTALL_VERSIONED=off \ >> -DCMAKE_INSTALL_PREFIX=/sw -DCMAKE_INSTALL_NAME_DIR=/sw/lib \ >> -DWITH_DOXYGEN=off -DWITH_ICU=off -DWITH_MPI=off \ >> -DBZIP2_INCLUDE_DIR=/usr/include \ >> -DBZIP2_LIBRARIES=/usr/lib/libbz2.dylib \ >> -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ >> -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \ >> -DPYTHON_LIBRARIES="-framework Python" \ >> -DXSLTPROC_EXECUTABLE=/usr/bin/xsltproc >> -- The C compiler identification is Clang 4.2.0 >> -- The CXX compiler identification is Clang 4.2.0 >> CMake Error at /sw/share/cmake-2.8/Modules/Platform/Darwin.cmake:190 >> (message): >> CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT: >> >> "" >> >> is not set to a MacOSX SDK with a recognized version. Either set >> CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to >> empty. >> Call Stack (most recent call first): >> /sw/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 >> (include) >> CMakeLists.txt:28 (project) >> >> >> -- Configuring incomplete, errors occurred! >> ### execution of /tmp/fink.XX3Yi failed, exit code 1 >> ### execution of /tmp/fink.CinWi failed, exit code 1 >> >> >> And here is my system information: >> >> Package manager version: 0.35.1 >> Distribution version: selfupdate-rsync Thu Aug 1 20:56:03 2013, 10.8, x86_64 >> Trees: local/main stable/main unstable/main unstable/crypto >> No recognized Xcode.app installed >> Xcode command-line tools: 4.6.0.0.1.1365549073 >> Max. Fink build jobs: 1 >> >> >> After doing some research online, I understand this is a known issue with >> recent versions of CMake, now requiring a different set of options to >> correctly handle OSX's SDK. I believe this requires a modification of the >> source code in the package. >> >> Did anyone else observe the same problem, and can anyone suggest a fix? >> >> Thank you for your help, >> >> Tiziano >> >> > > I don't reproduce this issue on my 10.8 system using Fink's > cmake-2.8.11.2-1. You might check whether you have another cmake in > your PATH, e.g. via > > type -a cmake
It's not that there's a rogue cmake present in the system. Tiziano only has the command line tools installed and not the full Xcode.app (this is a acceptable situation for Fink) and cmake tries to be helpful, but doesn't understand this possibility. The options are to either: 1) install the full Xcode tools, or 2) modify boost1.46 to include -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="" , or 3) modify cmake to stop setting CMAKE_OSX_DEPLOYMENT_TARGET if CMAKE_OSX_SYSROOT is empty (which is what happens when only the command line tools are installed. This is controlled from /sw/share/cmake-2.8/Modules/Platform/Darwin.cmake I think this feature will hit every package that uses cmake on a system when only the command line tools are installed. I can't get on CVS right now to patch boost1.46. Martin, I've included you into the discussion since you are the cmake maintainer and might know the best way to patch cmake for this. Hanspeter ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users