bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I found the bug (full report)


From: Piotr Jurgaś
Subject: I found the bug (full report)
Date: Sun, 14 Nov 2004 18:59:01 +0100

OK, I visited the recomended website
(http://swox.com/gmp/manual/Reporting-Bugs.html#Reporting%20Bugs) and
here is my report:

1) The GMP version number is 4.1.4 and this is my first version of this
library

2) This is my test program (I included it in this email too)

#include <stdio.h>
#include <gmp.h>

int main()
{
        mpz_t a;
        mpz_init(a);
        gmp_printf("%Zd\n",a);
        mpz_clear(a);
        return 0;
}

3) I can't compile this program. I think that linker doesn't know where
to find function gmp_printf. I compile it by using command

        gcc -lgmp prog.c -o prog

4) I don't get any crash because my program is not compiled.

5) When I was installed GMP I typed "./configure" and then "make
install" (just like it is described in the manual and readme file). I
didn't use any other options.

6) This is the version of my compiler: gcc version 2.96.20000731 (Red
Hat Linux 7.1 2.96-81)

7) This is the output from running uname -a: Linux localhost.localdomain
2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown

8) This is the output from running ./config.guess: athlon-pc-linux-gnu
   and this is the output from running ./configfsf.guess:
i686-pc-linux-gnu

9) I don't think so that this bug is related to configure

10) I'm not sure if the bug is related to an asm file so I include the
contents of config.m4

//----------------------------------------------------------

dnl config.m4.  Generated automatically by configure.
changequote(<,>)
ifdef(<__CONFIG_M4_INCLUDED__>,,<
define(<CONFIG_TOP_SRCDIR>,<`../.'>)
define(<WANT_PROFILING>,<`no'>)
define(<M4WRAP_SPURIOUS>,<no>)
define(<TEXT>, <.text>)
define(<DATA>, <.data>)
define(<LABEL_SUFFIX>, <$1:>)
define(<GLOBL>, <.globl>)
define(<GSYM_PREFIX>, <>)
define(<RODATA>, <              .section        .rodata>)
define(<GLOBL_ATTR>, <>)
define(<TYPE>, <.type   $1,@$2>)
define(<SIZE>, <.size   $1,$2>)
define(<LSYM_PREFIX>, <.L>)
define(<W32>, <.long>)
define(<ALIGN_LOGARITHMIC>,<no>)
define(<ALIGN_FILL_0x90>,<yes>)
define(<WANT_SHLDL_CL>, <1>)
define(<SQR_KARATSUBA_THRESHOLD>,<50>)
define(<GMP_LIMB_BITS>,32)
define(<GMP_NAIL_BITS>,0)
define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))
>)
changequote(`,')
ifdef(`__CONFIG_M4_INCLUDED__',,`
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
include_mpn(`x86/x86-defs.m4')
define_not_for_expansion(`HAVE_HOST_CPU_athlon')
define_not_for_expansion(`HAVE_ABI_standard')
')
define(`__CONFIG_M4_INCLUDED__')

//----------------------------------------------------------

I didn't find any tmp-<file>.s in the directory mpn.

11) I tested GMP very hard and the only bug I found is that when I use 
the gmp_printf function (or other print functions from this library) I
can't compile my program. So I can't tell You anything about
calculations. Now I suppose that they are correct, but I can't check it
to be sure.

I hope that my report is better than the last one and that there is a
simple solution of it. So have a nice weekend and don't hesitate to ask
me about any other things related to my problem with GMP.

Piotr Jurgas

Attachment: bug.txt
Description: Text document

Attachment: test.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]