Bug#561703: babel: FTBFS: sh4: configure: error: linking to Fortran libraries from C fails
Package: babel
Version: 1.4.0.dfsg-6
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
babel FTBFS on SH4.
http://buildd.debian-ports.org/status/package.php?suite=&p=babel&a=sh4
-----
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
-----
Old autoconf adds -little option to compile option. sh4 architecture can't
interpret this option. Therefore, this has build error.
http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html
Please update m4 scripts of runtime/m4/ or apply attached patch.
This patch is a simple revision method to apply a patch to m4 scripts.
However, it is not a right workaround.
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
--- a/runtime/m4/llnl_f77_library_ldflags.m4 2009-12-17 12:50:25.000000000 +0000
+++ b/runtime/m4/llnl_f77_library_ldflags.m4 2009-12-17 12:50:54.000000000 +0000
@@ -174,7 +174,7 @@
[_AC_LINKER_OPTION([$ac_arg], ac_cv_flibs)])
;;
# Ignore these flags.
- -lang* | -lcrt[[012]].o | -lcrt[[0123456789]].[[0123456789]].[[0123456789]].o | -lcrt[[0123456789]].[[0123456789]][[0123456789]].[[0123456789]].o | -lcrtbegin.o | -lc | -lgcc* | -libmil | -LANG:=*)
+ -lang* | -lcrt[[012]].o | -lcrt[[0123456789]].[[0123456789]].[[0123456789]].o | -lcrt[[0123456789]].[[0123456789]][[0123456789]].[[0123456789]].o | -lcrtbegin.o | -lc | -lgcc* | -libmil | -little | -LANG:=*)
;;
-lfrtbegin ) ;; #(gkk) Ignore this one too
-lkernel32)
--- a/runtime/m4/llnl_f90_library_ldflags.m4 2009-12-17 12:52:57.000000000 +0000
+++ b/runtime/m4/llnl_f90_library_ldflags.m4 2009-12-17 12:53:15.000000000 +0000
@@ -64,7 +64,7 @@
[_AC_LINKER_OPTION([$ac_arg], ac_cv_[]_AC_LANG_ABBREV[]_libs)])
;;
# Ignore these flags.
- -lang* | -lcrt[[012]].o | -lcrt[[0123456789]].[[0123456789]].[[0123456789]].o | -lcrt[[0123456789]].[[0123456789]][[0123456789]].[[0123456789]].o | -lcrtbegin.o | -lc | -lgcc* | -libmil | -LANG:=* | -lgfortranbegin )
+ -lang* | -lcrt[[012]].o | -lcrt[[0123456789]].[[0123456789]].[[0123456789]].o | -lcrt[[0123456789]].[[0123456789]][[0123456789]].[[0123456789]].o | -lcrtbegin.o | -lc | -lgcc* | -libmil | -little | -LANG:=* | -lgfortranbegin )
;;
-lkernel32)
test x"$CYGWIN" != xyes && ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg"
Reply to: