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

10.0.0-2 fails to compile against SPIRV-LLVM-Translator 10.0.0 #148

Closed
tgurr opened this issue Jun 17, 2020 · 6 comments
Closed

10.0.0-2 fails to compile against SPIRV-LLVM-Translator 10.0.0 #148

tgurr opened this issue Jun 17, 2020 · 6 comments

Comments

@tgurr
Copy link

tgurr commented Jun 17, 2020

SPIRV-LLVM-Translator 10.0.0 is the latest released version which is missing KhronosGroup/SPIRV-LLVM-Translator@d9063e9.

[ 95%] Building CXX object CMakeFiles/opencl-clang.dir/common_clang.cpp.o
/usr/bin/x86_64-pc-linux-gnu-c++  -DCOMMON_CLANG_EXPORTS -DLIBCOMMON_CLANG_NAME=\"libopencl-clang.so.10\" -DUSE_PREBUILT_LLVM -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/x86_64-pc-linux-gnu/lib/include -I/usr/x86_64-pc-linux-gnu/lib/llvm/10/include -I/var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/build -I/var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/build/.  -march=native -O2 -pipe -fPIC     -std=gnu++14 -o CMakeFiles/opencl-clang.dir/common_clang.cpp.o -c /var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/opencl-clang-10.0.0-2/common_clang.cpp
/var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/opencl-clang-10.0.0-2/common_clang.cpp: In function 'int Compile(const char*, const char**, unsigned int, const char**, const char*, size_t, const char*, const char*, const char*, Intel::OpenCL::ClangFE::IOCLFEBinaryResult**)':
/var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/opencl-clang-10.0.0-2/common_clang.cpp:340:19: error: 'class SPIRV::TranslatorOpts' has no member named 'setMemToRegEnabled'
  340 |         SPIRVOpts.setMemToRegEnabled(true);
      |                   ^~~~~~~~~~~~~~~~~~

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =dev-libs/opencl-clang-10.0.0_p2:10::hardware --destination installed --replacing =dev-libs/opencl-clang-10.0.0_p1:10::installed --x-of-y 1 of 1:
  * When installing 'dev-libs/opencl-clang-10.0.0_p2:10::hardware' replacing { 'dev-libs/opencl-clang-10.0.0_p1:10::installed' }:
  * When running an ebuild command on 'dev-libs/opencl-clang-10.0.0_p2:10::hardware':
  * Install failed for 'dev-libs/opencl-clang-10.0.0_p2:10::hardware' (paludis::ActionFailedError)

make[2]: Leaving directory '/var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/build'
make[1]: Leaving directory '/var/tmp/paludis/build/dev-libs-opencl-clang-10.0.0_p2/work/build'
make[2]: *** [CMakeFiles/opencl-clang.dir/build.make:124: CMakeFiles/opencl-clang.dir/common_clang.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:202: CMakeFiles/opencl-clang.dir/all] Error 2
make: *** [Makefile:153: all] Error 2
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Jun 19, 2020
There is a newer upstream release, 10.0.0-2, but as of 2020-06-19 that
version fails to build against any official releases of
spirv-llvm-translator. See intel/opencl-clang#148
for details.

Signed-off-by: Marek Szuba <[email protected]>
NeddySeagoon pushed a commit to NeddySeagoon/gentoo-arm64 that referenced this issue Jun 19, 2020
There is a newer upstream release, 10.0.0-2, but as of 2020-06-19 that
version fails to build against any official releases of
spirv-llvm-translator. See intel/opencl-clang#148
for details.

Signed-off-by: Marek Szuba <[email protected]>
@boegel
Copy link

boegel commented Jun 30, 2020

@tgurr I'm running into the same problem...

How did you deal with this?

It seems like compute-runtime 20.25.17111 was built on top of opencl-clang 10.0.0-2 which in turn was built on top of an unreleased version of SPIRV-LLVM-Translator (which is 10.0.0 + 10 extra commits, see KhronosGroup/SPIRV-LLVM-Translator@v10.0.0...4d43f68)?

@tgurr
Copy link
Author

tgurr commented Jul 1, 2020

@boegel since there's not a proper new release of SPIRV-LLVM-Translator we're still at opencl-clang 10.0.0-1. I was quite busy so I haven't had time to update our compute-runtime yet, we're currently at 20.23.16988. Does the new compute-runtime fail to compile or on runtime? I've the impression that the versions are just a snapshot of what is current, but usually it works with older ones and/or stable releases. However my tests are very limited, I just run clinfo and clpeak to verify basic operation when bumping the packages. The whole situation with relying on git revisions instead of having proper dependencies and checks in the build system and proper releases for the components involved is a major pain in the a... and can even be extended to more software like shaderc, glslang, vulkan, ...

@boegel
Copy link

boegel commented Jul 1, 2020

@tgurr I'm running into issues with both opencl-clang 10.0.0-1 and 10.0.0-2 (when I use the right SPIRV-LLVM-Translator commit for the latter), which I reported in #156

@eero-t
Copy link

eero-t commented Oct 10, 2022

This issue is over 2 years old. I assume it can be closed?

@tgurr
Copy link
Author

tgurr commented Oct 10, 2022

This issue is over 2 years old. I assume it can be closed?

Fine for me, closing.

@tgurr tgurr closed this as completed Oct 10, 2022
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