On Saturday 28 May 2011 11:36:56 Jason wrote: > Hi > on gcc70 which is a netburstlahf running 64bit netbsd with gcc-4.1.3 we get > this error > > PASS: t-get_d > PASS: t-get_d_2exp > PASS: t-get_si > PASS: t-get_sx > [1] Abort trap (core dumped) "${tst}" >t-get_... > FAIL: t-get_ux > PASS: t-hamdist > PASS: t-import > PASS: t-inp_str > PASS: t-io_raw > PASS: t-jac > PASS: t-lcm > PASS: t-likely_prime_p > > > we do get these warning when building the tests > > > ibtool: link: cc -std=gnu99 -O2 -m64 -march=nocona -mtune=nocona -o > .libs/t- get_si t-get_si.o ../../tests/.libs/libtests.a > /home/jasonmoxham/gcc70.fsffrance.org.06942a/gcc70.fsffrance.org.17184a/mpi > rbld/.libs/libmpir.so ../../.libs/libmpir.so -Wl,-rpath -Wl,/home/jason > moxham/gcc70.fsffrance.org.06942a/gcc70.fsffrance.org.17184a/install/lib > cc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../../mpir-2.4.0/tests/mpz > -I../.. - I../../../../mpir-2.4.0 -I../../../../mpir-2.4.0/tests -O2 > -m64 - march=nocona -mtune=nocona -c > ../../../../mpir-2.4.0/tests/mpz/t-get_sx.c > ../../../../mpir-2.4.0/tests/mpz/t-get_sx.c: In function 'check_data': > ../../../../mpir-2.4.0/tests/mpz/t-get_sx.c:63: warning: implicit > declaration of function 'mpz_get_sx' > ../../../../mpir-2.4.0/tests/mpz/t-get_sx.c: In function 'check_max': > ../../../../mpir-2.4.0/tests/mpz/t-get_sx.c:102: warning: implicit > declaration of function 'mpz_set_sx' > /bin/ksh ../../libtool --tag=CC --mode=link cc -std=gnu99 -O2 -m64 - > march=nocona -mtune=nocona -o t-get_sx t-get_sx.o > ../../tests/libtests.la ../../libmpir.la > libtool: link: cc -std=gnu99 -O2 -m64 -march=nocona -mtune=nocona -o > .libs/t- get_sx t-get_sx.o ../../tests/.libs/libtests.a > /home/jasonmoxham/gcc70.fsffrance.org.06942a/gcc70.fsffrance.org.17184a/mpi > rbld/.libs/libmpir.so ../../.libs/libmpir.so -Wl,-rpath -Wl,/home/jason > moxham/gcc70.fsffrance.org.06942a/gcc70.fsffrance.org.17184a/install/lib > cc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../../mpir-2.4.0/tests/mpz > -I../.. - I../../../../mpir-2.4.0 -I../../../../mpir-2.4.0/tests -O2 > -m64 - march=nocona -mtune=nocona -c > ../../../../mpir-2.4.0/tests/mpz/t-get_ux.c > ../../../../mpir-2.4.0/tests/mpz/t-get_ux.c: In function 'check_data': > ../../../../mpir-2.4.0/tests/mpz/t-get_ux.c:64: warning: implicit > declaration of function 'mpz_set_ux' > ../../../../mpir-2.4.0/tests/mpz/t-get_ux.c:65: warning: implicit > declaration of function 'mpz_get_ux' > /bin/ksh ../../libtool --tag=CC --mode=link cc -std=gnu99 -O2 -m64 - > march=nocona -mtune=nocona -o t-get_ux t-get_ux.o > ../../tests/libtests.la ../../libmpir.la > > > > the log is > > -bash-4.1$ cat t-get_ux.log > FAIL: t-get_ux (exit: 134) > ========================== > mpz_get_ux() failed for data on item 8 > > > Jason
I think the error is that while t-get_sx.c has the constants postfixed by an "L" in the t-get_ux.c we dont. However the constants go up to 64bit so an L would break windows . What we need is the postfix for an intmax_t , I think we can use CNST_LIMB(0xfffffffff...) as it should be an L on unix and LL on windows Jason -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to mpir-devel@googlegroups.com. To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.