make check fails on ppc64 with ""Assertion `l_param >= offset' failed"" when ./configure'd with --enable-openmp
Imported issue: Initially reported by Gustavo Luiz Duarte in https://gforge.inria.fr/tracker/?group_id=135&aid=14476
If the configure option --enable-openmp is used on a powerpc64 machine then 'make check' fails with the following error message:
GMP-ECM 7.0-dev [configured with GMP 5.0.2, --enable-asm-redc, --enable-assert] [P+1]
Input number is 2050449218179969792522461197 (28 digits)
Using B1=20, B2=-1578-1248978, polynomial x^1, x0=6
Step 1 took 6ms
ecm: pm1fs2.c:3717: pp1_sequence_h: Assertion `l_param >= offset' failed.
ecm: pm1fs2.c:3717: pp1_sequence_h: Assertion `l_param >= offset' failed.
./test.pp1: line 56: 12364 Done echo 2050449218179969792522461197
12365 Aborted | $PP1 -x0 6 -k 1 20 0-1e6
############### ERROR ###############
Expected return code 14 but got 134
make: *** [check] Error 1
This is reproducible using the Fedora 17's gmp-ecm release and also using the latest code from trunk.
Attached the build log (gmp-ecm.log)
Operating system: Fedora 17
Packages version:
autoconf-2.68-4.fc17.noarch
automake-1.11.3-1.fc17.noarch
libtool-2.4.2-3.fc17.ppc64
m4-1.4.16-3.fc17.ppc64
gmp-5.0.2-6.fc17.ppc64
gsl-1.15-4.fc17.ppc64
gcc-4.7.0-6.fc17.ppc64
libgomp-4.7.0-6.fc17.ppc64
lscpu
Architecture: ppc64
Byte Order: Big Endian
CPU(s): 48
On-line CPU(s) list: 0-47
Thread(s) per core: 4
Core(s) per socket: 1
Socket(s): 12
NUMA node(s): 2
Model: IBM,8231-E2B
L1d cache: 32K
L1i cache: 32K
NUMA node0 CPU(s): 0-47
NUMA node1 CPU(s):