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

Bug#590335: qd: error: Cannot link C++ and Fortran.



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

Attachment: qd-sh4.patch
Description: application/octetstream


Reply to: