[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gfortran/BLAS failure Mac 10.6
From: |
Ben Abbott |
Subject: |
Re: gfortran/BLAS failure Mac 10.6 |
Date: |
Thu, 24 Dec 2009 18:16:48 -0500 |
On Dec 24, 2009, at 4:48 PM, Michael D. Godfrey wrote:
> Here is what is wrong with Mac 10.6 ./configure:
>
> configure:33009: checking whether LSAME is called correctly from Fortran
> configure:33032: gfortran_4.4 -o conftest -O -mieee-fp conftest.f
> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/veclib.framework/Versions/A/libBLAS.dylib
> -lm >&5
> Undefined symbols:
> "_lsame_", referenced from:
> _main in ccJlEGZv.o
> _main in ccJlEGZv.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> configure:33032: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> | program main
> |
> | logical lsame,w
> | external lsame
> | character c1,c2
> | c1 = 'A'
> | c2 = 'B'
> | w = lsame(c1,c2)
> | if (w) stop 1
> | w = lsame(c1,c1)
> | if (.not. w) stop 1
> |
> | end
>
> Do I need some option to cause undefined symbol to be found?
When I switched to Mac OS 10.6 I had to use "-Wl,-framework -Wl,vecLib" to link
to Apple's framework.
I'm currently building a 32bit Octave, and have added "-m32" as well.
Ben