Re: [Qemu-devel] [PATCH] build: link with libatomic on powerpc-linux

2016-04-01 Thread Olaf Hering
On Fri, Apr 01, Peter Maydell wrote: > On 1 April 2016 at 13:00, Olaf Hering wrote: > > Building on powerpc-linux fails with undefined reference to __atomic_load_8 > > in > > icount_warp_rt(). Force linking to -latomic. > > We should instead be fixing this by not doing atomic operations > on ty

Re: [Qemu-devel] [PATCH] build: link with libatomic on powerpc-linux

2016-04-01 Thread Peter Maydell
On 1 April 2016 at 13:00, Olaf Hering wrote: > Building on powerpc-linux fails with undefined reference to __atomic_load_8 in > icount_warp_rt(). Force linking to -latomic. We should instead be fixing this by not doing atomic operations on types of larger than void*. This also causes problems on

[Qemu-devel] [PATCH] build: link with libatomic on powerpc-linux

2016-04-01 Thread Olaf Hering
Building on powerpc-linux fails with undefined reference to __atomic_load_8 in icount_warp_rt(). Force linking to -latomic. Fixes a0aa44b ("include/qemu/atomic.h: default to __atomic functions") Signed-off-by: Olaf Hering Cc: Paolo Bonzini Cc: "Daniel P. Berrange" Cc: Stefan Hajnoczi Cc: Pete