On 21/10/11 22:26 , Alexander Hansen wrote:
[]
>>> checking whether SDOT is called correctly from Fortran... yes
>>> checking whether DDOT is called correctly from Fortran... yes
>>> checking whether CDOTU is called correctly from Fortran... no
>>> checking whether ZDOTU is called correctly from Fortran... no
>> []
>>> checking whether SDOT is called correctly from Fortran... no
>>> checking whether DDOT is called correctly from Fortran... yes
>>> checking whether CDOTU is called correctly from Fortran... yes
>>> checking whether ZDOTU is called correctly from Fortran... yes
[]
>> All this in one configure run? This is, to phrase it politely, not
>> very consistent.
>
> I think I found a reason for this inconsistency. These results were
> from the build of fltk-backend-aqua-oct343, which builds all of Octave
> and then throws most of it away. Since the FLTK modules don't
> actually care about BLAS or LAPACK, I didn't bother adding the -ff2c
> Fortran compiler flag. I use this in the normal Octave packages
> because it is apparently necessary when using the Accelerate framework.
I did some tests by hand (on 10.6/64bit), with and without -ff2c, for
the sdot and cdotu tests from configure, and with the compiler flags
from configure, namely
/sw/bin/gfortran-fsf-4.6 -o conftest -O3 -Wl,-dead_strip_dylibs
-L/sw_x86_64/lib sdottest.f -Wl,-framework,Accelerate -lhdf5 -lz -lm
-lGraphicsMagick -lmetis
Result with -ff2c: sdot miscompiles, cdotu compiles correctly.
The error is that the line
w = sdot(1,a(1),1,b(1),1)
gives the result w=0 instead of correctly w=2
Result without -ff2c: sdot compiles correctly, cdotu miscompiles
The error is that the executable segfaults
It seems that recent 64bit gfortran is simply incompatible with Apple's
vecLib. On some octave mailing list, this has already been observed a
couple of months ago:
<https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-January/022393.html>
--
Martin
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users