-
Notifications
You must be signed in to change notification settings - Fork 5
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
32-bit AMDVLK compilation fails in gpurt #5
Comments
Building a 32-bit package is working fine for me with dxc 1.7.2207 (and seems to work for the official Ubuntu packages as well). Which dxc are you using? |
3 days old commit: microsoft/DirectXShaderCompiler@79856c4a7 |
Currently, we use 1.6.2 dxc version, we will verify more versions later. git clone --depth=1 -b release-1.6.2112 https://github.com/microsoft/DirectXShaderCompiler.git We did not meet any CMake bugs for dxc build. Also, you could install vulkan-sdk to get dxc tools if you use ubuntu system. |
Still reproducible with v2022.Q3.5 and dxc from release-1.6.2112 branch GIT 6f204c7. Build log attached |
Still reproducible with v2022.Q4.1 and dxc from release-1.7.2207 GIT e3f322389dadc5d5370bc8e17d3494a7909b6238. Build log attached |
Okay, the build failure was caused by LTO enabled in dxc + missing |
After encountering the same (?) issue in NixOS, it looks like
Can you try if compilation works for you with these dxc and amdvlk versions? |
No changes for me. |
In my case it builds fine with gcc-12 but with dxc 1.6.2112.
How you compile 1.7.2212.1 if it fails on linux due conflicting types in directx-headers? |
Ok, thanks for trying!
You only need the dxc binary, we don’t use directx-headers anywhere. |
I see that you checkout submodules too (which includes DirectX-Headers), so in fact headers are in use. But I'm puzzled why compilation doesn't fail in your case. Nevertheless, this is out of scope, maybe it's my local misconfiguration. |
For those who interested about directx-headers:
But commit |
I can confirm that everything works with dxc 1.7.2212.1 and amdvlk 2023.Q1.3 both for i586 and x86_64. |
After spending days working around DXC's cmake script bugs to satisfy gpurt's dependency in amdvlk, I managed to successfully make a 64-bit amdvlk package but not 32-bit due to persistent
too many elements in vector initialization
andif statement conditional expressions must evaluate to a scalar
errors: amdvlk_gpurt.logThe text was updated successfully, but these errors were encountered: