error in gen-bases
John Baptise
vukien at hcm.fpt.vn
Thu Mar 22 03:28:58 CET 2007
Torbjorn Granlund wrote:
> It looks as if you forgot to do "make distclean" between incompatible
> builds.
Though I'd done that already I still got it. I have a notice at:
> |gcc `test -f 'gen-bases.c' || echo '../gmp-4.2.1/'`gen-bases.c -o
> gen-bases -lm
> ./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1)
> ./gen-bases table 32 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1)
> Assertion failure
> /bin/sh: line 1: 21846 Aborted ./gen-bases table 32 0
> >mpn/mp_bases.c
> make: *** [mpn/mp_bases.c] Error 1|
> (gdb) where
> #0 0x40062031 in kill () from /lib/libc.so.6
> #1 0x40061ca9 in raise () from /lib/libc.so.6
> #2 0x400631b8 in abort () from /lib/libc.so.6
> #3 0x08049937 in mpz_tdiv_qr (q=0x804bd74, r=0xbfeddf60, a=0x804bd68,
> b=0x804bd90) at dumbmp.c:654
> #4 0x080499db in mpz_tdiv_q (q=0x804bd74, a=0x804bd68, b=0x804bd90)
> at dumbmp.c:679
> #5 0x0804a1f3 in generate (limb_bits=32, nail_bits=0, base=2)
> at ../gmp-4.2.1/gen-bases.c:72
> #6 0x0804a475 in table (limb_bits=32, nail_bits=0)
> at ../gmp-4.2.1/gen-bases.c:122
> #7 0x0804a676 in main (argc=4, argv=0xbfede034)
> at ../gmp-4.2.1/gen-bases.c:174
> #8 0x40050279 in __libc_start_main () from /lib/libc.so.6
> (gdb) up
> #1 0x40061ca9 in raise () from /lib/libc.so.6
> (gdb) up
> #2 0x400631b8 in abort () from /lib/libc.so.6
> (gdb) up
> #3 0x08049937 in mpz_tdiv_qr (q=0x804bd74, r=0xbfeddf60, a=0x804bd68,
> b=0x804bd90) at dumbmp.c:654
> 654 ASSERT (mpz_cmp (tmpr, tmpb) < 0);
> (gdb) print *q->_mp_d
> $1 = 1
> (gdb) print *r->_mp_d
> $2 = 0
> (gdb) print *a->_mp_d
> $3 = 0
> (gdb) print *b->_mp_d
> $4 = 0
> (gdb) print tmpr
> $5 = {{_mp_alloc = 6, _mp_size = 0, _mp_d = 0x4003a9f8}}
> (gdb) print *0x4003a9f8
> $6 = 1
> (gdb) print tmpb
> $7 = {{_mp_alloc = 4, _mp_size = 0, _mp_d = 0x4003a9f8}}
P.S: I ran 'make' from another directory than the /srcdir/ (the GNU make).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-bugs/attachments/20070322/ed36db14/attachment.html
More information about the gmp-bugs
mailing list