Dear Fink Developers,
I've been working with David Fang to get the clang34/llvm34 compiler suite to
build under Yosemite Public Beta. Thanks to a recent patch by Jack Howarth
(languages/llvm34-openmp-cmake.patch; 2014-08-15) these large packages now
build, once a couple of workarounds are put in place:
1) change line 131 of llvm34.info from
if test "$darwin_vers" -ge 11
to
if test "$darwin_vers" -ge 11 -a "$darwin_vers" -lt 14
2) and similar to the problem that gcc48/49 had (understanding how to parse
OS-X version "10.10.x") there is a problem in
cmake-3.0/Modules/Platform/Darwin.cmake;
for the moment I hardwired a fix so the build would succeed - change lines
204-216 to:
# Make sure the combination of SDK and Deployment Target are allowed
if(CMAKE_OSX_DEPLOYMENT_TARGET)
if("${_CMAKE_OSX_SYSROOT_PATH}" MATCHES
"^.*/MacOSX([0-9]+\\.[0-9]+)[^/]*\\.sdk")
set(_sdk_ver "${CMAKE_MATCH_1}")
elseif("${_CMAKE_OSX_SYSROOT_ORIG}" MATCHES "^macosx([0-9]+\\.[0-9]+)$")
set(_sdk_ver "${CMAKE_MATCH_1}")
else()
set(CMAKE_OSX_SYSROOT "/")
set(_sdk_ver "10.10")
# message(FATAL_ERROR
# "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' "
# "but CMAKE_OSX_SYSROOT:\n \"${_CMAKE_OSX_SYSROOT_ORIG}\"\n"
# "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.")
With Jack/David's patch and these two tweaks clang34 and llvm34 built (after a
long multi-stage compilation). The change to llvm34.info is backwards
compatible with Mavericks and earlier; clearly the cmake-3.0 package needs to
be updated to parse 10.10 properly vs. the hardwired hack I applied...
Cheers,
John
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel