Summary: | sys-devel/llvm-11.0.1 fails tests when compiled with clang | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | jstein, mgorny, unhappy-ending |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=779592 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | llvm-11.0.1:20210301-095647.log.gz |
Description
Paolo Pedroni
2021-03-01 11:08:19 UTC
What's your current libc++ version? Could you try installing the new one (with 'untested' LLVM) and then trying to rebuild LLVM with tests? (In reply to Michał Górny from comment #1) > What's your current libc++ version? Could you try installing the new one > (with 'untested' LLVM) and then trying to rebuild LLVM with tests? $ equery l libcxx * Searching for libcxx ... [IP-] [ ] sys-libs/libcxx-11.0.1:0 $ equery l libcxx -p * Searching for libcxx ... [-P-] [ ] sys-libs/libcxx-9.0.1:0 [-P-] [ ] sys-libs/libcxx-10.0.1:0 [-P-] [ ] sys-libs/libcxx-11.0.0:0 [IP-] [ ] sys-libs/libcxx-11.0.1:0 [-P-] [ ~] sys-libs/libcxx-11.1.0:0 [-P-] [ -] sys-libs/libcxx-12.0.0_rc1:0 [-P-] [ -] sys-libs/libcxx-12.0.0_rc2:0 [-P-] [ -] sys-libs/libcxx-12.0.0.9999:0 [-P-] [ -] sys-libs/libcxx-13.0.0.9999:0 Do you mean 11.1.0 or 12.0.0_rc? Nah, I meant 11.0.1. So it's not a version incompatibility. I'm afraid I can't help you here, unless you are able to figure it out yourself. A good first step would be to try to reproduce with 13.0.0.9999. You may want to choose a single revision and set EGIT_COMMIT for all packages to avoid inconsistency-due-to-fetch-delay. With 13.0.0.9999 (Commit 955365524aeea122243cb8ef201cd2687e7694b4) and corresponding libcxx and libcxxabi, I get: ******************** Failed Tests (14): LLVM-Unit :: IR/./IRTests/CGSCCCallbacksTest.InstrumentedInvalidatingPasses LLVM-Unit :: IR/./IRTests/CGSCCCallbacksTest.InstrumentedPasses LLVM-Unit :: IR/./IRTests/CGSCCCallbacksTest.InstrumentedSkippedPasses LLVM-Unit :: IR/./IRTests/FunctionCallbacksTest.InstrumentedPasses LLVM-Unit :: IR/./IRTests/FunctionCallbacksTest.InstrumentedSkippedPasses LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedInvalidatingLoopNestPasses LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedInvalidatingPasses LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedPasses LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedSkippedPasses LLVM-Unit :: IR/./IRTests/ModuleCallbacksTest.InstrumentedSkippedPasses LLVM :: ExecutionEngine/MCJIT/eh-lg-pic.ll LLVM :: ExecutionEngine/MCJIT/eh.ll LLVM :: ExecutionEngine/MCJIT/multi-module-eh-a.ll LLVM :: ExecutionEngine/MCJIT/remote/eh.ll So half of the problem has been 'solved', but new failures have emerged. Unless you have new suggestions, I think I'll stop here, I don't have the skills to go any further on my own. Thanks anyway. As I said, I'm currently unable to dedicate any time into this. We don't really have the capacity to provide first-class support for clang builds with all their intricacies and the problem is really hard because clang's Linux backend is basically a big heap of hacks for different setups. I'm not going to ask you to dig any further. If you even managed to find the root cause, I can't give you any guarantees that someone will fix it upstream. This could also be related to your CFLAGS. I know this is really old, so I'm just putting this here for posterity. Those 8 OrcMCJIT/MCJIT test would fail for me if I had compiler-rt-sanitizers[-orc] USE flag disabled. It's probably still true today, I just haven't run the test without ORC recently. |