failed build with current mercurial sources
Ben Abbott
bpabbott at mac.com
Wed Mar 19 08:03:25 CDT 2008
On Mar 19, 2008, at 8:48 AM, Jaroslav Hajek wrote:
>>
>>> I think so. I'm similarly experienced with mercurial as you. If feel
>>> up to it, you can also try
>>> checking out the latest repo then download the patch I've posted and
>>> apply it; and tell us whether it works, i.e., without -ff2c, you
>>> should get
>>> "checking for compatible BLAS ZDOTC/ZDOTU calling convention...no"
>>> and then a warning
>>> "BLAS library found, but seems incompatible with the Fortran
>>> compiler.
>>> The default BLAS will be used. Try adding -ff2c to FFLAGS as a
>>> workaround"
>>> and BLAS_LIBS should be empty
>>>
>>> with -ff2c, the test should pass and let the BLAS be linked.
>>>
>>> regards
>>
>> So I must apply the revert John's change *and* apply your patch?
>>
>> Shall I link to Apple's lapack/blas, or to atlas?
>>
>> Apple's is compiled using f2c (at least I think it is). My Atlas is
>> built using gfortran.
>>
>> Ben
>>
>>
>>
>
> Ben,
>
> the ATLAS does not contain the complete LAPACK, just several
> subroutines of it. If you compile ATLAS with gfortran, and supplement
> it with the Apple's lapack built with f2c, you'll still run into
> problems, as LAPACK will expect ZDOTC and ZDOTU to conform to f2c
> convention.
What parameters need to be passed to ./configure in order to avoid
Apple's lapack/blas?
# For Apple's vecLib, I was using this
./configure --prefix=/sw 'FLIBS=/sw/lib/gcc4.2/lib/libgfortran.dylib'
'F77=/sw/bin/gfortran' '--infodir=${prefix}/share/info' '--mandir=$
{prefix}/share/man' '--libexecdir=${prefix}/lib' '-enable-shared' '-
enable-dl' '--disable-static' '--without-mpi' '--with-hdf5' '--with-
fftw' '--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/System/
Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/
vecLib.framework/Versions/A/libLAPACK.dylib:/System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/
libLAPACK.dylib' '--with-blas=-Wl,-framework,Accelerate,-dylib_file,/
System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/
vecLib.framework/Versions/A/libBLAS.dylib:/System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/
libBLAS.dylib' 'CFLAGS=-O3' 'LDFLAGS=-g -L/sw/lib' 'CPPFLAGS=-g -I/sw/
include' 'CXXFLAGS=-g -O3' 'FFLAGS=-fbounds-check -g -O3' --cache-
file=/dev/null --srcdir=.
# For Atlas, I've been using this
./configure --prefix=/sw 'FLIBS=/sw/lib/gcc4.2/lib/libgfortran.dylib'
'F77=/sw/bin/gfortran' '--infodir=${prefix}/share/info' '--mandir=$
{prefix}/share/man' '--libexecdir=${prefix}/lib' '-enable-shared' '-
enable-dl' '--disable-static' '--without-mpi' '--with-hdf5' '--with-
fftw' '--with-lapack=/sw/lib/liblapack.dylib --with-blas=/sw/lib/
libf77blas.dylib' 'CFLAGS=-g -O3' 'LDFLAGS=-g -L/sw/lib' 'CPPFLAGS=-g -
I/sw/include' 'CXXFLAGS=-g -O3' 'FFLAGS=-fbounds-check -g -O3' --cache-
file=/dev/null --srcdir=.
# Should the options below avoid the entire issue?
./configure --prefix=/sw 'FLIBS=/sw/lib/gcc4.2/lib/libgfortran.dylib'
'F77=/sw/bin/gfortran' '--infodir=${prefix}/share/info' '--mandir=$
{prefix}/share/man' '--libexecdir=${prefix}/lib' '-enable-shared' '-
enable-dl' '--disable-static' '--without-mpi' '--with-hdf5' '--with-
fftw' 'CFLAGS=-g -O3' 'LDFLAGS=-g -L/sw/lib' 'CPPFLAGS=-g -I/sw/
include' 'CXXFLAGS=-g -O3' 'FFLAGS=-fbounds-check -g -O3' --cache-
file=/dev/null --srcdir=.
It is the first two that should be combined with your patch and the -
ff2c options, correct?
Ben
p.s. I have a busy day. I may not have an opportunity to try your
patch for the next 9-10 hrs.
More information about the Bug-octave
mailing list