-
Notifications
You must be signed in to change notification settings - Fork 129
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
clang_delta fails to link against shared LLVM-6.0.1 #165
Comments
Hmm. I expect that sorting this out will take some thought. As you can see from the comment that you quoted, I'm not good at navigating LLVM's current linking practices! If you have a CMake recipe that works with all the ways that LLVM/Clang might be packaged into libs, please let me know. I will say that the current CMake file "worked for me" on all the systems I tested, with both pre-packaged and self-compiled LLVM trees. That included Ubuntu 14/16/18, CentOS 7, FreeBSD 10/11, and macOS 10.12. I did not try Gentoo. If your immediate goal is just to build C-Reduce, you might try the Autoconf-based build system. Also, FWIW, I generally test only with CC and CXX set to use compilers from the LLVM tree that I'm linking against. That's probably not relevant in this case, but I thought I'd mention it. |
Also, one might experiment with the following patch, suggested by @ismail in the comments for issue #147. If you apply this patch, I presume that you would also need to re-add
|
This patch doesn't work. My guess would be it's because |
I see one maybe similar issue for current creduce trunk:
|
Please any progress on this? |
No, we have not made progress on this. I am hopeful that this will be resolved as part of preparing the C-Reduce release for LLVM 7.0. I vaguely recall that there was some discussion about improving the LLVM infrastructure that third-party tools can use for linking against LLVM libraries—but perhaps I am misremembering. |
I'm going to close this issue, without resolution, because we're moving on to LLVM 7.0 and 8.0. It is still an issue with LLVM 7.0; see #189. |
My first though was that linkage to LLVM libraries is missing. Apparently, it is by design:
However, LLVM libraries don't get pulled implicitly for me, so it looks like the workaround for 'weird' systems is breaking normal systems.
Full log: dev-util:creduce-9999:20180716-080437.log
That's LLVM 6.0.1 on Gentoo. Let me know if you need extra data.
The text was updated successfully, but these errors were encountered: