The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=16021 ====================================================================== Reported By: Erik Schnetter Assigned To: ====================================================================== Project: CMake Issue ID: 16021 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2016-03-16 14:14 EDT Last Modified: 2016-03-16 14:14 EDT ====================================================================== Summary: Cannot build on OS X with GCC Description: I cannot build cmake 3.5.0 on OS X "El Capitan" with GCC 5.3. After configuring normally, the build aborts with an error message. It seems that cmake uses some system header files with Apple-specific extensions that GCC cannot handle.
These extensions seem to have to do with the user interface; if so, there should be an option to not build the parts that cannot be built, and still build the "regular" cmake. cmake 3.4.3 builds fine with the same setup. Steps to Reproduce: Install GCC 5.3 via MacPorts; make GCC the default compiler tar xzf cmake-3.5.0.tar.gz cd cmake-3.5.0 # Building without the OpenSSL flag aborts with an error ./configure -- -DCMAKE_USE_OPENSSL=ON gmake Additional Information: The build aborts with [ 85%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackDragNDropGenerator.cxx.o In file included from /usr/include/Availability.h:168:0, from /usr/include/inttypes.h:224, from /tmp/cmake-3.5.0/Utilities/KWIML/include/kwiml/int.h:194, from /tmp/cmake-3.5.0/Utilities/cm_kwiml.h:22, from /tmp/cmake-3.5.0/Source/cmStandardIncludes.h:34, from /tmp/cmake-3.5.0/Source/cmObject.h:15, from /tmp/cmake-3.5.0/Source/CPack/cmCPackGenerator.h:16, from /tmp/cmake-3.5.0/Source/CPack/cmCPackDragNDropGenerator.h:16, from /tmp/cmake-3.5.0/Source/CPack/cmCPackDragNDropGenerator.cxx:13: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h:1242:34: error: expected '}' before '__attribute__' kLSHandlerOptionsDefault __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_4, __MAC_10_11, __IPHONE_4_0, __IPHONE_9_0, "Creator codes are deprecated on OS X.") = 0, ^ In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h:529:0, from /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:27, from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:39, from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20, from /tmp/cmake-3.5.0/Source/CPack/cmCPackDragNDropGenerator.cxx:34: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h:1242:163: error: expected unqualified-id before '=' token kLSHandlerOptionsDefault __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_4, __MAC_10_11, __IPHONE_4_0, __IPHONE_9_0, "Creator codes are deprecated on OS X.") = 0, ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h:1294:1: error: expected declaration before '}' token } ^ Source/CMakeFiles/CPackLib.dir/build.make:518: recipe for target 'Source/CMakeFiles/CPackLib.dir/CPack/cmCPackDragNDropGenerator.cxx.o' failed gmake[2]: *** [Source/CMakeFiles/CPackLib.dir/CPack/cmCPackDragNDropGenerator.cxx.o] Error 1 CMakeFiles/Makefile2:2018: recipe for target 'Source/CMakeFiles/CPackLib.dir/all' failed gmake[1]: *** [Source/CMakeFiles/CPackLib.dir/all] Error 2 Makefile:160: recipe for target 'all' failed gmake: *** [all] Error 2 ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2016-03-16 14:14 Erik Schnetter New Issue ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers