-
Notifications
You must be signed in to change notification settings - Fork 38
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
LLVM-7.0.0 and LLVM-8.0.0 linking failures on gentoo #61
Comments
`diff -Naur c2ffi-8.0.0~/CMakeLists.txt c2ffi-8.0.0/CMakeLists.txt set(CMAKE_CXX_STANDARD 11)
set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin") |
github won't let me upload the patch, but simply reverting the change mentioned above fixes compilation for me. I just don't know if all libnames are included that are required, but so far there have been no errors during building. |
These auto-close now? In any case, the above should fix this; someone needs to modernize LLVM cmake. Let me know if you still have troubles. Still seems to build on arch fine; someone on ubuntu will have to comment there. |
Yes, thank you, 8.0.0 builds fine now on gentoo. |
Hey. Unfortunately I was getting linker errors (being unable to find -lclangFrontendTool and then -lLLVM) using 9.0.0 branch on Gentoo. Reverting to commit 9e49eb8 fixed the problem - built with no errors at all. |
Can you create a gist and link it here with the contents/list-of-files gentoo installs with your LLVM/Clang? |
Sure, here you go: |
Hi,
in 5.0.0 branch you specified
c2ffi/CMakeLists.txt
Line 21 in 91fb8ad
llvm_map_components_to_libnames(llvm_libs core support mcparser option bitreader profiledata)
message(STATUS "Using llvm libs: ${llvm_libs}")
and used these ${llvm_libs} in target_link_libraries
in 7.0.0 llvm_map_components has been removed and the target_link_libraries has been replaced by LLVM
c2ffi/CMakeLists.txt
Line 70 in b7fbea3
Same in 8.0.0. Both 7 and 8 now do no longer build on Gentoo because ld cannot find -lLLVM.
The text was updated successfully, but these errors were encountered: