jemalloc on ppc32: Missing implementation for 32-bit atomic operations
Jason Evans
jasone at canonware.com
Tue Apr 19 10:20:17 PDT 2011
On 04/19/2011 06:45 AM, Ingvar Hagelund wrote:
> Building a git checkout of jemalloc today on 32bit ppc:
>
> gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops
> -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o
> src/jemalloc.pic.o src/jemalloc.c
> In file included from include/jemalloc/internal/jemalloc_internal.h:386,
> from src/jemalloc.c:2:
> include/jemalloc/internal/atomic.h:164:4: #error "Missing implementation
> for 32-bit atomic operations"
> make: *** [src/jemalloc.pic.o] Error 1
>
>
> Seems to work fine on ppc64, though.
gcc added intrinsics for atomic operations sometime in the 4.x series
(4.4.x certainly has them), which jemalloc tries to use, so chances are
that you are using a newer compiler on the ppc64 system than on the
32-bit system. I added native implementations for x86/x64 systems, but
haven't had the time to do so for PowerPC (plus I don't have ppc
hardware anymore).
Thanks,
Jason
More information about the jemalloc-discuss
mailing list