-
Notifications
You must be signed in to change notification settings - Fork 63
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
Failed to install libopencl-clang.so.14 with CMAKE_INSTALL_LIBDIR error #547
Comments
The warning showing above is probably related to llvm-ar because it is in call stack: How can we reproduce the install error of libopencl-clang? Could you please provide the build step? |
@wenju-he the easiest would be to follow-up the HOWTO setup a build environment. Details are available on our project front page https://github.com/SynoCommunity/spksrc to get yourself our docker container. Once setup you need to clone my Once setup, from the root of the
This will:
Everything is cross-compiled against the synology build toolchain (it supports many arch from arm, ppc to x64). Working directory will be under
|
thank you @th0ma7 for the detailed steps. I reproduced the fail locally:
|
The install script is executed successfully, it is just that libopencl-clang.so isn't installed. |
Please note many other components, e.g. libLLVMSPIRVLib.a, are also not installed. Folder work-x64-7.1/install/usr/local/opencl-clang/lib only contains a subset of libraries in the build folder work-x64-7.1/opencl-clang.build/lib |
@th0ma7 the root cause is probably that
Use of the option will stop installing of component libraries, where libopencl-clang.so belongs. I tried to removed the option from step
|
Thnx for your time, this is really much appreciated! |
I'm maintaining the ffmpeg package for the SynoCommunity and trying to enable
--opencl
for intel based CPU on Synology NAS. I am now able to build intel-opencl-clang using LLVM 14.0.5 with proper140
depencies (thnx to #539 and #545). My on-going PR is SynoCommunity/spksrc#6166Although after completing the build process (i.e. and getting to this point):
I then proceed with the installation and it warns of it inhability to do so with the following msg:
However process continues and complete the installation of the remaining
llvm
,spirv
andclang
where all libraries and binaries are installed appropriately. So I tried enforcingCMAKE_INSTALL_LIBDIR
with no change, error still occurs, failing to install the resultinglibopencl-clang.so.14
.Also note that I do also pass
-Wno-dev
to the build process but from the message it wasn't taken into account neither.Full build log available here build-x64-7.1.log
The text was updated successfully, but these errors were encountered: