Skip to content
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

SPIRV-Tools-toolsTargets.cmake references spirv-objdump but the file does not exist #5742

Closed
maarquitos14 opened this issue Jul 19, 2024 · 4 comments
Assignees

Comments

@maarquitos14
Copy link

I have recently downloaded [vulkansdk-linux-x86_64-1.3.283.0.tar.xz](https://sdk.lunarg.com/sdk/download/1.3.283.0/linux/vulkansdk-linux-x86_64-1.3.283.0.tar.xz). After that, I added the installation prefix to CMAKE_PREFIX_PATH and tried to build https://github.com/KhronosGroup/SPIRV-LLVM-Translator.

export CMAKE_PREFIX_PATH=$PREFIX/vulkansdk/1.3.283.0/x86_64/
git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator
cd SPIRV-LLVM-Translator
mkdir build
cd build
cmake ..

However, this failed with the error message below:

-- Checking for one of the modules 'SPIRV-Tools'
CMake Error at $PREFIX/vulkansdk/1.3.283.0/x86_64/lib/cmake/SPIRV-Tools-tools/SPIRV-Tools-toolsTargets.cmake:100 (message):
  The imported target "spirv-objdump" references the file

     "$PREFIX/vulkansdk/1.3.283.0/x86_64/bin/spirv-objdump"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "$PREFIX/vulkansdk/1.3.283.0/x86_64/lib/cmake/SPIRV-Tools-tools/SPIRV-Tools-toolsTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  $PREFIX/vulkansdk/1.3.283.0/x86_64/lib/cmake/SPIRV-Tools-tools/SPIRV-Tools-toolsConfig.cmake:3 (include)
  CMakeLists.txt:120 (find_package)


-- Configuring incomplete, errors occurred!

I checked and indeed SPIRV-Tools-toolsTargets.cmake contains references to spirv-objdump but the binary is not present. Has the binary been removed from the release but the cmake file wasn't updated accordingly? Or should the binary exist?

@maarquitos14
Copy link
Author

I have also opened the issue in VulkanTools repo (LunarG/VulkanTools#2058). Feel free to close any of them it if it's not the right place.

@maarquitos14
Copy link
Author

Also, removing all the occurrences of spirv-objdump in both SPIRV-Tools-toolsTargets.cmake and SPIRV-Tools-toolsTargets-release.cmake solves the issue.

@s-perron
Copy link
Collaborator

The problem is that the VulkanSDK does not include spirv-objdump in the SDK. We added this tools last year. I'll let LunarG know about this, and see what they want to do about it. I don't know if they'll want to change the SDK or try to do something with the cmake file.

@jeremyg-lunarg
Copy link
Contributor

Off-github discussion concluded that this was an Vulkan SDK problem and it is being tracked as an issue there.

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

3 participants