[CMake] cmake 3.4.1 bootstrap compile error

Burlen Loring burlen.loring at gmail.com
Thu Dec 24 11:27:24 EST 2015


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151224/49104cee/attachment.html>


More information about the CMake mailing list