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
Test error in 533/960 when compiling with LLVM/Clang-14 and using LLD-14 as linker #21847
Comments
Hmm, and what does it say if you just execute |
|
Hm, the |
Please note that LLD triggers this bug, if I use GOLD as the linker instead, the build finishes correctly with LLVM/Clang. |
This assert is designed to catch issues where not both ordered and unordered tests are run. Considering that it works with clang-13/lld-13 (with and without lto) or if you switch to gold, I would say it's a compiler/linker regression. |
@medhefgo I've never stated that it worked with LLVM/Clang/LLD-13, I've just tested it with the distribution supplied LLVM/Clang-13 and LLD-13, it shows the same results, the same error appears for that test case. I've also downgraded my GCC to the distribution provided one (11.1.0). |
I was saying it works on our ci with clang-13. I also cannot reproduce this with clang-14 in a ubuntu vm. So there must be something about your setup. |
Found the cause: Something about This would have previously been caught by |
sounds like something we need to fix before release? |
This is caused by |
Pinging @MaskRay who can provide insights from the LLD side. |
You can compare the output of The code should use relocations to indicate the section dependency relatioinship, not relying on the linker automatically remaining all C identifier name sections. The latter has some downside for metadata users (https://maskray.me/blog/2021-01-31-metadata-sections-comdat-and-shf-link-order |
The linker may remove sections that are actually used when "--gc-sections" and "-z start-stop-gc" is set. Add the `retain` attribute to prevent that. Furthermore, fix the alignment for `pwtest_suite_decl` objects. See: #2292 See: https://lld.llvm.org/ELF/start-stop-gc.html See: systemd/systemd#21847 See: systemd/systemd#21855
The linker may remove sections that are actually used when "--gc-sections" and "-z start-stop-gc" is set. Add the `retain` attribute to prevent that. See: https://lld.llvm.org/ELF/start-stop-gc.html See: systemd/systemd#21847 See: systemd/systemd#21855
systemd version the issue has been seen with
Used distribution
Linux kernel version used (
uname -a
)CPU architecture issue was seen on
Expected behaviour you didn't see
Unexpected behaviour you saw
Steps to reproduce the problem
Additional program output to the terminal or log subsystem illustrating the issue
meson-log.txt
testlog.txt
The text was updated successfully, but these errors were encountered: