+Richard/Stefan for "atomic" error. On 6/8/21 10:35 PM, Marc-André Lureau wrote:
> Per subproject `default_library` was added in 0.54, and we require > 0.55.3. Why is it trying to build libslirp.so? > > I tried to make vm-build-ubuntu.i386 with the following changes: > > diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 > index 47681b6f87..21d0b64eb1 100755 > --- a/tests/vm/ubuntu.i386 > +++ b/tests/vm/ubuntu.i386 > @@ -18,7 +18,7 @@ import ubuntuvm > DEFAULT_CONFIG = { > 'install_cmds' : "apt-get update,"\ > "apt-get build-dep -y qemu,"\ > - "apt-get install -y libfdt-dev language-pack-en > ninja-build", > + "apt-get install -y libfdt-dev language-pack-en > ninja-build clang", > } > > class UbuntuX86VM(ubuntuvm.UbuntuVM): > @@ -32,7 +32,7 @@ class UbuntuX86VM(ubuntuvm.UbuntuVM): > cd $(mktemp -d); > sudo chmod a+r /dev/vdb; > tar -xf /dev/vdb; > - ./configure {configure_opts}; > + ./configure {configure_opts} --cc=clang --cxx=clang++ > --host-cc=clang --extra-cflags='-fsanitize=undefined > -fno-sanitize=shift-base -Werror'; > make --output-sync {target} -j{jobs} {verbose}; > """ > > (or with EXTRA_CONFIGURE_OPTS) > > And it failed with: > > [2363/9207] Linking target qemu-system-aarch64 > FAILED: qemu-system-aarch64 > clang++ @qemu-system-aarch64.rsp > libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o: In function > `helper_atomic_cmpxchgq_le_mmu': > /tmp/tmp.VkWONZ62bA/build/../accel/tcg/atomic_template.h:86: undefined > reference to `__atomic_compare_exchange_8' > libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o: In function > `helper_atomic_xchgq_le_mmu': > /tmp/tmp.VkWONZ62bA/build/../accel/tcg/atomic_template.h:134: undefined > reference to `__atomic_exchange_8' > libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o: In function > `helper_atomic_fetch_addq_le_mmu': > > Any idea what I am missing? > > thanks > > -- > Marc-André Lureau