2 tests fail on power5-unknown-linux-gnu with --enable-assert --enable-alloca=debug

Vincent Lefevre vincent at vinc17.org
Fri Jan 26 23:35:10 CET 2007


On 2007-01-26 19:16:02 +0100, Torbjorn Granlund wrote:
> I actually tried to reproduce this, in spite of that the bug report is
> quite incomplete.  Unsurprisingly, my attempts failed.

I don't know what additional info you need. My bug report includes
everything that is mentioned in the GMP manual, except the following:

doublejack:~/software/gmp-4.2.1> ./configfsf.guess
powerpc64-unknown-linux-gnu

Now, I've looked more closely. The problem comes from the line

      refmpf_add (wref, u, v);

in tests/mpf/t-add.c (i.e., removing it makes the error disappear).
A "grep -r TMP_ *" from the tests subdirectory shows 3 files:

  devel/try.c
  refmpf.c
  trace.c

This should explain why only two tests fail: only two tests seem to
have a reference to __gmp_tmp_debug_mark. Now I think that the test
programs are linked against a wrong library. In the t-add script, if
I add

  echo $progdir/$program ${1+"$@"}
  ldd $progdir/$program

just before

  exec $progdir/$program ${1+"$@"}

then I get:

/home/vlefevre/software/gmp-4.2.1/tests/mpf/.libs/lt-t-add
        linux-vdso64.so.1 =>  (0x0000000000100000)
        libgmp.so.3 => /home/vlefevre/ppc64-suse-linux/lib/libgmp.so.3 (0x0000040000039000)
        libc.so.6 => /lib64/power5/libc.so.6 (0x00000400000c0000)
        /lib64/ld64.so.1 (0x0000040000000000)
/home/vlefevre/software/gmp-4.2.1/tests/mpf/.libs/lt-t-add: symbol lookup error: /home/vlefevre/software/gmp-4.2.1/tests/mpf/.libs/lt-t-add: undefined symbol: __gmp_tmp_debug_mark

Perhaps a bug in the old libtool provided by GMP.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-bugs mailing list