MantisBT - CMake
View Issue Details
0015895CMakeCMakepublic2015-12-23 10:502015-12-24 11:24
Burlen 
 
normalminoralways
closedno change required 
CMake 3.4.1 
 
0015895: bootstrap compilation 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
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
./configure && make
No tags attached.
Issue History
2015-12-23 10:50BurlenNew Issue
2015-12-23 12:10Rolf Eike BeerNote Added: 0040023
2015-12-23 12:26BurlenNote Added: 0040024
2015-12-24 11:19BurlenNote Added: 0040027
2015-12-24 11:22BurlenNote Edited: 0040027bug_revision_view_page.php?bugnote_id=40027#r1982
2015-12-24 11:24Rolf Eike BeerSeveritymajor => minor
2015-12-24 11:24Rolf Eike BeerStatusnew => closed
2015-12-24 11:24Rolf Eike BeerResolutionopen => no change required

Notes
(0040023)
Rolf Eike Beer   
2015-12-23 12:10   
This is an error in your system headers, but it looks strange. Please check that they are not damaged, it looks like there should be a '*' instead of '^'.
(0040024)
Burlen   
2015-12-23 12:26   
Hmm. That does look odd. Then again Apple does a lot of non standard stuff. In any case, I'm sure that I did not do that. That makes me hesitant to change it.

Google turned up this Apple specific extension up.
https://en.wikipedia.org/wiki/Blocks_(C_language_extension) [^]
(0040027)
Burlen   
2015-12-24 11:19   
(edited on: 2015-12-24 11:22)
I found that there is an install of gcc in /usr/local/ and this was causing all sorts of grief. once I removed that things went smoothly. so please close this report.