octave-maintainers
[Top][All Lists]
Advanced

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

Re: f2c obsolete?


From: John W. Eaton
Subject: Re: f2c obsolete?
Date: Wed, 31 Oct 2007 15:19:26 -0400

On 27-Oct-2007, Thomas Treichl wrote:

| PS. My ./configure problem if I cross-compile for PPC on IA, I changed 
| configure.in line 760 into this
| 
|      AC_LANG_PUSH(Fortran 77)
|      (eval "$ac_compile"; eval "$ac_link") 2>&AS_MESSAGE_LOG_FD
|    echo $ac_compile
|    echo $ac_link
|      AC_LANG_POP(Fortran 77)
| 
| The output is
| 
|    checking BLAS library calling convention compatibility...
|    $F77 -c $FFLAGS conftest.$ac_ext >&5
|    $F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5
| 
| the config.log says:
| 
|    configure:13716: checking BLAS library calling convention compatibility
|      MAIN foo:
|      MAIN foo:
|    i686-apple-darwin8-gcc-4.0.1: unrecognized option '-syslibroot'
|    /usr/bin/ld: warning conftest.o cputype (18, architecture ppc) does not 
match
|      cputype (7) for specified -arch flag: i386 (file not loaded)
|    /usr/bin/ld: can't map file: /Developer/SDKs/MacOSX10.3.9.sdk ((os/kern)
|      invalid argument)collect2: ld returned 1 exit status
| 
| So the problem is that I can't feed through the LD flags through the fort77 
| script to the linker. Can we change the test in a way that we link the 
program 
| outside of AC_LANG_PUSH(Fortran 77), AC_LANG_POP(Fortran 77) with g++?

Propose a patch.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]