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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Nobuhiro Iwamatsu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: v-sim
Version: 3.5.0-1
Severity: important
User: debian-sh4@...
Usertags: sh4
X-Debbugs-CC: debian-superh@...

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?a=sh4

v-sim can not build on sh4. Because configure of this package generated
from old autoconf.
  http://buildd.debian-ports.org/fetch.php?pkg=v-sim&arch=sh4&ver=3.5.0-1&stamp=1257189249&file=log&as=raw

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

Old autoconf adds -little option to compile option. Some CPU 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  patche.

Best regards,
 Nobuhiro

[v-sim_sh4_support.patch]

diff -urNad v-sim-3.5.0~/configure v-sim-3.5.0/configure
--- v-sim-3.5.0~/configure 2009-10-22 12:22:53.000000000 +0000
+++ v-sim-3.5.0/configure 2009-11-03 13:39:17.000000000 +0000
@@ -25666,7 +25666,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_fc_libs="$ac_cv_fc_libs $ac_arg"


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

by Nobuhiro Iwamatsu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: harminv
Version: 1.3.1-2
Severity: important
Tags: patch
User: debian-sh4@...
Usertags: sh4
X-Debbugs-CC: debian-superh@...

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?a=sh4

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

-----
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
-lm -lgcc_s
checking for dummy main to link with Fortran 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.
 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.

Best regards,
 Nobuhiro


harminv_sh4_support.dpatch (1K) Download Attachment