It would to solve the issue by adding -pthread because pthread-based implementation is not lock-free. I have created the issue in upstream ( https://github.com/ivmai/libatomic_ops/issues/46 ). By design of libatomic_ops, if a particular operation (e.g. __atomic_compare_exchange_1) is not supported by the CPU then the relevant AO primitive should not be defined (e.g. AO_char_compare_and_swap). I could prepare the patch, but I don’t have access to the target architecture.
- Bug#962917: libatomic-ops: FTBFS in the testsuite on riscv6... Karsten Merker
- Bug#962917: libatomic-ops: FTBFS in the testsuite on r... Karsten Merker
- Bug#962917: libatomic-ops: FTBFS in the testsuite ... Ivan Maidanski
- Bug#962917: libatomic-ops: FTBFS in the testsu... Ivan Maidanski
- Bug#962917: Re[2]: Bug#962917: libatomic-o... Ivan Maidanski
- Bug#962917: libatomic-ops: FTBFS in the testsu... Ivan Maidanski
- Bug#962917: libatomic-ops: FTBFS in the te... Karsten Merker