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

Bug#554380: FTBFS: configure: error: linking to Fortran libraries from C fails

Package: libitpp
Version: 4.0.6-3
Severity: important
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


I am now trying to run Debian on Renesas SH(sh4) CPU.

libitpp can not build on sh4. Because configure of this package generated
from old autoconf.

checking for Fortran 77 libraries of gfortran...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.

Old autoconf adds -little option to compile option. sh4 architecture can't
interpret this option. Therefore, this has build error.

We need patch revising this.
I added patch to revising these. Package building was fine.
Please apply  patch.

Best regards,
--- a/configure	2009-11-04 02:19:41.000000000 +0000
+++ b/configure	2009-11-04 02:19:57.000000000 +0000
@@ -23553,7 +23553,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:*)
           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"

Reply to: