[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

Hi,

adios FTBFS on sh4.
  http://buildd.debian-ports.org/status/fetch.php?pkg=adios&arch=sh4&ver=1.2.1-2&stamp=1310586554

-----
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/gcc/sh4-linux-gnu/4.6.1
-L/usr/lib/sh4-linux-gnu/gcc/sh4-linux-gnu/4.6.1/../../..
-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.
 http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html

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

Best regards,
 Nobuhiro

-- 
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:=*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"

Reply to: