spack: Installation of pocl fails
Summary
Installation of the package gearshifft fails due to issue in dependency pocl.
Issue
I tried installing the package using spack and I get this error :
>> 69 /usr/bin/ld: final link failed: Bad value
>> 70 collect2: error: ld returned 1 exit status
>> 71 gmake[1]: *** [cmTC_77038] Error 1
72 gmake[1]: Leaving directory `/tmp/sajid/spack-stage/spack-stage-adwwsb95/pocl-0.14/spack-build/CMakeFiles/CMakeTmp'
>> 73 gmake: *** [cmTC_77038/fast] Error 2
74
>> 75 CMake Error at cmake/LLVM.cmake:643 (message):
76 LLVM link test FAILED. This mostly happens when your LLVM installation
77 does not have all dependencies installed.
78 Call Stack (most recent call first):
79 CMakeLists.txt:225 (include)
80
81
Here is the relevant file : spack_build_output.txt
When I tried to install pocl as a stand alone package, I got this error :
==> Error: An unsatisfiable version constraint has been detected for spec:
llvm@5.0.1%gcc@7.3.0+all_targets build_type=Release +clang+compiler-rt+gold+internal_unwind+libcxx~link_dylib+lld+lldb+polly~python~shared_libs arch=linux-centos7-x86_64
while trying to concretize the partial spec:
pocl@0.14%gcc@7.3.0 build_type=RelWithDebInfo ~distro~icd arch=linux-centos7-x86_64
^cmake@3.10.2%gcc@7.3.0~doc+ncurses+openssl+ownlibs~qt arch=linux-centos7-x86_64
^ncurses@6.0%gcc@7.3.0~symlinks~termlib arch=linux-centos7-x86_64
^pkgconf@1.4.0%gcc@7.3.0 arch=linux-centos7-x86_64
^openssl@1.0.2n%gcc@7.3.0 arch=linux-centos7-x86_64
^zlib@1.2.11%gcc@7.3.0+optimize+pic+shared arch=linux-centos7-x86_64
^hwloc@1.11.8%gcc@7.3.0~cuda+libxml2+pci+shared arch=linux-centos7-x86_64
^libpciaccess
^libtool@2.4.6%gcc@7.3.0 arch=linux-centos7-x86_64
^m4@1.4.18%gcc@7.3.0+sigsegv arch=linux-centos7-x86_64
^libsigsegv
^util-macros
^libxml2
^xz
pocl requires llvm version 3.7:4.0, but spec asked for 5.0.1
Steps to reproduce the issue
$ ./spack install gearshifft (fist issue)
$ ./spack install pocl (second issue)
Information
- Platform : Linux x86-64, OS : CentOS 7.4
- I’ve been trying to do this in an isolated conda environment and don’t know if that’s causing an issue.
Tagging maintainer of the gearshifft package : @ax3l
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 18 (18 by maintainers)
I think this issue can be closed (as
pocl@1.4builds) and discussion of current bugs can move to https://github.com/spack/spack/issues/17049 and https://github.com/spack/spack/issues/17048pocl@1.4 installs just fine llvm@9.0.1 and gcc@8.3.0.
Regarding https://github.com/spack/spack/issues/7460#issuecomment-374507803:
Spack doesn’t actually accept ~
packages.yamlentries for~ virtual packages specified as externals (edit for clarity). A quick workaround would be if the system-provided opencl was in factpocl:(EDIT: added) you can go the route of the Spack
openglpackage, which is intended to represent system installations ofgl(and is always supposed to be handled by specifying an external).To clarify, the pthreads linkage is with gearshifft, not pocl. I should have a PR later today to update pocl and set appropriate dependencies on hwloc and llvm.
So, I discussed this issue with @wscullin this afternoon and he pointed out that there was an error with the CLang installer and that spack wasn’t installing the latest version of pocl@1.1 but was installing the old 0.14 version.
After fixing these issues, there still remains an issue of pthreads being wrongly linked and a temporary patch was unable to override this.
After updating spack, this is the error I get when i try to install pocl :
Here is the new error log spack-build.txt
@sajid-ali-nu can you try again (after updating spack) and report which errors still persist?
@sajid-ali-nu #7461 has been merged now. This should fix the second bug you reported, but not the original bug.