Issue compiling on OS X 10.7 Lion
I have an older XSERVE machine that we use for development that will only run lion. I am trying to upgrade from cmake 2.8.12.1 to 3.8.1 The problem is that when I try doing it with, "brew install cmake", I get the following output.
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.10.1 --no-system-libs --parallel=8 --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man --system-zlib --system-b
Last 15 lines from /Users/mav2287/Library/Logs/Homebrew/cmake/01.bootstrap:
--sphinx-build=/usr/local/opt/sphinx-doc/bin/sphinx-build
--
-DCMAKE_BUILD_TYPE=Release
---------------------------------------------
CMake 3.10.1, Copyright 2000-2017 Kitware, Inc. and Contributors
C compiler on this system is: clang
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler supporting C++11 on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /private/tmp/cmake-20171223-2492-18v6hnf/cmake-3.10.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
Rather than mess with it I just tried to switch to using GCC 6.4.0, "brew upgrade cmake --cxx=g++-6 --cc=gcc-6 --verbose", that didn't go well either... When I try to compile it I had the following concerning outputs in verbose mode...
In file included from /System/Library/Frameworks/Security.framework/Headers/Security.h:59:0,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h:35,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h:34,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:29,
from /tmp/cmake-20171222-52418-arlqep/cmake-3.10.1/Source/CPack/cmCPackDragNDropGenerator.cxx:23:
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:102:46: error: shift expression '(1853123693 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeNTLM = AUTH_TYPE_FIX_ ('ntlm'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:102:46: error: enumerator value for 'kSecAuthenticationTypeNTLM' is not an integer constant
kSecAuthenticationTypeNTLM = AUTH_TYPE_FIX_ ('ntlm'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:103:46: error: shift expression '(1836281441 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeMSN = AUTH_TYPE_FIX_ ('msna'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:103:46: error: enumerator value for 'kSecAuthenticationTypeMSN' is not an integer constant
kSecAuthenticationTypeMSN = AUTH_TYPE_FIX_ ('msna'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:104:46: error: shift expression '(1685086561 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeDPA = AUTH_TYPE_FIX_ ('dpaa'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:104:46: error: enumerator value for 'kSecAuthenticationTypeDPA' is not an integer constant
kSecAuthenticationTypeDPA = AUTH_TYPE_FIX_ ('dpaa'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:105:46: error: shift expression '(1919967585 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeRPA = AUTH_TYPE_FIX_ ('rpaa'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:105:46: error: enumerator value for 'kSecAuthenticationTypeRPA' is not an integer constant
kSecAuthenticationTypeRPA = AUTH_TYPE_FIX_ ('rpaa'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:106:46: error: shift expression '(1752462448 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeHTTPBasic = AUTH_TYPE_FIX_ ('http'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:106:46: error: enumerator value for 'kSecAuthenticationTypeHTTPBasic' is not an integer constant
kSecAuthenticationTypeHTTPBasic = AUTH_TYPE_FIX_ ('http'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:107:46: error: shift expression '(1752462436 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeHTTPDigest = AUTH_TYPE_FIX_ ('httd'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:107:46: error: enumerator value for 'kSecAuthenticationTypeHTTPDigest' is not an integer constant
kSecAuthenticationTypeHTTPDigest = AUTH_TYPE_FIX_ ('httd'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:108:46: error: shift expression '(1718579821 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeHTMLForm = AUTH_TYPE_FIX_ ('form'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:108:46: error: enumerator value for 'kSecAuthenticationTypeHTMLForm' is not an integer constant
kSecAuthenticationTypeHTMLForm = AUTH_TYPE_FIX_ ('form'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:109:46: error: shift expression '(1684434036 << 8)' overflows [-fpermissive]
kSecAuthenticationTypeDefault = AUTH_TYPE_FIX_ ('dflt'),
^
/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:109:46: error: enumerator value for 'kSecAuthenticationTypeDefault' is not an integer constant
kSecAuthenticationTypeDefault = AUTH_TYPE_FIX_ ('dflt'),
/usr/local/Cellar/sphinx-doc/1.6.5/libexec/lib/python2.7/site-packages/sphinx/util/requests.py:64: UserWarning: Some links may return broken results due to being unable to check the Server Name Indication (SNI) in the returned SSL cert against the hostname in the url requested. Recommended to install "requests[security]" as a dependency or upgrade to a python version with SNI support (Python 3 and Python 2.7.9+).
'Some links may return broken results due to being unable to '
[ 97%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackPackageMakerGenerator.cxx.o
[ 97%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackProductBuildGenerator.cxx.o
make[2]: *** [Source/CMakeFiles/CPackLib.dir/CPack/cmCPackDragNDropGenerator.cxx.o] Error 1
make: *** [all] Error 2
From here I am drawing a blank. I'm not sure what else to try. At this point I have been trying to get it to compile for a few days and I am at a total loss and what to do. Any help would be greatly appreciated.
Edited by Ben Boeckel