Bug#561180: r-base : FTBFS: sh4: configure: error: linking to Fortran libraries from C fails
Package: r-base
Version: 2.10.1-1
Severity: important
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org
Hi,
I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4
r-base FTBFS on SH4.
Because configure included in r-base is created in old autoconf.
-----
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.3.4
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgcc_s
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: linking to Fortran libraries from C fails
-----
This become the error by the following contents in config.log.
-----
configure:27813: result: -little -L/usr/lib/gcc/sh4-linux-gnu/4.3.4
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgcc_s
configure:27944: checking for dummy main to link with Fortran 77 libraries
configure:27988: gcc -std=gnu99 -o conftest -g -O2 conftest.c -ldl
-lm -little -lgfortran -lm >&5
/usr/bin/ld.real: cannot find -little
collect2: ld returned 1 exit status
-----
Could you update confiugre with new autoconf?
Or please apply the patch which I attached.
This is patch for quick fix.
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
--- a/configure 2009-12-15 09:42:16.000000000 +0900
+++ b/configure 2009-12-15 09:43:25.000000000 +0900
@@ -27410,7 +27410,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"
@@ -27731,7 +27731,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: