KhronosGroup / MoltenVK

MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
Apache License 2.0
4.65k stars 402 forks source link

./fetchDependencies --macos ** BUILD FAILED ** macOS - 10.15.7 #2053

Open Spacey-01 opened 8 months ago

Spacey-01 commented 8 months ago

./fetchDependencies --macos

========== Started building dependency libraries at 10:02:33 am ========== Please be patient on first build Building external libraries for platform macOS and destination macOS In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:106:25: error: 'get<const glslang::TIntermConstantUnion , const glslang::TIntermConstantUnion , const glslang::TType >' is unavailable: introduced in macOS 10.14 return std::get<const TIntermConstantUnion>(value); ^ In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../Prac/MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: In file included from .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:42: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/variant:1446:22: note: 'get<const glslang::TIntermConstantUnion , const glslang::TIntermConstantUnion , const glslang::TType >' has been explicitly marked unavailable here constexpr const _Tp& get(const variant<_Types...>& __v) { ^ In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:112:25: error: 'get<const glslang::TType , const glslang::TIntermConstantUnion , const glslang::TType >' is unavailable: introduced in macOS 10.14 return std::get<const TType>(value); ^ In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: In file included from .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:42: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/variant:1446:22: note: 'get<const glslang::TType , const glslang::TIntermConstantUnion , const glslang::TType >' has been explicitly marked unavailable here constexpr const _Tp& get(const variant<_Types...>& v) { ^ 2 errors generated. In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:106:25: error: 'get<const glslang::TIntermConstantUnion , const glslang::TIntermConstantUnion , const glslang::TType >' is unavailable: introduced in macOS 10.14 return std::get<const TIntermConstantUnion>(value); ^ In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: In file included from .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:42: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/variant:1446:22: note: 'get<const glslang::TIntermConstantUnion , const glslang::TIntermConstantUnion , const glslang::TType *>' has been explicitly marked unavailable here constexpr const _Tp& get(const variant<_Types...>& v) { ^ In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:112:25: error: 'get<const glslang::TType , const glslang::TIntermConstantUnion , const glslang::TType >' is unavailable: introduced in macOS 10.14 return std::get<const TType>(value); ^ In file included from .../MoltenVK/External/glslang/SPIRV/CInterface/spirv_c_interface.cpp:35: In file included from .../MoltenVK/External/glslang/SPIRV/GlslangToSpv.h:42: In file included from .../MoltenVK/External/glslang/SPIRV/SpvTools.h:50: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/localintermediate.h:42: In file included from .../MoltenVK/External/glslang/glslang/MachineIndependent/../Include/intermediate.h:57: In file included from .../MoltenVK/External/glslang/glslang/Include/../Include/Types.h:47: In file included from .../MoltenVK/External/glslang/glslang/Include/SpirvIntrinsics.h:42: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/variant:1446:22: note: 'get<const glslang::TType , const glslang::TIntermConstantUnion , const glslang::TType *>' has been explicitly marked unavailable here constexpr const _Tp& get(const variant<_Types...>& __v) { ^ 2 errors generated. note: Using new build system note: Building targets in parallel note: Planning build note: Using build description from disk BUILD FAILED

cdavis5e commented 8 months ago

You either need to:

Or, maybe we need to up the minimum OS version that glslang is built with.

Spacey-01 commented 8 months ago

Just went with an older SDK from LunarG

juan-lunarg commented 8 months ago

As of the 1.3.268 SDK the minimum MACOSX_DEPLOYMENT_TARGET is 11.0

If you look at the MacOS documentation under System Requirements you will see:

- The latest major version of macOS: Used to build all components in the SDK.
- Optionally, the last major version of macOS is by policy also supported. Current this is macOS versions 13 (Ventura) and 14 (Sonoma)

So yes your easiest option is to use an SDK older than 1.3.268