<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Torbjorn Granlund wrote:
<blockquote cite="mid863b3ypkbk.fsf@king.swox.se" type="cite">
<pre wrap=""> It looks as if you forgot to do "make distclean" between incompatible
builds.</pre>
</blockquote>
Though I'd done that already I still got it. I have a notice at:<br>
<blockquote type="cite"><code>gcc `test -f 'gen-bases.c' || echo
'../gmp-4.2.1/'`gen-bases.c -o
gen-bases -lm<br>
./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1)<br>
./gen-bases table 32 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c;
exit 1)<br>
Assertion failure<br>
/bin/sh: line 1: 21846 Aborted ./gen-bases table 32 0
>mpn/mp_bases.c<br>
make: *** [mpn/mp_bases.c] Error 1</code></blockquote>
<blockquote type="cite">(gdb) where <br>
#0 0x40062031 in kill () from /lib/libc.so.6<br>
#1 0x40061ca9 in raise () from /lib/libc.so.6<br>
#2 0x400631b8 in abort () from /lib/libc.so.6<br>
#3 0x08049937 in mpz_tdiv_qr (q=0x804bd74, r=0xbfeddf60, a=0x804bd68, <br>
b=0x804bd90) at dumbmp.c:654<br>
#4 0x080499db in mpz_tdiv_q (q=0x804bd74, a=0x804bd68, b=0x804bd90)<br>
at dumbmp.c:679<br>
#5 0x0804a1f3 in generate (limb_bits=32, nail_bits=0, base=2)<br>
at ../gmp-4.2.1/gen-bases.c:72<br>
#6 0x0804a475 in table (limb_bits=32, nail_bits=0)<br>
at ../gmp-4.2.1/gen-bases.c:122<br>
#7 0x0804a676 in main (argc=4, argv=0xbfede034)<br>
at ../gmp-4.2.1/gen-bases.c:174<br>
#8 0x40050279 in __libc_start_main () from /lib/libc.so.6<br>
(gdb) up<br>
#1 0x40061ca9 in raise () from /lib/libc.so.6<br>
(gdb) up<br>
#2 0x400631b8 in abort () from /lib/libc.so.6<br>
(gdb) up<br>
#3 0x08049937 in mpz_tdiv_qr (q=0x804bd74, r=0xbfeddf60, a=0x804bd68, <br>
b=0x804bd90) at dumbmp.c:654<br>
654 ASSERT (mpz_cmp (tmpr, tmpb) < 0);<br>
(gdb) print *q->_mp_d<br>
$1 = 1<br>
(gdb) print *r->_mp_d<br>
$2 = 0<br>
(gdb) print *a->_mp_d<br>
$3 = 0<br>
(gdb) print *b->_mp_d<br>
$4 = 0</blockquote>
<blockquote type="cite">(gdb) print tmpr<br>
$5 = {{_mp_alloc = 6, _mp_size = 0, _mp_d = 0x4003a9f8}}<br>
(gdb) print *0x4003a9f8<br>
$6 = 1<br>
(gdb) print tmpb<br>
$7 = {{_mp_alloc = 4, _mp_size = 0, _mp_d = 0x4003a9f8}}</blockquote>
P.S: I ran 'make' from another directory than the <i>srcdir</i> (the
GNU make).<br>
</body>
</html>