Repository: spack/spack

Issue:
CMake 3.5.2 installation hangs on OS X 10.10.5 with gcc 6.1
# Summary

Log files are below. In testing #1202, I encountered errors in building CMake 3.5.2 with gcc 6.1 on OS X 10.10.5. 
# spack-build.out for CMake 3.5.2

```
==> './configure' '--prefix=/Users/oxberry1/spack/opt/spack/darwin-yosemite-x86_64/gcc-6.1.0/cmake-3.5.2-fd6id7lc6cb7vcljxnk2zbjijbbxujdy' '--parallel=4' '--' '-DCMAKE_USE_OPENSSL=ON'
---------------------------------------------
CMake 3.5.2, Copyright 2000-2016 Kitware, Inc.
C compiler on this system is: /Users/oxberry1/spack/lib/spack/env/gcc/gcc 
C++ compiler on this system is: /Users/oxberry1/spack/lib/spack/env/gcc/g++ 
Makefile processor on this system is: make
/Users/oxberry1/spack/lib/spack/env/gcc/g++ is GNU compiler
/Users/oxberry1/spack/lib/spack/env/gcc/g++ has setenv
/Users/oxberry1/spack/lib/spack/env/gcc/g++ has unsetenv
/Users/oxberry1/spack/lib/spack/env/gcc/g++ does not have environ in stdlib.h
/Users/oxberry1/spack/lib/spack/env/gcc/g++ has stl wstring
---------------------------------------------
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmake.cxx -o cmake.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmakemain.cxx -o cmakemain.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmcmd.cxx -o cmcmd.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCommandArgumentLexer.cxx -o cmCommandArgumentLexer.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCommandArgumentParser.cxx -o cmCommandArgumentParser.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCommandArgumentParserHelper.cxx -o cmCommandArgumentParserHelper.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCommonTargetGenerator.cxx -o cmCommonTargetGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCPackPropertiesGenerator.cxx -o cmCPackPropertiesGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmDefinitions.cxx -o cmDefinitions.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmDepends.cxx -o cmDepends.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmDependsC.cxx -o cmDependsC.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmDocumentationFormatter.cxx -o cmDocumentationFormatter.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmPolicies.cxx -o cmPolicies.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmProperty.cxx -o cmProperty.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmPropertyMap.cxx -o cmPropertyMap.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmPropertyDefinition.cxx -o cmPropertyDefinition.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmPropertyDefinitionMap.cxx -o cmPropertyDefinitionMap.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmMakefile.cxx -o cmMakefile.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExportBuildFileGenerator.cxx -o cmExportBuildFileGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExportFileGenerator.cxx -o cmExportFileGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExportInstallFileGenerator.cxx -o cmExportInstallFileGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExportTryCompileFileGenerator.cxx -o cmExportTryCompileFileGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExportSet.cxx -o cmExportSet.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExportSetMap.cxx -o cmExportSetMap.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmExternalMakefileProjectGenerator.cxx -o cmExternalMakefileProjectGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionEvaluationFile.cxx -o cmGeneratorExpressionEvaluationFile.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratedFileStream.cxx -o cmGeneratedFileStream.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorTarget.cxx -o cmGeneratorTarget.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionContext.cxx -o cmGeneratorExpressionContext.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionDAGChecker.cxx -o cmGeneratorExpressionDAGChecker.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionEvaluator.cxx -o cmGeneratorExpressionEvaluator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionLexer.cxx -o cmGeneratorExpressionLexer.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionNode.cxx -o cmGeneratorExpressionNode.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpressionParser.cxx -o cmGeneratorExpressionParser.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGeneratorExpression.cxx -o cmGeneratorExpression.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGlobalCommonGenerator.cxx -o cmGlobalCommonGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGlobalGenerator.cxx -o cmGlobalGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstallDirectoryGenerator.cxx -o cmInstallDirectoryGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmLocalCommonGenerator.cxx -o cmLocalCommonGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmLocalGenerator.cxx -o cmLocalGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstalledFile.cxx -o cmInstalledFile.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstallGenerator.cxx -o cmInstallGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstallExportGenerator.cxx -o cmInstallExportGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstallFilesGenerator.cxx -o cmInstallFilesGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstallScriptGenerator.cxx -o cmInstallScriptGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmInstallTargetGenerator.cxx -o cmInstallTargetGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmScriptGenerator.cxx -o cmScriptGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmSourceFile.cxx -o cmSourceFile.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmSourceFileLocation.cxx -o cmSourceFileLocation.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmState.cxx -o cmState.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmSystemTools.cxx -o cmSystemTools.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmTestGenerator.cxx -o cmTestGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmVersion.cxx -o cmVersion.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmFileTimeComparison.cxx -o cmFileTimeComparison.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmGlobalUnixMakefileGenerator3.cxx -o cmGlobalUnixMakefileGenerator3.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmLocalUnixMakefileGenerator3.cxx -o cmLocalUnixMakefileGenerator3.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmMakefileExecutableTargetGenerator.cxx -o cmMakefileExecutableTargetGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmMakefileLibraryTargetGenerator.cxx -o cmMakefileLibraryTargetGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmMakefileTargetGenerator.cxx -o cmMakefileTargetGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmMakefileUtilityTargetGenerator.cxx -o cmMakefileUtilityTargetGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmOutputConverter.cxx -o cmOutputConverter.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmOSXBundleGenerator.cxx -o cmOSXBundleGenerator.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmNewLineStyle.cxx -o cmNewLineStyle.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmBootstrapCommands1.cxx -o cmBootstrapCommands1.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmBootstrapCommands2.cxx -o cmBootstrapCommands2.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCommandsForBootstrap.cxx -o cmCommandsForBootstrap.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmTarget.cxx -o cmTarget.o
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmTest.cxx -o cmTest.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 /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmFindProgramCommand.cxx:16,
                 from /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/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);
   ^~~~~~~~~~~~~~~~
/Users/oxberry1/spack/lib/spack/env/gcc/g++  -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source   -I/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Utilities -c /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/cmCustomCommand.cxx -o cmCustomCommand.o
make: *** [cmBootstrapCommands1.o] Error 1
make: *** Waiting for unfinished jobs....
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
```
# cmake_bootstrap.log

```
Try: /Users/oxberry1/spack/lib/spack/env/gcc/gcc
Line: /Users/oxberry1/spack/lib/spack/env/gcc/gcc  cmake_bootstrap_71951_test.c -o cmake_bootstrap_71951_test
----------  file   -----------------------

#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d%c", (argv != 0), (char)0x0a);
  return argc-1;
}

------------------------------------------
1
Test succeeded
Try: /Users/oxberry1/spack/lib/spack/env/gcc/g++
Line: /Users/oxberry1/spack/lib/spack/env/gcc/g++  -DTEST1 cmake_bootstrap_71951_test.cxx -o cmake_bootstrap_71951_test
----------  file   -----------------------

#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
  NeedCXX() { this->Foo = 1; }
  int GetFoo() { return this->Foo; }
private:
  int Foo;
};
int main()
{
  NeedCXX c;
#ifdef TEST3
  cout << c.GetFoo() << endl;
#else
  std::cout << c.GetFoo() << std::endl;
#endif
  return 0;
}

------------------------------------------
1
Test succeeded
Try: gmake
/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/bootstrap: line 599: gmake: command not found
gmake does not work
Try: make
"/Users/oxberry1/spack/lib/spack/env/gcc/gcc"  -framework CoreFoundation  -o test test.c
1
make works
Try: /Users/oxberry1/spack/lib/spack/env/gcc/g++
Line: /Users/oxberry1/spack/lib/spack/env/gcc/g++  cmake_bootstrap_71951_test.cxx -o cmake_bootstrap_71951_test
----------  file   -----------------------

#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
#include <iostream>
int main() { std::cout << "This is GNU" << std::endl; return 0;}
#endif

------------------------------------------
This is GNU
Test succeeded
Try: /Users/oxberry1/spack/lib/spack/env/gcc/g++
Line: /Users/oxberry1/spack/lib/spack/env/gcc/g++  -DTEST_KWSYS_CXX_HAS_SETENV /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_71951_test
----------  file   -----------------------
/*============================================================================
  KWSys - Kitware System Library
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium

  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.

  This software is distributed WITHOUT ANY WARRANTY; without even the
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the License for more information.
============================================================================*/
#ifdef TEST_KWSYS_CXX_HAS_CSTDIO
#include <cstdio>
int main() { return 0; }
#endif

#ifdef TEST_KWSYS_CXX_HAS_LONG_LONG
long long f(long long n) { return n; }
int main()
{
  long long n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS___INT64
__int64 f(__int64 n) { return n; }
int main()
{
  __int64 n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtim.tv_sec;
  (void)stat1.st_mtim.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIMESPEC
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtimespec.tv_sec;
  (void)stat1.st_mtimespec.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_AND___INT64
void function(long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_LONG_AND___INT64
void function(long long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM_LONG_LONG
# include <iostream>
int test_istream(std::istream& is, long long& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM_LONG_LONG
# include <iostream>
int test_ostream(std::ostream& os, long long x)
{
  return (os << x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM___INT64
# include <iostream>
int test_istream(std::istream& is, __int64& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM___INT64
# include <iostream>
int test_ostream(std::ostream& os, __int64 x)
{
  return (os << x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_LFS_WORKS
/* Return 0 when LFS is available and 1 otherwise.  */
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _LARGE_FILES
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#if KWSYS_CXX_HAS_CSTDIO
# include <cstdio>
#endif
#include <stdio.h>

int main(int, char **argv)
{
  /* check that off_t can hold 2^63 - 1 and perform basic operations... */
#define OFF_T_64 (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  if (OFF_T_64 % 2147483647 != 1)
    return 1;

  // stat breaks on SCO OpenServer
  struct stat buf;
  stat( argv[0], &buf );
  if (!S_ISREG(buf.st_mode))
    return 2;

  FILE *file = fopen( argv[0], "r" );
  off_t offset = ftello( file );
  fseek( file, offset, SEEK_CUR );
  fclose( file );
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_SETENV
#include <stdlib.h>
int main()
{
  return setenv("A", "B", 1);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UNSETENV
#include <stdlib.h>
int main()
{
  unsetenv("A");
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H
#include <stdlib.h>
int main()
{
  char* e = environ[0];
  return e? 0:1;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_GETLOADAVG
// Match feature definitions from SystemInformation.cxx
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <stdlib.h>
int main()
{
  double loadavg[3] = { 0.0, 0.0, 0.0 };
  return getloadavg(loadavg, 3);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_RLIMIT64
# if defined(KWSYS_HAS_LFS)
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE
#  define _LARGE_FILES
#  define _FILE_OFFSET_BITS 64
# endif
# include <sys/resource.h>
int main()
{
  struct rlimit64 rlim;
  return getrlimit64(0,&rlim);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOLL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atoll(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atol(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS__ATOI64
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(_atoi64(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMES
#include <sys/time.h>
int main()
{
  struct timeval* current_time = 0;
  return utimes("/example", current_time);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
#include <fcntl.h>
#include <sys/stat.h>
int main()
{
  struct timespec times[2] = {{0,UTIME_OMIT},{0,UTIME_NOW}};
  return utimensat(AT_FDCWD, "/example", times, AT_SYMLINK_NOFOLLOW);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BACKTRACE
#if defined(__PATHSCALE__) || defined(__PATHCC__) \
  || (defined(__LSB_VERSION__) && (__LSB_VERSION__ < 41))
backtrace doesnt work with this compiler or os
#endif
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <execinfo.h>
int main()
{
  void *stackSymbols[256];
  backtrace(stackSymbols,256);
  backtrace_symbols(&stackSymbols[0],1);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_DLADDR
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <dlfcn.h>
int main()
{
  Dl_info info;
  int ierr=dladdr((void*)main,&info);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_CXXABI
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5130 \
     && __linux && __SUNPRO_CC_COMPAT == 'G'
#  include <iostream>
#endif
#include <cxxabi.h>
int main()
{
  int status = 0;
  size_t bufferLen = 512;
  char buffer[512] = {'\0'};
  const char *function="_ZN5kwsys17SystemInformation15GetProgramStackEii";
  char *demangledFunction =
    abi::__cxa_demangle(function, buffer, &bufferLen, &status);
  return status;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM
int main()
{
  int a = 1;
  __asm {
    xor EBX, EBX;
    mov a, EBX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM_CPUID
int main()
{
  int a = 0;
  __asm {
    xor EAX, EAX;
    cpuid;
    mov a, EAX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_STL_HAS_WSTRING
#include <string>
void f(std ::wstring*) {}
int main() { return 0; }
#endif
------------------------------------------
Test succeeded
Try: /Users/oxberry1/spack/lib/spack/env/gcc/g++
Line: /Users/oxberry1/spack/lib/spack/env/gcc/g++  -DTEST_KWSYS_CXX_HAS_UNSETENV /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_71951_test
----------  file   -----------------------
/*============================================================================
  KWSys - Kitware System Library
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium

  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.

  This software is distributed WITHOUT ANY WARRANTY; without even the
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the License for more information.
============================================================================*/
#ifdef TEST_KWSYS_CXX_HAS_CSTDIO
#include <cstdio>
int main() { return 0; }
#endif

#ifdef TEST_KWSYS_CXX_HAS_LONG_LONG
long long f(long long n) { return n; }
int main()
{
  long long n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS___INT64
__int64 f(__int64 n) { return n; }
int main()
{
  __int64 n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtim.tv_sec;
  (void)stat1.st_mtim.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIMESPEC
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtimespec.tv_sec;
  (void)stat1.st_mtimespec.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_AND___INT64
void function(long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_LONG_AND___INT64
void function(long long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM_LONG_LONG
# include <iostream>
int test_istream(std::istream& is, long long& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM_LONG_LONG
# include <iostream>
int test_ostream(std::ostream& os, long long x)
{
  return (os << x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM___INT64
# include <iostream>
int test_istream(std::istream& is, __int64& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM___INT64
# include <iostream>
int test_ostream(std::ostream& os, __int64 x)
{
  return (os << x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_LFS_WORKS
/* Return 0 when LFS is available and 1 otherwise.  */
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _LARGE_FILES
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#if KWSYS_CXX_HAS_CSTDIO
# include <cstdio>
#endif
#include <stdio.h>

int main(int, char **argv)
{
  /* check that off_t can hold 2^63 - 1 and perform basic operations... */
#define OFF_T_64 (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  if (OFF_T_64 % 2147483647 != 1)
    return 1;

  // stat breaks on SCO OpenServer
  struct stat buf;
  stat( argv[0], &buf );
  if (!S_ISREG(buf.st_mode))
    return 2;

  FILE *file = fopen( argv[0], "r" );
  off_t offset = ftello( file );
  fseek( file, offset, SEEK_CUR );
  fclose( file );
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_SETENV
#include <stdlib.h>
int main()
{
  return setenv("A", "B", 1);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UNSETENV
#include <stdlib.h>
int main()
{
  unsetenv("A");
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H
#include <stdlib.h>
int main()
{
  char* e = environ[0];
  return e? 0:1;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_GETLOADAVG
// Match feature definitions from SystemInformation.cxx
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <stdlib.h>
int main()
{
  double loadavg[3] = { 0.0, 0.0, 0.0 };
  return getloadavg(loadavg, 3);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_RLIMIT64
# if defined(KWSYS_HAS_LFS)
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE
#  define _LARGE_FILES
#  define _FILE_OFFSET_BITS 64
# endif
# include <sys/resource.h>
int main()
{
  struct rlimit64 rlim;
  return getrlimit64(0,&rlim);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOLL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atoll(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atol(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS__ATOI64
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(_atoi64(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMES
#include <sys/time.h>
int main()
{
  struct timeval* current_time = 0;
  return utimes("/example", current_time);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
#include <fcntl.h>
#include <sys/stat.h>
int main()
{
  struct timespec times[2] = {{0,UTIME_OMIT},{0,UTIME_NOW}};
  return utimensat(AT_FDCWD, "/example", times, AT_SYMLINK_NOFOLLOW);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BACKTRACE
#if defined(__PATHSCALE__) || defined(__PATHCC__) \
  || (defined(__LSB_VERSION__) && (__LSB_VERSION__ < 41))
backtrace doesnt work with this compiler or os
#endif
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <execinfo.h>
int main()
{
  void *stackSymbols[256];
  backtrace(stackSymbols,256);
  backtrace_symbols(&stackSymbols[0],1);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_DLADDR
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <dlfcn.h>
int main()
{
  Dl_info info;
  int ierr=dladdr((void*)main,&info);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_CXXABI
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5130 \
     && __linux && __SUNPRO_CC_COMPAT == 'G'
#  include <iostream>
#endif
#include <cxxabi.h>
int main()
{
  int status = 0;
  size_t bufferLen = 512;
  char buffer[512] = {'\0'};
  const char *function="_ZN5kwsys17SystemInformation15GetProgramStackEii";
  char *demangledFunction =
    abi::__cxa_demangle(function, buffer, &bufferLen, &status);
  return status;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM
int main()
{
  int a = 1;
  __asm {
    xor EBX, EBX;
    mov a, EBX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM_CPUID
int main()
{
  int a = 0;
  __asm {
    xor EAX, EAX;
    cpuid;
    mov a, EAX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_STL_HAS_WSTRING
#include <string>
void f(std ::wstring*) {}
int main() { return 0; }
#endif
------------------------------------------
Test succeeded
Try: /Users/oxberry1/spack/lib/spack/env/gcc/g++
Line: /Users/oxberry1/spack/lib/spack/env/gcc/g++  -DTEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_71951_test
----------  file   -----------------------
/*============================================================================
  KWSys - Kitware System Library
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium

  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.

  This software is distributed WITHOUT ANY WARRANTY; without even the
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the License for more information.
============================================================================*/
#ifdef TEST_KWSYS_CXX_HAS_CSTDIO
#include <cstdio>
int main() { return 0; }
#endif

#ifdef TEST_KWSYS_CXX_HAS_LONG_LONG
long long f(long long n) { return n; }
int main()
{
  long long n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS___INT64
__int64 f(__int64 n) { return n; }
int main()
{
  __int64 n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtim.tv_sec;
  (void)stat1.st_mtim.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIMESPEC
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtimespec.tv_sec;
  (void)stat1.st_mtimespec.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_AND___INT64
void function(long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_LONG_AND___INT64
void function(long long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM_LONG_LONG
# include <iostream>
int test_istream(std::istream& is, long long& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM_LONG_LONG
# include <iostream>
int test_ostream(std::ostream& os, long long x)
{
  return (os << x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM___INT64
# include <iostream>
int test_istream(std::istream& is, __int64& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM___INT64
# include <iostream>
int test_ostream(std::ostream& os, __int64 x)
{
  return (os << x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_LFS_WORKS
/* Return 0 when LFS is available and 1 otherwise.  */
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _LARGE_FILES
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#if KWSYS_CXX_HAS_CSTDIO
# include <cstdio>
#endif
#include <stdio.h>

int main(int, char **argv)
{
  /* check that off_t can hold 2^63 - 1 and perform basic operations... */
#define OFF_T_64 (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  if (OFF_T_64 % 2147483647 != 1)
    return 1;

  // stat breaks on SCO OpenServer
  struct stat buf;
  stat( argv[0], &buf );
  if (!S_ISREG(buf.st_mode))
    return 2;

  FILE *file = fopen( argv[0], "r" );
  off_t offset = ftello( file );
  fseek( file, offset, SEEK_CUR );
  fclose( file );
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_SETENV
#include <stdlib.h>
int main()
{
  return setenv("A", "B", 1);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UNSETENV
#include <stdlib.h>
int main()
{
  unsetenv("A");
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H
#include <stdlib.h>
int main()
{
  char* e = environ[0];
  return e? 0:1;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_GETLOADAVG
// Match feature definitions from SystemInformation.cxx
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <stdlib.h>
int main()
{
  double loadavg[3] = { 0.0, 0.0, 0.0 };
  return getloadavg(loadavg, 3);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_RLIMIT64
# if defined(KWSYS_HAS_LFS)
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE
#  define _LARGE_FILES
#  define _FILE_OFFSET_BITS 64
# endif
# include <sys/resource.h>
int main()
{
  struct rlimit64 rlim;
  return getrlimit64(0,&rlim);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOLL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atoll(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atol(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS__ATOI64
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(_atoi64(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMES
#include <sys/time.h>
int main()
{
  struct timeval* current_time = 0;
  return utimes("/example", current_time);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
#include <fcntl.h>
#include <sys/stat.h>
int main()
{
  struct timespec times[2] = {{0,UTIME_OMIT},{0,UTIME_NOW}};
  return utimensat(AT_FDCWD, "/example", times, AT_SYMLINK_NOFOLLOW);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BACKTRACE
#if defined(__PATHSCALE__) || defined(__PATHCC__) \
  || (defined(__LSB_VERSION__) && (__LSB_VERSION__ < 41))
backtrace doesnt work with this compiler or os
#endif
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <execinfo.h>
int main()
{
  void *stackSymbols[256];
  backtrace(stackSymbols,256);
  backtrace_symbols(&stackSymbols[0],1);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_DLADDR
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <dlfcn.h>
int main()
{
  Dl_info info;
  int ierr=dladdr((void*)main,&info);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_CXXABI
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5130 \
     && __linux && __SUNPRO_CC_COMPAT == 'G'
#  include <iostream>
#endif
#include <cxxabi.h>
int main()
{
  int status = 0;
  size_t bufferLen = 512;
  char buffer[512] = {'\0'};
  const char *function="_ZN5kwsys17SystemInformation15GetProgramStackEii";
  char *demangledFunction =
    abi::__cxa_demangle(function, buffer, &bufferLen, &status);
  return status;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM
int main()
{
  int a = 1;
  __asm {
    xor EBX, EBX;
    mov a, EBX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM_CPUID
int main()
{
  int a = 0;
  __asm {
    xor EAX, EAX;
    cpuid;
    mov a, EAX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_STL_HAS_WSTRING
#include <string>
void f(std ::wstring*) {}
int main() { return 0; }
#endif
------------------------------------------
/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/kwsys/kwsysPlatformTestsCXX.cxx: In function 'int main()':
/private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/kwsys/kwsysPlatformTestsCXX.cxx:189:13: error: 'environ' was not declared in this scope
   char* e = environ[0];
             ^~~~~~~
Test failed to compile
Try: /Users/oxberry1/spack/lib/spack/env/gcc/g++
Line: /Users/oxberry1/spack/lib/spack/env/gcc/g++  -DTEST_KWSYS_STL_HAS_WSTRING /private/var/folders/37/zqjg7vn97kggmzjdbcm55j6h001b24/T/oxberry1/spack-stage/spack-stage-CbNbDU/cmake-3.5.2/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_71951_test
----------  file   -----------------------
/*============================================================================
  KWSys - Kitware System Library
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium

  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.

  This software is distributed WITHOUT ANY WARRANTY; without even the
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the License for more information.
============================================================================*/
#ifdef TEST_KWSYS_CXX_HAS_CSTDIO
#include <cstdio>
int main() { return 0; }
#endif

#ifdef TEST_KWSYS_CXX_HAS_LONG_LONG
long long f(long long n) { return n; }
int main()
{
  long long n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS___INT64
__int64 f(__int64 n) { return n; }
int main()
{
  __int64 n = 0;
  return static_cast<int>(f(n));
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtim.tv_sec;
  (void)stat1.st_mtim.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIMESPEC
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main()
{
  struct stat stat1;
  (void)stat1.st_mtimespec.tv_sec;
  (void)stat1.st_mtimespec.tv_nsec;
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_AND___INT64
void function(long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_SAME_LONG_LONG_AND___INT64
void function(long long**) {}
int main()
{
  __int64** p = 0;
  function(p);
  return 0;
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM_LONG_LONG
# include <iostream>
int test_istream(std::istream& is, long long& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM_LONG_LONG
# include <iostream>
int test_ostream(std::ostream& os, long long x)
{
  return (os << x)? 1:0;
}
int main()
{
  long long x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_ISTREAM___INT64
# include <iostream>
int test_istream(std::istream& is, __int64& x)
{
  return (is >> x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_istream(std::cin, x);
}
#endif

#ifdef TEST_KWSYS_IOS_HAS_OSTREAM___INT64
# include <iostream>
int test_ostream(std::ostream& os, __int64 x)
{
  return (os << x)? 1:0;
}
int main()
{
  __int64 x = 0;
  return test_ostream(std::cout, x);
}
#endif

#ifdef TEST_KWSYS_LFS_WORKS
/* Return 0 when LFS is available and 1 otherwise.  */
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _LARGE_FILES
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#if KWSYS_CXX_HAS_CSTDIO
# include <cstdio>
#endif
#include <stdio.h>

int main(int, char **argv)
{
  /* check that off_t can hold 2^63 - 1 and perform basic operations... */
#define OFF_T_64 (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  if (OFF_T_64 % 2147483647 != 1)
    return 1;

  // stat breaks on SCO OpenServer
  struct stat buf;
  stat( argv[0], &buf );
  if (!S_ISREG(buf.st_mode))
    return 2;

  FILE *file = fopen( argv[0], "r" );
  off_t offset = ftello( file );
  fseek( file, offset, SEEK_CUR );
  fclose( file );
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_SETENV
#include <stdlib.h>
int main()
{
  return setenv("A", "B", 1);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UNSETENV
#include <stdlib.h>
int main()
{
  unsetenv("A");
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H
#include <stdlib.h>
int main()
{
  char* e = environ[0];
  return e? 0:1;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_GETLOADAVG
// Match feature definitions from SystemInformation.cxx
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <stdlib.h>
int main()
{
  double loadavg[3] = { 0.0, 0.0, 0.0 };
  return getloadavg(loadavg, 3);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_RLIMIT64
# if defined(KWSYS_HAS_LFS)
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE
#  define _LARGE_FILES
#  define _FILE_OFFSET_BITS 64
# endif
# include <sys/resource.h>
int main()
{
  struct rlimit64 rlim;
  return getrlimit64(0,&rlim);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOLL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atoll(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_ATOL
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(atol(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS__ATOI64
#include <stdlib.h>
int main()
{
  const char *str="1024";
  return static_cast<int>(_atoi64(str));
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMES
#include <sys/time.h>
int main()
{
  struct timeval* current_time = 0;
  return utimes("/example", current_time);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
#include <fcntl.h>
#include <sys/stat.h>
int main()
{
  struct timespec times[2] = {{0,UTIME_OMIT},{0,UTIME_NOW}};
  return utimensat(AT_FDCWD, "/example", times, AT_SYMLINK_NOFOLLOW);
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BACKTRACE
#if defined(__PATHSCALE__) || defined(__PATHCC__) \
  || (defined(__LSB_VERSION__) && (__LSB_VERSION__ < 41))
backtrace doesnt work with this compiler or os
#endif
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <execinfo.h>
int main()
{
  void *stackSymbols[256];
  backtrace(stackSymbols,256);
  backtrace_symbols(&stackSymbols[0],1);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_DLADDR
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#include <dlfcn.h>
int main()
{
  Dl_info info;
  int ierr=dladdr((void*)main,&info);
  return 0;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_CXXABI
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5130 \
     && __linux && __SUNPRO_CC_COMPAT == 'G'
#  include <iostream>
#endif
#include <cxxabi.h>
int main()
{
  int status = 0;
  size_t bufferLen = 512;
  char buffer[512] = {'\0'};
  const char *function="_ZN5kwsys17SystemInformation15GetProgramStackEii";
  char *demangledFunction =
    abi::__cxa_demangle(function, buffer, &bufferLen, &status);
  return status;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM
int main()
{
  int a = 1;
  __asm {
    xor EBX, EBX;
    mov a, EBX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM_CPUID
int main()
{
  int a = 0;
  __asm {
    xor EAX, EAX;
    cpuid;
    mov a, EAX;
  }

  return a;
}
#endif

#ifdef TEST_KWSYS_STL_HAS_WSTRING
#include <string>
void f(std ::wstring*) {}
int main() { return 0; }
#endif
------------------------------------------
Test succeeded
```



Discussion:
Does 3.6.0 work? If so we can just add it to the CMake package. I've ran into a few packages that don't work with the latest GCC compiler's default flags. Some provide patches, some don't.

IIRC I have Cmake 3.5.2. build fine with gcc 6.1. under Linux. I also googled and did not find any opened issues related to CMake+GCC 6.1

@adamjstewart 3.6.0 does not work with gcc on OS X 10.10.5 either. I get what looks like the same error; spack hangs in the configure stage. I'm going to try with clang instead and see how it goes. A great thing about spack is that it's easy to work around some of these issues due to the variety of compiler, library, and version options it supports. A challenging thing in writing the occasional package is that sometimes the defaults seem opaque because I don't understand how spec concretization precedence order works, and I have to look into setting more sensible defaults in my spack setup to avoid friction in package development (e.g., this gcc breakage with CMake; LAPACK defaulting to ATLAS, which spends a great deal of time in performance autotuning and lengthens the package development cycle).

Seems to build fine with AppleClang-7.0.2, so...beats me as to what the problem is.

build fine for me on osx with gcc 6.1.

```
==> Successfully installed cmake
  Fetch: 38.38s.  Build: 10m 52.76s.  Total: 11m 31.14s.
[+] /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/gcc-6.1.0/cmake-3.5.2-kqty6oixutnx6brcowr2q5maxlr3mahx
```

on el capitan `10.11.5`.

also don't see any special treatment of cmake in [homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/cmake.rb). Maybe something is wrong with your gcc?

Homebrew assumes the system compiler, i.e. clang, right?  So it wouldn't hit this.

This is an instance of [this issue](http://hamelot.io/programming/osx-gcc-dispatch_block_t-has-not-been-declared-invalid-typedef/), which is a problem with Yosemite's headers.  That's nasty because it's going to affect a lot of packages.

I think we can fix this by installing a patched `object.h` with `gcc` on OS X.  That probably won't fix things for an external `gcc` but it would at least provide a workaround when using a spack-built `gcc`.

> Homebrew assumes the system compiler, i.e. clang, right? So it wouldn't hit this.

IIRC there are some un-documented flags to use gcc for c/cxx as well. I could be wrong though. Looking at homebrew's [gcc](https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcc.rb), i did not spot any related patches.

Yeah I looked at that too.  [Here](https://github.com/hashdist/hashstack/pull/771/files) is the patch `hashdist` uses for `gcc`.

Interesting. One could probably do that for yosemite and below.


Resolving patch:
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -3,6 +3,7 @@
 from contextlib import closing
 from glob import glob
 import sys
+from os.path import isfile
 
 
 class Gcc(Package):
@@ -68,6 +69,19 @@ def install(self, spec, prefix):
         if spec.satisfies("@4.7.1:") and sys.platform != 'darwin':
             enabled_languages.add('go')
 
+        # Fix a standard header file for OS X Yosemite that
+        # is GCC incompatible by replacing non-GCC compliant macros
+        if 'yosemite' in spec.architecture:
+            if isfile(r'/usr/include/dispatch/object.h'):
+                new_dispatch_dir = join_path(prefix, 'include', 'dispatch')
+                mkdirp(new_dispatch_dir)
+                cp = which('cp')
+                new_header = join_path(new_dispatch_dir, 'object.h')
+                cp(r'/usr/include/dispatch/object.h', new_header)
+                filter_file(r'typedef void \(\^dispatch_block_t\)\(void\)',
+                            'typedef void* dispatch_block_t',
+                            new_header)
+
         # Generic options to compile GCC
         options = ["--prefix=%s" % prefix, "--libdir=%s/lib64" % prefix,
                    "--disable-multilib",


Test patch: