[Pkg-scicomp-devel] Bug#590335: qd: error: Cannot link C++ and Fortran.

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Mon Jul 26 04:38:08 UTC 2010


Source: qd
Version: 2.3.7-2.1
Severity: important
Tags: patch
User: debian-sh4 at superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh at 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

qd FTBFS on SH4.
Because configure included in qd is created in old autoconf.
  http://buildd.debian-ports.org/fetch.php?pkg=qd&arch=sh4&ver=2.3.7-2.1&stamp=1279369635&file=log&as=raw
-----
checking whether f95 accepts -g... yes
checking how to get verbose linking output from f95... -v
checking for Fortran libraries of f95...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.4.4
-L/usr/lib/gcc/sh4-linux-gnu/4.4.4/../../.. -lrt -lgfortranbegin
-lgfortran -lm
checking for Fortran flag needed to allow free-form source... -ffree-form
checking for etime... etime
checking whether extra library is needed to link Fortran and C++... unknown
configure: error: Cannot link C++ and Fortran.
-----

This become the error by the following contents in config.log.
-----
configure:8287: result: etime
configure:8301: checking whether extra library is needed to link Fortran and C++
configure:8340: c++ -o conftest -O3    conftest.cpp -lrt   -little
-L/usr/lib/gcc/sh4-linux-gnu/4.4.4
-L/usr/lib/gcc/sh4-linux-gnu/4.4.4/../../.. -lrt -lgfortranbegin
-lgfortran -lm  >&5
/usr/bin/ld: cannot find -little
collect2: ld returned 1 exit status
-----

Could you update confiugre with new autoconf?
Or please apply the patch which I attached.
This is patch for quick fix.

Best regards,
 Nobuhiro
-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qd-sh4.patch
Type: application/octetstream
Size: 725 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-scicomp-devel/attachments/20100726/03f344cd/attachment.bin>


More information about the Pkg-scicomp-devel mailing list