Skip to content

cmake fails to build on macOS Sierra with [email protected] #1847

@davydden

Description

@davydden

subj, during bootstrap(*options). In Spack logs:

In file included from /usr/include/Availability.h:176:0,
                 from /usr/include/inttypes.h:224,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Utilities/KWIML/include/kwiml/int.h:194,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Utilities/cm_kwiml.h:22,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/cmStandardIncludes.h:34,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/cmObject.h:15,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/cmCommand.h:15,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/cmAddCustomCommandCommand.h:15,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/cmAddCustomCommandCommand.cxx:12,
                 from /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/cmBootstrapCommands1.cxx:16:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: ‘introduced’ was not declared in this scope
     kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),

and in boostraping logs:

/private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/kwsys/kwsysPlatformTestsCXX.cxx: In function ‘int main()’:
/private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/kwsys/kwsysPlatformTestsCXX.cxx:189:13: error: ‘environ’ was not declared in this scope
   char* e = environ[0];
             ^~~~~~~
Test failed to compile
Try: /Users/davydden/spack/lib/spack/env/gcc/g++
Line: /Users/davydden/spack/lib/spack/env/gcc/g++  -DTEST_KWSYS_STL_HAS_WSTRING /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-nz7Rvi/cmake-3.6.1/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_15628_test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions