bug-gmp
[Top][All Lists]
Advanced

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

Re: mpz_root assertion failure


From: Jason Moxham
Subject: Re: mpz_root assertion failure
Date: Sat, 30 Nov 2002 16:49:39 +0000
User-agent: KMail/1.4.1

On Saturday 30 Nov 2002 4:01 pm, Torbjorn Granlund wrote:
> This might be hard for somebody else to reproduce, since the
> environment requires lots of work to set up.  I think we
> need your help.
>
> I tried GMP 4.1.1 (which is ready and waiting to be uploaded
> to ftp.gnu.org) on an athlon-pc-freebsd system using gcc
> 2.95.  It does not fail.
>
> This might be a bug in GMP, perhaps then a fioed bug.  Or it
> might be a bug in gcc 3.2.1.
>
> The first thing to try is to try a different compiler, or
> use gcc 3.2.1 but disable optimization.  Could you please
> try that?


#!/bin/bash
# put gmp-x.y.z.tar.gz and this script in same directory and run it
rm -rf gmp-4.1
tar xvzf gmp-4.1.tar.gz
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd gmp-4.1
cp ../gmperr.c .
#cd mpn/generic
#patch < ../../../gmp-4.1.patches/div_patch
#if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
#cd ../..
patch < ../gmp-4.1.patches/randraw.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/configure.gcc31.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmp-impl.h.sparc.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmpxx.h.getnum.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd mpf
patch < ../../gmp-4.1.patches/mpf_inp_str.c.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
cd mpz
patch < ../../gmp-4.1.patches/powm_ui.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
./configure --disable-shared CC=gcc-2.95.3
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
make 
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
gcc-2.95.3 gmperr.c  .libs/libgmp.a -o gmperr
./gmperr



PASSES


#!/bin/bash
# put gmp-x.y.z.tar.gz and this script in same directory and run it
rm -rf gmp-4.1
tar xvzf gmp-4.1.tar.gz
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd gmp-4.1
cp ../gmperr.c .
#cd mpn/generic
#patch < ../../../gmp-4.1.patches/div_patch
#if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
#cd ../..
patch < ../gmp-4.1.patches/randraw.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/configure.gcc31.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmp-impl.h.sparc.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmpxx.h.getnum.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd mpf
patch < ../../gmp-4.1.patches/mpf_inp_str.c.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
cd mpz
patch < ../../gmp-4.1.patches/powm_ui.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
./configure --disable-shared CC=gcc-3.0.4
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
make 
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
gcc-3.0.4 gmperr.c  .libs/libgmp.a -o gmperr
./gmperr


PASSES






#!/bin/bash
# put gmp-x.y.z.tar.gz and this script in same directory and run it
rm -rf gmp-4.1
tar xvzf gmp-4.1.tar.gz
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd gmp-4.1
cp ../gmperr.c .
#cd mpn/generic
#patch < ../../../gmp-4.1.patches/div_patch
#if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
#cd ../..
patch < ../gmp-4.1.patches/randraw.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/configure.gcc31.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmp-impl.h.sparc.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmpxx.h.getnum.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd mpf
patch < ../../gmp-4.1.patches/mpf_inp_str.c.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
cd mpz
patch < ../../gmp-4.1.patches/powm_ui.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
./configure --disable-shared CC=gcc-3.2.1  CFLAGS="-O2 -fomit-frame-pointer 
-march=athlon"
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
make 
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
gcc-3.2.1 gmperr.c  .libs/libgmp.a -o gmperr
./gmperr



FAILS



#!/bin/bash
# put gmp-x.y.z.tar.gz and this script in same directory and run it
rm -rf gmp-4.1
tar xvzf gmp-4.1.tar.gz
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd gmp-4.1
cp ../gmperr.c .
#cd mpn/generic
#patch < ../../../gmp-4.1.patches/div_patch
#if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
#cd ../..
patch < ../gmp-4.1.patches/randraw.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/configure.gcc31.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmp-impl.h.sparc.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmpxx.h.getnum.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd mpf
patch < ../../gmp-4.1.patches/mpf_inp_str.c.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
cd mpz
patch < ../../gmp-4.1.patches/powm_ui.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
./configure --disable-shared CC=gcc-3.2.1  CFLAGS="-O2 -fomit-frame-pointer"
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
make 
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
gcc-3.2.1 gmperr.c  .libs/libgmp.a -o gmperr
./gmperr


FAILS

#!/bin/bash
# put gmp-x.y.z.tar.gz and this script in same directory and run it
rm -rf gmp-4.1
tar xvzf gmp-4.1.tar.gz
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd gmp-4.1
cp ../gmperr.c .
#cd mpn/generic
#patch < ../../../gmp-4.1.patches/div_patch
#if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
#cd ../..
patch < ../gmp-4.1.patches/randraw.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/configure.gcc31.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmp-impl.h.sparc.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
patch < ../gmp-4.1.patches/gmpxx.h.getnum.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd mpf
patch < ../../gmp-4.1.patches/mpf_inp_str.c.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
cd mpz
patch < ../../gmp-4.1.patches/powm_ui.c.41.diff
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd ..
./configure --disable-shared CC=gcc-3.2.1
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
make 
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
gcc-3.2.1 gmperr.c  .libs/libgmp.a -o gmperr
./gmperr

FAILS






reply via email to

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