gmp 4.3.0 failures on Intel Darwin9

Jack Howarth howarth at bromo.med.uc.edu
Thu Apr 23 14:55:13 CEST 2009


On Thu, Apr 23, 2009 at 07:32:18AM +0200, Torbjorn Granlund wrote:
> Jack Howarth <howarth at bromo.med.uc.edu> writes:
> 
>      I am seeing four segfaults during the testsuite of gmp 4.3.0
>   when built on Mac OS X 10.5.6 using the following patch (which 
>   the fink gmp-4.2.4-1000 package currently uses)...
>   
>   --- orig/configure.orig 2008-04-01 08:22:25.000000000 +0200
>   +++ patched/configure   2008-04-01 10:00:15.000000000 +0200
>   @@ -3454,6 +3454,10 @@
>        # duplicate anything.
>        #
>        gcc_cflags_optlist="cpu arch"
>   +    case $host in
>   +          pentium3-apple-darwin*)
>   +            host_cpu="core2" ;;
>   +    esac  
>        case $host_cpu in
>          i386*)
>            gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
>   
> That is a very strange patch.
> 
> If config.guess returns the wrong cpu type, config.guess ought to be
> fixed.  Patching configure is never right, since it is aa generated
> file.
> 
> If you have problems with an unpatched GMP release, please let us know.
> The information we need is described here:
> http://gmplib.org/manual/Reporting-Bugs.html
> 
> 
> 
> -- 
> Torbjörn

Torbjörn,
    I see the same problem without the patch. The stock Apple gcc 4.0.1
compiler doesn't understand the -mtune=core2 option so it ends up using
-mtune=k8. The Apple gcc-4.2.1 compiler does and configure ends up using
-mtune=core2. However both builds yield the same set of testsuite failures
(none of which exist in gmp 4.2.1). Do you have access to a Intel based
Mac to test gmp 4.3.0 directly?
                 Jack



More information about the gmp-bugs mailing list