Currently gmp 5.0.2 fails to pass its make check when built with llvm-gcc.
This is a permutation of the problem we previously saw with clang which resulted
in the change of the "checking how to switch to read-only data section..." test
from...

const int foo = 123;

to..

extern const int foo;           /* Suppresses C++'s suppression of foo */
const int foo = {1,2,3};

However this form of the test still results in the test incorrectly returning

.section        __TEXT,__literal4,4byte_literals

using llvm-gcc and is the cause of the gmp testsuite failures. The fix
that has worked for me is to convert the test to...

static int foo = {1,2,3};

which works with both clang and llvm-gcc. I have attached a patch for this 
change
for inclusion in the gmp5-5.0.2 package.
            Jack
--- gmp-5.0.2/configure.orig    2011-05-16 17:59:59.000000000 -0400
+++ gmp-5.0.2/configure 2011-05-16 18:00:36.000000000 -0400
@@ -26446,8 +26446,8 @@
 esac
 
 cat >conftest.c <<EOF
-extern const int foo;          /* Suppresses C++'s suppression of foo */
-const int foo = {1,2,3};
+/* extern const int foo;        Suppresses C++'s suppression of foo */
+static const int foo = {1,2,3};
 EOF
 echo "Test program:" >&5
 cat conftest.c >&5
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to