[CMake] CMake 3.3 and 3.2 bootstrap fails on OS X Yosemite

Sean McBride sean at rogue-research.com
Fri Oct 2 09:23:34 EDT 2015


On Thu, 1 Oct 2015 16:51:55 -0700, Damian Rouson said:

>/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);

Your compiler doesn't support "blocks":

<https://en.wikipedia.org/wiki/Blocks_(C_language_extension)>

and the latest OS X SDKs require such support.  You could try building CMake against an older SDK, or just use clang, the default compiler on OS X.

I think Apple added blocks support to their fork of gcc (long ago), but I don't think it ever went into mainline gcc.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the CMake mailing list