This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bootstrap broken on x86_64 on the trunk in libgfortran?


>> ../../../trunk/libgfortran/mk-kinds-h.sh: Unknown type
>> grep '^#' < kinds.h > kinds.inc
>> /bin/sh: kinds.h: No such file or directory
>> make[2]: *** [kinds.inc] Error 1
>> make[2]: Leaving directory 
>> `/home/daney/gccsvn/native-trunk/x86_64-unknown-linux-gnu/libgfortran'
>> make[1]: *** [all-target-libgfortran] Error 2
>> make[1]: Leaving directory `/home/daney/gccsvn/native-trunk'
>> make: *** [all] Error 2
>
>Usually (like 99% of the time), this means you GMP/MPFR are broken
>and is causing gfortran to crash out.

I think the patch concept below may help with these issues. The idea
was to make configure try to link to libmfpr using the functions only in 
mfpr 2.2.0 or greater that GCC is currently using (that I could find anyhow). 
Previously configure could succeed if any version of libmfpr was available
so long as the header was the correct version (this is likely on x86_64).

Please excuse any formatting issues -- this is my first patch. I have neither
SVN access nor a copyright assignment, but this is a short patch. Would
someone be willing to help test and possibly apply? 

Thanks!
Matt

--- configure.in	(Revision 119232)
+++ configure.in	(Working Copy)
@@ -1123,7 +1123,12 @@ if test x"$have_gmp" = xyes; then
 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
   choke me
 #endif
-  mpfr_t n; mpfr_init(n);
+  int t;
+  mpfr_t n, x;
+  mpfr_init (n); mpfr_init (x);
+  mpfr_atan2 (n, n, x, GMP_RNDN);
+  mpfr_erfc (n, x, GMP_RNDN);
+  mpfr_subnormalize (x, t, GMP_RNDN);
 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no])
   LIBS="$saved_LIBS"
 fi



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]