-
Notifications
You must be signed in to change notification settings - Fork 18
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 issues (various): automatic configuration? #1
Comments
APPEND_CLANG_LIB order that worked for me:
|
timmah
added a commit
that referenced
this issue
Oct 19, 2017
Thank you for your comments. I think llvm-config is the solution. I am overdue for a clang-5 branch; I will try it there. In the meantime, I am adding a link to your comments above to the README. Thanks again. |
With the Clang-6 branch, this seems to be building cleanly on Ubuntu, mainly using LLVM's cmake modules. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First: Thanks for sharing great examples: I'm going through these and trying to get hands on experience with using clang refactoring tools. I had to spend several days trying to get CoARCT to build correctly on my local virtual machine (ubuntu 17.04/16.04 - used both), clang/llvm 4.0 package installations (not local builds, though I tried both to get the build working), boost and google test (packages, not local builds).
The summary of changes I had to do to get things working on my machine were:
set(CMAKE_CXX_STANDARD 14
, as theCMAKE_CXX_FLAGS(... -std=c++14...)
currently in the CMakeLists.txt did not seem to work-pthread
option to CMAKE_CXX_FLAGS-search_paths_first
flag from LLVM_LDFLAGS - while my binaries were linking correctly, they were segfaulting as soon as they ran, and gdb was not giving me any meaningful callstack. The error ld had been giving me had been:/usr/bin/ld: warning: cannot find entry symbol 'arch_paths_first'
. As soon as I got rid of this flag: I was able to get the error to go away, and my binaries no longer segfaulted.I did have to go on a bit of a wild goose chase looking into -frtti vs -fnortti flags, a my initial searches for the link errors (symbol not found) pointed towards these flags. Later, I found it was just the linkline order that was the cause.
I wasn't sure of how to list out the various issues I ran into and had to address to get my build to run, but I wanted to let you know of these. I'm pretty unfamiliar with both cmake and clang as of now, so I just wanted to point out what I ran into. In the long run, I think it might also be a good idea to somehow leverage llvm-configure, no? Once again, thanks for the code: I'm finally able to slowly go through it and play around :)!
The text was updated successfully, but these errors were encountered: