groan…. 2 of 58 tests failed - gmp-4.3.2
Jack Howarth
howarth at bromo.med.uc.edu
Mon Jun 4 20:54:06 CEST 2012
On Mon, Jun 04, 2012 at 08:07:52PM +0200, Joerg Arndt wrote:
> * Daniel Bertrand <danieljamesbertrand at me.com> [Jun 04. 2012 19:13]:
> > How about telling me how to fix it?
> >
>
> Pro tip: read the answer in whole, even though it
> consists of more than eight words.
>
>
> > [...]
>
> Let me help you.
> The sentence in question has three parts:
>
> (1)
> > > My crystal ball tells me you are using Apple products,
>
> I assume this one is spot on, correct?
>
> > > and you would get less trouble with
> [...Now be prepared for hints toward solving the problem!...]
>
> (2)
> > > a more recent version of gmp
> Have you tried that?
>
> > > and/or
>
> (3)
> > > a true gcc compiler.
> ...or that?
Daniel,
Assuming you must use gmp 4.3.2 and that you are on MacOS X with
an llvm based compiler, try the attached patch to configure. The problem with
older gmp (this issue is fixed in current gmp 5.0.5) on darwin, is that the
configure test for checking how to switch to read-only data section was
incorrectly constructed for llvm-based compilers. Since this issue has been fixed
there are no real issues with gmp on darwin (despite the grumbling from the
developer).
Jack
>
>
> Best, jj
> _______________________________________________
> gmp-bugs mailing list
> gmp-bugs at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-bugs
-------------- next part --------------
--- gmp-4.3.2/configure.orig 2012-03-18 15:42:05.000000000 -0400
+++ gmp-4.3.2/configure 2012-03-18 15:45:19.000000000 -0400
@@ -30563,7 +30563,7 @@
esac
cat >conftest.c <<EOF
-const int foo = 123;
+const int foo[] = {1,2,3};
EOF
echo "Test program:" >&5
cat conftest.c >&5
--- gmp-4.3.2/acinclude.m4.orig 2012-03-18 15:40:17.000000000 -0400
+++ gmp-4.3.2/acinclude.m4 2012-03-18 15:45:34.000000000 -0400
@@ -1942,7 +1942,7 @@
esac
cat >conftest.c <<EOF
-const int foo = 123;
+const int foo[] = {1,2,3};
EOF
echo "Test program:" >&AC_FD_CC
cat conftest.c >&AC_FD_CC
More information about the gmp-bugs
mailing list