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

2015-10-02 Thread Sean McBride
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":



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 s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada


-- 

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


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

2015-10-02 Thread Damian Rouson

> On Oct 2, 2015, at 12:23 AM, Nils Gladitz  wrote:
> 
> 
> I found 
> http://hamelot.co.uk/programming/osx-gcc-dispatch_block_t-has-not-been-declared-invalid-typedef/
>  which says this is due to that bit of syntax (I've never seen that either) 
> within /usr/include/dispatch/object.h being understood by clang but not by 
> gcc.
> 
> Other sources [1] seem to say that this bit of syntax is supported by gcc as 
> it used to be provided by Xcode.
> 
> I am guessing you are also using gcc without apple provided patches (e.g. 
> homebrew)?

Correct.  I’m using gcc as provided by MacPorts.  The goal of this script is to 
assist users of OpenCoarrays (www.opencoarrays.org) who find it burdensome to 
install the OpenCoarrays prerequisites.  It would also be burdensome if I 
required them to patch their GCC.  In the worst case scenario, I could adjust 
the provided GCC build script [2] to apply the patch, but it’s kind of a lot to 
ask people to install a patched GCC in addition to the GCC they might already 
have on their system.   

Damian

[2] 
https://github.com/sourceryinstitute/opencoarrays/blob/master/install_prerequisites/buildgcc

-- 

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

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

2015-10-02 Thread Nils Gladitz

On 10/02/2015 01:51 AM, Damian Rouson wrote:

All,

Could someone advise me on building CMake from source on OS X 10.10.5 
(Yosemite)?  At the bottom of this email is the tail of the output from the 
following build script:

g++ 
-I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
 
-I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source
 
-I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
 -c 
/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source/cmFindProgramCommand.cxx:16,
  from 
/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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);
^


I found 
http://hamelot.co.uk/programming/osx-gcc-dispatch_block_t-has-not-been-declared-invalid-typedef/ 
which says this is due to that bit of syntax (I've never seen that 
either) within /usr/include/dispatch/object.h being understood by clang 
but not by gcc.


Other sources [1] seem to say that this bit of syntax is supported by 
gcc as it used to be provided by Xcode.


I am guessing you are also using gcc without apple provided patches 
(e.g. homebrew)?


Nils

[1] 
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html

--

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


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

2015-10-01 Thread Damian Rouson

> On Oct 1, 2015, at 7:45 PM, David Cole  wrote:
> 
> The "-1" bz2 files are for Cygwin…

Why don’t the Cygwin files have “Cygwin” in their names like the files with 
“Darwin” and “Linux” in their names?

> 
> Try the plain old .tar.gz instead.
> 

I get the same error with cmake-3.3.2.tar.gz.

Damian
-- 

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

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

2015-10-01 Thread Dan Kegel
IMHO it's a bug to have different contents in the two archive formats; it
leads to confusion like this because it differs from standard practice in
the open source world.
On Oct 1, 2015 7:45 PM, "David Cole via CMake"  wrote:

> The "-1" bz2 files are for Cygwin...
>
> Try the plain old .tar.gz instead.
>
>
> David
>
> > On Oct 1, 2015, at 7:51 PM, Damian Rouson 
> wrote:
> >
> > All,
> >
> > Could someone advise me on building CMake from source on OS X 10.10.5
> (Yosemite)?  At the bottom of this email is the tail of the output from the
> following build script:
> >
> > #!/bin/bash
> > version=3.3
> > wget http://www.cmake.org/files/v$version/cmake-$version.0-1-src.tar.bz2
> &&
> > tar xvjf cmake-$version.0-1-src.tar.bz2 &&
> > tar xvjf cmake-$version.0.tar.bz2 &&
> > cd cmake-$version.0  &&
> > ./bootstrap --prefix=${PWD} >&1 | tee build.log
> >
> > An identical script completes successfully on Linux (Lubuntu).   The
> complete output of the above script in the “build.log” file at
> https://github.com/sourceryinstitute/AdHoc/tree/master/src/cmake/bug-.
> A link to the resulting “cmake_bootstrap.log” file is on the same page.
> >
> > I get the same error with CMake 3.2.3 and have reported this behavior in
> CMake bug report 0015762 (https://cmake.org/Bug/view.php?id=15762).
> >
> >
> > 
> > Damian Rouson, Ph.D., P.E.
> > President, Sourcery Institute
> > http://www.sourceryinstitute.org
> > +1-510-600-2992 (mobile)
> >
> >
> >
> >
> > g++
> -I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
> -I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source
> -I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
> -c
> /Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source/cmFindProgramCommand.cxx:16,
> > from
> /Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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
> > -
> > Log of errors:
> /Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk/cmake_bootstrap.log
> >
> >
> > --
> >
> > 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
> --
>
> 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
-- 

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
CM

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

2015-10-01 Thread David Cole via CMake
The "-1" bz2 files are for Cygwin...

Try the plain old .tar.gz instead.


David

> On Oct 1, 2015, at 7:51 PM, Damian Rouson  
> wrote:
> 
> All,
> 
> Could someone advise me on building CMake from source on OS X 10.10.5 
> (Yosemite)?  At the bottom of this email is the tail of the output from the 
> following build script: 
> 
> #!/bin/bash
> version=3.3
> wget http://www.cmake.org/files/v$version/cmake-$version.0-1-src.tar.bz2 &&
> tar xvjf cmake-$version.0-1-src.tar.bz2 &&
> tar xvjf cmake-$version.0.tar.bz2 &&
> cd cmake-$version.0  &&
> ./bootstrap --prefix=${PWD} >&1 | tee build.log
> 
> An identical script completes successfully on Linux (Lubuntu).   The complete 
> output of the above script in the “build.log” file at 
> https://github.com/sourceryinstitute/AdHoc/tree/master/src/cmake/bug-.  A 
> link to the resulting “cmake_bootstrap.log” file is on the same page. 
> 
> I get the same error with CMake 3.2.3 and have reported this behavior in 
> CMake bug report 0015762 (https://cmake.org/Bug/view.php?id=15762).
> 
> 
> 
> Damian Rouson, Ph.D., P.E.
> President, Sourcery Institute
> http://www.sourceryinstitute.org
> +1-510-600-2992 (mobile)
> 
> 
> 
> 
> g++ 
> -I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
>  
> -I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source
>  
> -I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
>  -c 
> /Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source/cmFindProgramCommand.cxx:16,
> from 
> /Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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
> -
> Log of errors: 
> /Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk/cmake_bootstrap.log
> 
> 
> -- 
> 
> 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
-- 

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

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

2015-10-01 Thread Damian Rouson
All,

Could someone advise me on building CMake from source on OS X 10.10.5 
(Yosemite)?  At the bottom of this email is the tail of the output from the 
following build script: 

#!/bin/bash
version=3.3
wget http://www.cmake.org/files/v$version/cmake-$version.0-1-src.tar.bz2 &&
tar xvjf cmake-$version.0-1-src.tar.bz2 &&
tar xvjf cmake-$version.0.tar.bz2 &&
cd cmake-$version.0  &&
./bootstrap --prefix=${PWD} >&1 | tee build.log

An identical script completes successfully on Linux (Lubuntu).   The complete 
output of the above script in the “build.log” file at 
https://github.com/sourceryinstitute/AdHoc/tree/master/src/cmake/bug-.  A 
link to the resulting “cmake_bootstrap.log” file is on the same page. 

I get the same error with CMake 3.2.3 and have reported this behavior in CMake 
bug report 0015762 (https://cmake.org/Bug/view.php?id=15762).



Damian Rouson, Ph.D., P.E.
President, Sourcery Institute
http://www.sourceryinstitute.org
+1-510-600-2992 (mobile)




g++ 
-I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
 
-I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source
 
-I/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk
 -c 
/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Source/cmFindProgramCommand.cxx:16,
 from 
/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/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
-
Log of errors: 
/Users/rouson/Code/sourceryinstitute/AdHoc/src/cmake/bug-/cmake-3.3.0/Bootstrap.cmk/cmake_bootstrap.log


-- 

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