[Dune] MACOS X build
Markus Blatt
Markus.Blatt at iwr.uni-heidelberg.de
Thu Aug 10 14:11:43 CEST 2006
Hi,
On Wed, Aug 09, 2006 at 11:08:41PM +0200, Oswald Benedikt wrote:
> Hi Dune, the dunecontrol script now works much better, thanks!
> However, the configure fails with dune-common when
> testing for fortran linking, cf. output attached.
> It appears that it knows the libraries, so I am little
> bit stuck.
>
> Goodnight, Benedikt
>
> ----------------------------------------------------------------------------
> checking how to get verbose linking output from g77... -v
> checking for Fortran libraries of g77... -lcrt2.o -L/sw/lib/gcc/powerpc-apple-darwin8.0.0/3.4.3 -L/sw/lib/gcc/powerpc-apple-darwin8.0.0/3.4.3/../../.. -lfrtbegin -lg2c -lSystemStubs -lSystem -lmx /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a
> 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.
>
It looks to me like there is something is messed up on your system:
[Excerpt from config.log:]
configure:26363: gcc -o conftest -g -O2 conftest.c -lcrt2.o -L/sw/lib/gcc/powerpc-apple-darwin8.0.0/3.4.3
+-L/sw/lib/gcc/powerpc-apple-darwin8.0.0/3.4.3/../../.. -lfrtbegin -lg2c -lSystemStubs -lSystem -lmx /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a+>&5
powerpc-apple-darwin8-gcc-4.0.1: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a: No such file or directory
configure:26369: $? = 1
configure: failed program was:
| [Failed program snipped]
configure:26403: result: unknown
configure:26423: error: linking to Fortran libraries from C fails
See `config.log' for more details.
This seems to be the following bug in autoconf:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=271232
What version are you using? Maybe there is a newer version available? It is
fixed in the official 2.60 version.
The following patch fixed the problem in the upstream version 2.60:
http://cvs.savannah.gnu.org/viewcvs/autoconf/lib/autoconf/fortran.m4?root=autoconf&r1=1.181&r2=1.182
Markus
More information about the Dune
mailing list