I found that there is an install of gcc in /usr/local/ and this was
causing the issue. once I removed that things went smoothly.
On 12/23/2015 09:00 AM, Burlen Loring wrote:
I tried to download and compile 3.4.1 on Apple 10.10.5. I did
./configure prefix=blah && make
here is the error:
g++ -I/Users/bloring/apps/cmake/builds/cmake-3.4.1/Bootstrap.cmk
-I/Users/bloring/apps/cmake/builds/cmake-3.4.1/Source
-I/Users/bloring/apps/cmake/builds/cmake-3.4.1/Bootstrap.cmk -c
/Users/bloring/apps/cmake/builds/cmake-3.4.1/Source/cmBootstrapCommands1.cxx
-o cmBootstrapCommands1.o
In file included from /usr/include/dispatch/dispatch.h:51:0,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
from
/Users/bloring/apps/cmake/builds/cmake-3.4.1/Source/cmFindProgramCommand.cxx:16,
from
/Users/bloring/apps/cmake/builds/cmake-3.4.1/Source/cmBootstrapCommands1.cxx:52:
/usr/include/dispatch/object.h:143:15: error: expected
unqualified-id before ‘^’ token
typedef void (^dispatch_block_t)(void);
^
/usr/include/dispatch/object.h:143:15: error: expected ‘)’ before
‘^’ token
/usr/include/dispatch/object.h:362:3: error: ‘dispatch_block_t’
has not been declared
dispatch_block_t notification_block);
^
make: *** [cmBootstrapCommands1.o] Error 1
I guess that this is because homebrew installed gcc. All the same,
shouldn't this just work? If Cmake can't work with homebrew gcc then
should it ignore it?
Burlen
--
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