[CMake] cmake 3.4.1 bootstrap compile error

Burlen Loring burlen.loring at gmail.com
Wed Dec 23 12:00:49 EST 2015


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/20151223/dc7ccbec/attachment.html>


More information about the CMake mailing list