atomic failure linking with --enable-sanitizers on 32-bit Linux hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
As of commit 50536341b47, using --enable-sanitizers on 32-bit Linux host:
- displays various warnings
- fails linking
Using Ubuntu 18.04 (release 20201211.1) and Clang10 on i386:
[139/675] Compiling C object softmmu.
In file included from ../softmmu/
In file included from include/
In file included from ../target/
In file included from ../target/
In file included from include/
In file included from include/
In file included from include/
In file included from include/
include/
incur significant performance penalty [-Watomic-
return qatomic_
^
include/
'qatomic_
__atomic_
^
include/
incur significant performance penalty [-Watomic-
qatomic_
^
include/
'qatomic_
__atomic_
^
2 warnings generated.
[...]
[850/2216] Linking target tests/test-hbitmap
FAILED: tests/test-hbitmap
clang -o tests/test-hbitmap tests/test-
tests/test-
-pie -Wl,--whole-archive libblock.fa libcrypto.fa libauthz.fa libqom.fa
libio.fa -Wl,--no-
-fsanitize=address -Wl,-z,relro -Wl,-z,now -m32 -ggdb
-fstack-
subprojects/
subprojects/
libauthz.fa libqom.fa libio.fa @block.syms -lgio-2.0 -lgobject-2.0
-lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread -lutil -lgnutls
-lm -lgthread-2.0 -lglib-2.0 /usr/lib/
-liscsi -lgthread-2.0 -lglib-2.0 -laio -lcurl
/usr/lib/
-Wl,--end-group
libblock.
include/
include/
`__atomic_
libblock.
include/
libqemuutil.
include/
libqemuutil.
include/
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Issue previously reported on the list here:
https://<email address hidden>
This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'invalid' now.
Please continue with the discussion here:
https:/ /gitlab. com/qemu- project/ qemu/-/ issues/ 235