compute-runtime icon indicating copy to clipboard operation
compute-runtime copied to clipboard

Build on Alpine Linux fails due to missing `-lexecinfo`

Open krupenik opened this issue 5 years ago • 6 comments

[ 30%] Building CXX object opencl/test/unit_test/offline_compiler/CMakeFiles/ocloc_tests.dir/__/__/__/__/shared/offline_compiler/source/utilities/linux/get_current_dir_linux.cpp.o
[ 30%] Building CXX object opencl/test/unit_test/offline_compiler/CMakeFiles/ocloc_tests.dir/__/__/__/__/shared/source/os_interface/linux/os_thread_linux.cpp.o
[ 30%] Linking CXX executable ../../../../bin/ocloc_tests
/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: CMakeFiles/ocloc_tests.dir/__/__/__/__/shared/offline_compiler/source/utilities/linux/safety_caller_linux.cpp.o: in function `SafetyGuardLinux::sigAction(int, siginfo_t*, void*)':
safety_caller_linux.cpp:(.text._ZN16SafetyGuardLinux9sigActionEiP9siginfo_tPv[_ZN16SafetyGuardLinux9sigActionEiP9siginfo_tPv]+0x46): undefined reference to `backtrace'
/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: safety_caller_linux.cpp:(.text._ZN16SafetyGuardLinux9sigActionEiP9siginfo_tPv[_ZN16SafetyGuardLinux9sigActionEiP9siginfo_tPv]+0x5d): undefined reference to `backtrace_symbols'
collect2: error: ld returned 1 exit status
make[2]: *** [opencl/test/unit_test/offline_compiler/CMakeFiles/ocloc_tests.dir/build.make:795: bin/ocloc_tests] Error 1
make[2]: Leaving directory '/home/dennis/aports/testing/intel-compute-runtime/src/compute-runtime-20.23.16988/build'
make[1]: *** [CMakeFiles/Makefile2:9367: opencl/test/unit_test/offline_compiler/CMakeFiles/ocloc_tests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

PR: https://github.com/intel/compute-runtime/pull/330

krupenik avatar Jun 20 '20 00:06 krupenik

@krupenik,

Please can you help with the cmake command for compiling this on Alpine Linux? I wish to compile it within a docker environment so I can utilize it.

Regards

Odianosen25 avatar Jul 05 '20 09:07 Odianosen25

@Odianosen25 Please see https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/9623

krupenik avatar Jul 05 '20 14:07 krupenik

Hello @krupenik,

Thanks for this, but I know not how to install it from there. Besides it seems its still in development. I don't mind testing it as I need it asap. I know not how to use GitLab so if wanting to install it, what's the procedure like?

Thanks

Odianosen25 avatar Jul 05 '20 18:07 Odianosen25

@Odianosen25 best way to do it would be to grab the whole branch and add all those aports to your local tree

krupenik avatar Jul 07 '20 01:07 krupenik

It should be fixed by #330 - waiting for PR author

JablonskiMateusz avatar Jan 13 '23 07:01 JablonskiMateusz

Updated #330, but building openvino on Alpine these days is quite tricky due to llvm versions drift

krupenik avatar Jan 20 '23 06:01 krupenik