problem building gmp on Mac G5

Kate Minola kminola at po1.glue.umd.edu
Mon Jan 5 10:30:09 CET 2004


I am trying to build gmp-4.1.2 using gcc-3.3.2 on a Mac G5
running OSX server version 10.3.2.  (powerpc-apple-darwin7.2.0 
according to config.guess and configfsf.guess.)

If I do a "naive" build with

     configure --disable-shared
     make
     make check 

I get from `configure`

: using ABI="standard"
:       CC="gcc"
:       CFLAGS="-g -O2 -mpowerpc"
:       CPPFLAGS=""
:       MPN_PATH=" powerpc32 generic"

And  from `make check` I get

: make[3]: Entering directory `/private/var/automount/home/kate/gmp-4.1.2/src/objdir-powerpc-Darwin/tests/misc'
: PASS: t-printf
: ../../../gmp-4.1.2/tests/misc/t-scanf.c:1421: GNU MP assertion failed: ret == -1
: FAIL: t-scanf
: PASS: t-locale
: ===================
: 1 of 3 tests failed
: ===================

If I try a generic build

     configure --disable-shared --host=none-unknown-darwin
     make
     make check 

`configure` gives

: using ABI="long"
:       CC="gcc"
:       CFLAGS="-g -O2"
:       CPPFLAGS="-DNO_ASM"
:       MPN_PATH="  generic"

and I get the same error in `make check`

: make[3]: Entering directory `/private/var/automount/home/kate/gmp-4.1.2/src/objdir-powerpc-Darwin-generic/tests/misc'
: PASS: t-printf
: ../../../gmp-4.1.2/tests/misc/t-scanf.c:1421: GNU MP assertion failed: ret == -1
: FAIL: t-scanf
: PASS: t-locale
: ===================
: 1 of 3 tests failed
: ===================

Question: Should I be worried?  (When code does not pass
its own test suite I usually worry!)

Ideally I would like gmp to take advantage of the 
64-bit architecture of the G5.  But for right now,
I would just like ANY build of gmp to work!

Kate Minola
Engineering Department
University of Maryland, College Park


More information about the gmp-bugs mailing list