[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#565131: r-base-core-ra: FTBFS: configure: error: linking to Fortran libraries from C fails



Source: r-base-core-ra
Version: 1.2.8-2
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org

Hi,

r-base-core-ra FTBFS on SH4.
Because configure included in r-base-core-ra is created in old autoconf.

-----
checking whether we can compute C Make dependencies... yes, using gcc
-std=gnu99 -MM
checking whether gcc -std=gnu99 supports -c -o FILE.lo... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.4.2
-L/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../.. -lgfortranbegin -lgfortran
-lm
checking how to get verbose linking output from gcc -std=gnu99... -v
checking for C libraries of gcc -std=gnu99...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.4.2
-L/usr/lib/gcc/sh4-linux-gnu/4.4.2/../../.. -lgcc_s
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: linking to Fortran libraries from C fails
-----

Could you update confiugre with new autoconf?
Or please apply the patch which I attached.
This is patch for quick fix.

Best regards,
 Nobuhiro
--- a/configure	2010-01-13 04:46:36.000000000 +0000
+++ b/configure	2010-01-13 04:47:17.000000000 +0000
@@ -27542,7 +27542,7 @@
 
           ;;
           # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
+        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little | -LANG:=* | -LIST:* | -LNO:*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
@@ -27863,7 +27863,7 @@
 
           ;;
           # Ignore these flags.
-        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
+        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -little | -LANG:=*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && r_cv_c_libs="$r_cv_c_libs $r_arg"

Reply to: