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

Build on Alpine Linux fails due to missing -lexecinfo #331

Open
krupenik opened this issue Jun 20, 2020 · 6 comments
Open

Build on Alpine Linux fails due to missing -lexecinfo #331

krupenik opened this issue Jun 20, 2020 · 6 comments
Labels
build issue distro Distribution specific questions

Comments

@krupenik
Copy link

[ 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: #330

@Odianosen25
Copy link

@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

@krupenik
Copy link
Author

krupenik commented Jul 5, 2020

@Odianosen25
Copy link

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

@krupenik
Copy link
Author

krupenik commented Jul 7, 2020

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

@JablonskiMateusz
Copy link
Contributor

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

@krupenik
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue distro Distribution specific questions
Projects
None yet
Development

No branches or pull requests

5 participants