-
Notifications
You must be signed in to change notification settings - Fork 347
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
4.1.0: undefined reference to llvm::EngineBuilder::EngineBuilder ...)
#2649
Comments
This looks like particular to FreeBSD (or more probably how llvm was configured on FreeBSD). What is the output of |
$ llvm-config15 --components |
I tried to compile and link this code:
but it links fine. |
Weird. Two questions: |
The reason is in symbol name mismatch. The symbol exported from libLLVM-15.so is The symbol expected by llvm-cbindings.o is
It turned out that llvm15 is compiled partially with C++14, and partially with C++11. ghdl fails to compile with c++11. Does ghdl support more modern LLVM versions? |
Yes, I have tested at least llvm 14 and llvm 17. |
I figured out what was the problem: it was built using libLLVM-15.so by the mismatching clang++ compiler from llvm-18. Thank you for your help! |
Description
Link fails:
How to reproduce?
Regular build.
Context
Problem was discovered during build of the FreeBSD port cad/ghdl.
version
tarball_url
If a
GHDL Bug occurred
block is shown in the log, please paste it here:The text was updated successfully, but these errors were encountered: