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

Bug#609074: silo-llnl: error: Cannot link C++ and Fortran



Source: silo-llnl
Version: 4.8-1
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org

Hi,

silo-llnl FTBFS on SH4.
Because configure included in qd is created in old autoconf.
  http://buildd.debian-ports.org/fetch.php?pkg=silo-llnl&arch=sh4&ver=4.8-1&stamp=1294006727&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.4.5 -L/usr/lib/gcc/sh4-linux-gnu/4.4.5/../../.. -lgfortranbegin -lgfortran -lm
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
-----

This become the error by the following contents in config.log.
-----
COLLECT_GCC_OPTIONS='-o' 'conftest' '-g' '-O2' '-v' '-shared-libgcc'
/usr/lib/gcc/sh4-linux-gnu/4.4.5/collect2 --build-id --eh-frame-hdr -m shlelf_linux -dynamic-linker /lib/ld-linux.so.2 -o conftest /usr/lib/gcc/sh4-linux-gnu/4.4.5/../../../crt1.o /usr/lib/gcc/sh4-linux-gnu/4.4.5/../../../crti.o /usr/lib/gcc/sh4-linux-gnu/4.4.5/crtbegin.o -L/usr/lib/gcc/sh4-linux-gnu/4.4.5 -L/usr/lib/gcc/sh4-linux-gnu/4.4.5 -L/usr/lib/gcc/sh4-linux-gnu/4.4.5/../../.. /tmp/cc2f8hZJ.o -lgfortranbegin -lgfortran -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/sh4-linux-gnu/4.4.5/crtend.o /usr/lib/gcc/sh4-linux-gnu/4.4.5/../../../crtn.o
configure:5219: result:  -little -L/usr/lib/gcc/sh4-linux-gnu/4.4.5 -L/usr/lib/gcc/sh4-linux-gnu/4.4.5/../../.. -lgfortranbegin -lgfortran -lm
configure:5236: checking for dummy main to link with Fortran libraries
configure:5280: gcc -o conftest -g -O2   conftest.c   -little -L/usr/lib/gcc/sh4-linux-gnu/4.4.5 -L/usr/lib/gcc/sh4-linux-gnu/4.4.5/../../.. -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: signature.asc
Description: Digital signature


Reply to: