I have a standard Linux/ppc64 system with gcc-4.8.3
I have configured the 2.0.2rc3 tarball with

--prefix=... --enable-builtin-atomics \
CFLAGS=-m32 --with-wrapper-cflags=-m32 \
CXXFLAGS=-m32 --with-wrapper-cxxflags=-m32 \
FCFLAGS=-m32 --with-wrapper-fcflags=-m32 --disable-mpi-fortran

(Yes, I know the FCFLAGS are unnecessary).

I get a "make check" failure:

make[3]: Entering directory
`/home/phargrov/OMPI/openmpi-2.0.2rc3-linux-ppc32-gcc/BLD/test/asm'
  CC       atomic_barrier.o
  CCLD     atomic_barrier
  CC       atomic_barrier_noinline-atomic_barrier_noinline.o
  CCLD     atomic_barrier_noinline
  CC       atomic_spinlock.o
  CCLD     atomic_spinlock
  CC       atomic_spinlock_noinline-atomic_spinlock_noinline.o
  CCLD     atomic_spinlock_noinline
  CC       atomic_math.o
  CCLD     atomic_math
atomic_math.o: In function `atomic_math_test':
atomic_math.c:(.text+0x78): undefined reference to `__sync_add_and_fetch_8'
collect2: error: ld returned 1 exit status
make[3]: *** [atomic_math] Error 1


It looks like there is an (incorrect) assumption that 8-byte atomics are
available.
Removing --enable-builtin-atomics resolves this issue.

-Paul

-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to