compiling lapack 64 bit

Post here if you have having problem using the Makefile build process.

compiling lapack 64 bit

Postby daanmeerburg » Fri Jan 21, 2011 11:16 am

Hi,
I have been trying to compile lapack for 2 days with no success. I have installed lapack on my system (apple osx 10.6.6, intel, core 2 duo), but it was build 32 bit, which gives architecture issues once I try to compile some other programs in 64 (that use the libs). Now, since I already compiled it before I thought it would be no problem to compile it again in 64 bit. Well, I was wrong.. many many hours later, I am still not able to compile lapack!!! I went through all possible forums, but no-one seems to have problems that are related. In any case, currently I am stuck with two versions (I have tried to recompile my own version (v 3.1.1), after that I downloaded the latest to see if that would work)

The error I get now (one of many I have overcome, but now I looking for an expert telling me what to do next) v 3.3.0:

../../tmglib_DARWIN.a ../../lapack_DARWIN.a ../../blas_DARWIN.a -o xlintsts && mv xlintsts ../xlintsts
gfortran: ../../blas_DARWIN.a: No such file or directory
make[2]: *** [../xlintsts] Error 1
make[1]: *** [xlintsts] Error 2
make: *** [lapack_testing] Error 2

So there is no blas lib, but I though lapack is supposed to make this?!?! Maybe I am wrong (most probaly I am, I am not an expert). The makefile (make.inc) I use is:

# -*- Makefile -*-
####################################################################
# LAPACK make include file. #
# LAPACK, Version 3.3.0 #
# November 2010 #
####################################################################
#
# See the INSTALL/ directory for more examples.
#
SHELL = /bin/sh
#
# The machine (platform) identifier to append to the library names
#
PLAT = _DARWIN
#
# Modify the FORTRAN and OPTS definitions to refer to the
# compiler and desired compiler options for your machine. NOOPT
# refers to the compiler options desired when NO OPTIMIZATION is
# selected. Define LOADER and LOADOPTS to refer to the loader
# and desired load options for your machine.
#
FORTRAN = gfortran -fimplicit-none -g
OPTS = -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC
DRVOPTS = $(OPTS)
NOOPT = -g -O0
LOADER = gfortran -g
LOADOPTS =
#
# Timer for the SECOND and DSECND routines
#
# Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
# TIMER = EXT_ETIME
# For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
# TIMER = EXT_ETIME_
# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME
# TIMER = INT_ETIME
# If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...)
# SECOND and DSECND will use a call to the Fortran standard INTERNAL FUNCTION CPU_TIME
TIMER = INT_CPU_TIME
# If neither of this works...you can use the NONE value... In that case, SECOND and DSECND will always return 0
# TIMER = NONE
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
ARCH = ar
ARCHFLAGS= cr
RANLIB = ranlib
#
# The location of BLAS library for linking the testing programs.
# The target's machine-specific, optimized BLAS library should be
# used whenever possible.
#
BLASLIB = ../../blas$(PLAT).a
#
# Location of the extended-precision BLAS (XBLAS) Fortran library
# used for building and testing extended-precision routines. The
# relevant routines will be compiled and XBLAS will be linked only if
# USEXBLAS is defined.
#
# USEXBLAS = Yes
#XBLASLIB =
# XBLASLIB = -lxblas
#
# Names of generated libraries.
#
LAPACKLIB = lapack$(PLAT).a
TMGLIB = tmglib$(PLAT).a
EIGSRCLIB = eigsrc$(PLAT).a
LINSRCLIB = linsrc$(PLAT).a

Any help would be appreciated.
regards
daan

I have also uploaded the makefile output
daanmeerburg
 
Posts: 3
Joined: Fri Jan 21, 2011 8:59 am

Return to Makefile

Who is online

Users browsing this forum: No registered users and 2 guests

cron