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 #2058

Open
maarquitos14 opened this issue Jul 10, 2024 · 0 comments

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?

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

1 participant