Summary: | llvm-runtimes/compiler-rt-18.1.8-r2 fails test atomic_test.c | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | DuPol, kingjon3377, lg3dx6fd, mojyack, paolo.pedroni, vadorovsky |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=943129 https://reviews.llvm.org/D92832 https://bugs.gentoo.org/show_bug.cgi?id=946219 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | compiler-rt-18.1.8-r2:20241211-132434.log.gz |
Description
Paolo Pedroni
2024-12-11 14:02:26 UTC
With USE=-atomic-builtins I get: UNSUPPORTED: Builtins-x86_64-linux :: atomic_test.c (212 of 435) and tests as a whole succeed. I've confirmed that. It seems to be a compiler or test case bug. The compiler generates cmpxchg16b from __atomic_load_c(16,...) at atomic_test.c:196, which tries to write to a const variable. Removing const from "data" definition at atomic_test.c:147 fixes the fault. |