<!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">
Hello!<br>
I have an error when building gmp 4.2.1 from the source tarball with no
patches. Make return the following:<br>
<blockquote type="cite"><code>gcc `test -f 'gen-fac_ui.c' || echo
'../gmp-4.2.1/'`gen-fac_ui.c -o gen-fac_ui<br>
./gen-fac_ui 32 0 >mpz/fac_ui.h || (rm -f mpz/fac_ui.h; exit 1)<br>
gcc `test -f 'gen-fib.c' || echo '../gmp-4.2.1/'`gen-fib.c -o gen-fib<br>
./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1)<br>
./gen-fib table 32 0 >mpn/fib_table.c || (rm -f mpn/fib_table.c;
exit 1)<br>
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<br>
  </code></blockquote>
<br>
here is what I got from gdb:<br>
<code><br>
<blockquote type="cite"><code># gdb --args ./gen-bases table 32 0<br>
GNU gdb 5.3-25mdk (Mandrake Linux)<br>
Copyright 2002 Free Software Foundation, Inc.<br>
GDB is free software, covered by the GNU General Public License, and
you are<br>
welcome to change it and/or distribute copies of it under certain
conditions.<br>
Type "show copying" to see the conditions.<br>
There is absolutely no warranty for GDB.  Type "show warranty" for
details.<br>
This GDB was configured as "i586-mandrake-linux-gnu"...<br>
(gdb) run<br>
Starting program: /root/my-applications/gmp/gmp-obj/gen-bases table 32 0<br>
/* This file generated by gen-bases.c - DO NOT EDIT. */<br>
  <br>
#include "gmp.h"<br>
#include "gmp-impl.h"<br>
  <br>
#if GMP_NUMB_BITS != 32<br>
Error, error, this data is for 32 bits<br>
  </code>#endif<br>
  <br>
const struct bases mp_bases[257] =<br>
{<br>
  /*   0 */ { 0, 0.0, 0 },<br>
  /*   1 */ { 0, 1e37, 0 },<br>
Assertion failure @ 654, ../gmp-4.2.1/dumbmp.c<br>
  <br>
Program received signal SIGABRT, Aborted.<br>
0x40062031 in kill () from /lib/libc.so.6<br>
(gdb) backtrace <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=0xbfacd350, 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=0xbfacd424)<br>
    at ../gmp-4.2.1/gen-bases.c:174<br>
#8  0x40050279 in __libc_start_main () from /lib/libc.so.6<br>
</blockquote>
</code>The only configuration option was --prefix=/root/my-applications/<br>
The version of gcc is( returned from gcc -v):<br>
<blockquote type="cite"><br>
 Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux<br>
Thread model: posix<br>
gcc version 3.3.4<br>
</blockquote>
The rusult of uname -a was: Linux hacaopc 2.6.18.1 #1 Sat Nov 11
07:52:06 PUP 2006 i686 unknown unknown GNU/Linux<br>
<br>
config.guess gave:     pentium4-pc-linux-gnu<br>
and configfsf.guess:    i686-pc-linux-gnu<br>
<br>
<br>
This linux distro is from puppylinux, with vi translation, <br>
<br>
I'll be very glad if someone have a look at my trouble<br>
<br>
</body>
</html>