Skip to content

Building MoltenVK 1.2.8 and 1.2.9 targeting macOS 10.13 results in binary partially built for macOS 10.15 #2443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jcm93 opened this issue Feb 11, 2025 · 4 comments

Comments

@jcm93
Copy link

jcm93 commented Feb 11, 2025

Repro steps:

git clone https://github.com/KhronosGroup/MoltenVK && cd MoltenVK
git checkout v1.2.9
export MACOSX_DEPLOYMENT_TARGET=10.13
./fetchDependencies --macos
xcodebuild build -project MoltenVKPackaging.xcodeproj \
    -scheme "MoltenVK Package (macOS only)" \
    -configuration "Release" 2>&1  | xcbeautify

This results in the following litany of linker warnings:

moltenvk.rtf.zip

Sample:

⚠️  ld: object file (/Users/me/Library/Developer/Xcode/DerivedData/MoltenVKPackaging-cxubsqoxtewmnbhgofkvsbxpkurk/Build/Products/Release/libMoltenVKShaderConverter.a(FileSupport.o)) was built for newer macOS version (10.15) than being linked (10.13)
ld: warning: object file (/Users/me/Library/Developer/Xcode/DerivedData/MoltenVKPackaging-cxubsqoxtewmnbhgofkvsbxpkurk/Build/Products/Release/libMoltenVKShaderConverter.a(GLSLConversion.o)) was built for newer macOS version (10.15) than being linked (10.13)
ld: warning: object file (/Users/me/Library/Developer/Xcode/DerivedData/MoltenVKPackaging-cxubsqoxtewmnbhgofkvsbxpkurk/Build/Products/Release/libMoltenVKShaderConverter.a(GLSLToSPIRVConverter.o)) was built for newer macOS version (10.15) than being linked (10.13)

I cannot tell here if the binary produced will actually run on macOS 10.13 and I am reluctant to try to depend on it working. It seems like one of the MoltenVKShaderConverter dependencies (glslang, SPIRVTools, SPIRVCross) doesn't respect MACOSX_DEPLOYMENT_TARGET when building, and the ./fetchDependencies script doesn't seem to provide facilities for setting the minimum deployment target either.

@jcm93
Copy link
Author

jcm93 commented Feb 12, 2025

ares-emulator/ares#1827 (comment)

Can confirm here that MoltenVK 1.2.9 (built on macOS 13 with Xcode 14.0 targeting macOS 10.13) crashes at runtime on macOS 10.14.6.

@squidbus
Copy link
Collaborator

Looking back at the history I don’t think 1.2.9 actually supports that OS version, the comment here indicates that the documentation was just late in being updated: #2240 (comment)

@jcm93
Copy link
Author

jcm93 commented Feb 13, 2025

That seems to be correct. 1.2.8 also seems to have the same issue; 1.2.7 seems to be the latest version that can actually target 10.13.

@jcm93 jcm93 changed the title Building MoltenVK 1.2.9 targeting macOS 10.13 results in binary partially built for macOS 10.15 Building MoltenVK 1.2.8 and 1.2.9 targeting macOS 10.13 results in binary partially built for macOS 10.15 Feb 13, 2025
@jcm93
Copy link
Author

jcm93 commented Feb 15, 2025

It also seems like 1.2.7 crashes at runtime on 10.14, at least when using ParaLLEl-RDP and converting certain SPIRV to MSL. The details are in the linked issue thread in the first comment. So 1.2.6 may indeed possibly be the last version that can meaningfully run on 10.13-10.14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants