-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
libc++.so.1 and libc++abi.so.1 not found in latest apt package for LLVM 18 #99017
Comments
It looks like the packages are now using the linker script. @sylvestre What kind of testing do the apt packages go through? It seems like they get broken quite a bit. Would it make sense to control how they are built from the LLVM monorepo instead? We keep getting bug reports that we can't do anything about because the packages are not controlled by us. |
yeah, i run two set of integration/packaging tests I think this regression is that previously built binaries were looking for libraries in LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON (#96210) |
Thanks for the pointers. Do you actually run the libc++ test suite itself against the generated package? That could replace a good amount of your ad-hoc testing, since we have over 10 000 tests that would almost certainly find the kind of issues folks ran into above. |
Hm, I did actually try to run my whole build pipeline already with all caches cleaned etc, didn't help. For context, the pipeline compiles the protobuf compiler from source and then as one of the build steps it tries to run it on some other input files. This was the step where it crashed with the message I posted. |
I have the same issue here: https://github.com/mpusz/mp-units/actions/runs/9930500562/job/27508441029. |
From the source tree, yes
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-18&arch=amd64&ver=1%3A18.1.8-3&stamp=1721060178&raw=0 But not against the generated packages (too hard, too complex) I guess the error is: Do you have some step to reproduce ? |
My feeling is that reproducing it should be as easy as spinning up some e.g. Ubuntu docker, installing the latest package and then compiling and running something with |
Indeed, I can reproduce with:
|
I think it is now fixed on apt.llvm.org |
Thanks for fixing this so quickly! Can't test it yet because there was only an update for llvm 19 available at this time, not for 18, but I assume that's just some apt stuff that makes it take a little while to be available. |
@sylvestre I am still hitting the same issue on Ubuntu 22.04. I could reproduce by changing the
|
@michael-jabbour-sonarsource yeah, i only triggered the debian builds, just did for ubuntu |
Thank you very much for the quick response and the fix. I can confirm it is working now on Ubuntu. |
This morning I updated my llvm-18 packages to version
1:18.1.8~++20240714071213+3b5b5c1ec4a3-1~exp1~20240714191314.138
via apt.llvm.org and suddenly my binaries built against libc++ and libc++abi can't be executed anymore, stating thatlibc++.so.1
andlibc++abi.so.1
cannot be found. When I tried to find out what is going on, I saw that e.g./usr/lib/llvm-18/lib/libc++.so
is now a text file containing this line:INPUT(libc++.so.1 -lc++abi -lunwind)
. Not sure if this is related, but it certainly looks wrong.The text was updated successfully, but these errors were encountered: