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

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

Source: adios
Version: 1.2.1-2
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


adios FTBFS on sh4.

checking for MPI_Init... yes
checking for mpi.h... yes
checking for mpic++... mpic++
checking for mpi.h... yes
checking for f95... f95
checking whether we are using the GNU Fortran compiler... yes
checking whether f95 accepts -g... yes
checking whether f95 understands -c and -o together... yes
checking how to get verbose linking output from f95... -v
checking for Fortran libraries of f95...  -little
-L/usr/lib/sh4-linux-gnu -lgfortran -lm -lgcc_s
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
checking for dummy main to link with Fortran libraries... unknown
==> config.log <==
This file contains any mess

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 or update configure.

Best regards,

Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff --git a/configure b/configure
index 62d29ed..e9b19b2 100755
--- a/configure
+++ b/configure
@@ -6096,7 +6096,7 @@ fi
           # Ignore these flags.
-        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
+        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -little | -LANG:=*)
           test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"

Reply to: