[GRASSLIST:2602] compilation with BLAS under OSX

Hi,

During the configuration process, when --with-blas is specified, the configure looks for -lblas. Under OSX, using Apple's developer tools, the BLAS library is specified as cblas, therefore the configuration fails. Changing -lblas to -lcblas in the configuration file fixes this failure. Someone might want to alter the configuration file in CVS to look for either.

Chris
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia

On Fri, Feb 13, 2004 at 02:06:22PM -0500, Christopher Fonnesbeck wrote:

Hi,

During the configuration process, when --with-blas is specified, the
configure looks for -lblas. Under OSX, using Apple's developer tools,
the BLAS library is specified as cblas, therefore the configuration
fails. Changing -lblas to -lcblas in the configuration file fixes this
failure. Someone might want to alter the configuration file in CVS to
look for either.

Note, that so far BLAS and LAPACK are unused (AFAIK).
The support is intented to future expansion, we all hope for
'gmath' library being extended with a nice statistical library.
Volunteers welcome to move existing code spreaded all over
GRASS into a single library.

Markus

[oops meant to send to list as well]

Chris,

That's strange, because there is no libcblas in Mac OS X, so -lcblas should not work (doesn't for me - MOSX 10.3.2 + current Dev Tools, never did as far back as MOSX 10.1).

Blas IS included in the vecLib framework in OS X, tho (that's probably where you found the cblas reference, I think that's how I found the vecLib thing). The way I've always fixed this is to patch configure by changing all occurrences of '-lblas' to '-framework vecLib'. At the same time you can change all '-llapack' to '-framework vecLib' to get lapack - it's also in the vecLib framework.

On Feb 13, 2004, at 1:06 PM, Christopher Fonnesbeck wrote:

Hi,

During the configuration process, when --with-blas is specified, the configure looks for -lblas. Under OSX, using Apple's developer tools, the BLAS library is specified as cblas, therefore the configuration fails. Changing -lblas to -lcblas in the configuration file fixes this failure. Someone might want to alter the configuration file in CVS to look for either.

Chris
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia

-----
William Kyngesburye <kyngchaos@charter.net>
http://webpages.charter.net/kyngchaos/

[Trillian] What are you supposed to do WITH a maniacally depressed robot?

[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy