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 / Clang library names have git in the filenames libclang.so.15.0.0git / libLTO.so.15git / libclang-cpp.so.15git / libRemarks.so.15git #53932
Comments
Still looking for assistance with this. If I build the 14 branch for example that does not put git in the filename it builds fine. |
I will take a look at this. |
Grep'ing around a bit to try and figure out where this comes from I came across... llvm/CMakeLists.txt
clang/tools/libclang
llvm/cmake/modules/AddLLVM.cmake
llvm/tools/llvm-config/CMakeLists.txt
and saw this commit on the 14 branch... 8d3c673 That fixes the generated library name via CMake. Including LLVM_VERSION_SUFFIX in the version string is fine if building this into a binary (.e.g. clang -v) but not for forming the shared library name and specifically the version part of the name. |
|
Is this a regression. I thought it was always like this? |
Please, how did you fix it ? I'm facing the same problem |
The diff I posted above eliminates the suffix from the created libraries / plugins.
|
I rarely do builds from git. Most of the time it is against releases plus patches or maybe release branches which have suffix disabled. But I honestly believe there was a time the tree built without me having to patch anything. |
@brad0 What does your link command look like? There are symlinks without the git suffix e.g. libLTO.so.15git |
OpenBSD doesn't handle shared libs quite in the same manner as other ELF OS's like FreeBSD/NetBSD/Linux/Solaris. libLTO.so -> libLTO.so.15 Is what is created minus the git suffix. The various libraries would have been crated with the git suffix if it were able to complete linking. OpenBSD doesn't use the .so sym-links. Nor would the old 13 ABI sym-link. |
@brad0 I don't follow this, what exactly does OpenBSD do differently? |
No symlinks for shared libraries. |
I can't seem to find how to get rid of the git bit at the end of the library name. This is breaking linking.
The text was updated successfully, but these errors were encountered: