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 10:43 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

Re: compiling lapack 64 bit

Postby admin » Fri Jan 21, 2011 11:54 am

Move the -m64 to the FORTRAN line
Either OPTS or NOOPT are used, so I guess all the "NOOPT routines" were missing the 64 bits flag.
Code: Select all
FORTRAN = gfortran -fimplicit-none -g -m64
OPTS = -O2 -DEXPRECISION -m128bit-long-double -Wall -DF_INTERFACE_GFORT -fPIC
DRVOPTS = $(OPTS)
NOOPT =  -O0
LOADER = gfortran -g
LOADOPTS =

Feel free also to try the CMAKE build system, it is easier.
Julie
admin
Site Admin
 
Posts: 440
Joined: Wed Dec 08, 2004 7:07 pm

Re: compiling lapack 64 bit

Postby daanmeerburg » Sat Jan 22, 2011 7:35 am

Thanx,
Unfortunately I keep getting the same error:

../../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

In the 3.1.1 version I get a similar error, but already for the lapack_DARWIN.a lib:

none ../lapack_DARWIN.a
make[1]: none: No such file or directory
make[1]: *** [../lapack_DARWIN.a] Error 1
make: *** [lapacklib] Error 2

in the make.out file you see that there exist lots of functions that have arguments that are unused? You think it might have something to do with this?
Thanks again for your comments. Hope that you have some other ideas.
kind regards
daan
daanmeerburg
 
Posts: 3
Joined: Fri Jan 21, 2011 8:59 am

Re: compiling lapack 64 bit

Postby admin » Sat Jan 22, 2011 7:39 am

Try
Code: Select all
make blaslib
then
Code: Select all
make
admin
Site Admin
 
Posts: 440
Joined: Wed Dec 08, 2004 7:07 pm

Re: compiling lapack

Postby rajapa53 » Tue Oct 04, 2011 1:44 am

make_inc_RS6K.txt
make.inc.RS6K
(2.34 KiB) Downloaded 40 times
Makefile.txt
Makefile
(3.12 KiB) Downloaded 34 times

HI,
I m trying to install lapack on IBM P6 machine in AIX 5.3 OS, I m while gmake i m getting error like

gmake[1]: Entering directory `/gpfs2/home/raja/lapack-3.3.1/SRC'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/gpfs2/home/raja/lapack-3.3.1/SRC'
( cd TESTING/MATGEN; gmake )
gmake[1]: Entering directory `/gpfs2/home/raja/lapack-3.3.1/TESTING/MATGEN'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/gpfs2/home/raja/lapack-3.3.1/TESTING/MATGEN'
( cd TESTING ; gmake )
gmake[1]: Entering directory `/gpfs2/home/raja/lapack-3.3.1/TESTING'
cd EIG ; gmake single
gmake[2]: Entering directory `/gpfs2/home/raja/lapack-3.3.1/TESTING/EIG'
\
xlf_r -o xeigtsts \
schkee.o sbdt01.o sbdt02.o sbdt03.o schkbb.o schkbd.o schkbk.o schkbl.o schkec.o schkgg.o schkgk.o schkgl.o schkhs.o schksb.o schkst.o sckcsd.o sckglm.o sckgqr.o sckgsv.o scklse.o scsdts.o sdrges.o sdrgev.o sdrgsx.o sdrgvx.o sdrvbd.o sdrves.o sdrvev.o sdrvgg.o sdrvsg.o sdrvst.o sdrvsx.o sdrvvx.o serrbd.o serrec.o serred.o serrgg.o serrhs.o serrst.o sget02.o sget10.o sget22.o sget23.o sget24.o sget31.o sget32.o sget33.o sget34.o sget35.o sget36.o sget37.o sget38.o sget39.o sget51.o sget52.o sget53.o sget54.o sglmts.o sgqrts.o sgrqts.o sgsvts.o shst01.o slarfy.o slarhs.o slatm4.o slctes.o slctsx.o slsets.o sort01.o sort03.o ssbt21.o ssgt01.o sslect.o sspt21.o sstt21.o sstt22.o ssyt21.o ssyt22.o slafts.o slahd2.o slasum.o slatb9.o sstech.o sstect.o ssvdch.o ssvdct.o ssxt1.o alahdg.o alasum.o alasvm.o alareq.o ilaenv.o xerbla.o xlaenv.o chkxer.o ../../tmglib_RS6K.a \
../../lapack_RS6K.a -lessl && mv xeigtsts ../xeigtsts
ld: 0711-317 ERROR: Undefined symbol: .srotm
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[2]: *** [../xeigtsts] Error 8
gmake[2]: Leaving directory `/gpfs2/home/raja/lapack-3.3.1/TESTING/EIG'
gmake[1]: *** [xeigtsts] Error 2
gmake[1]: Leaving directory `/gpfs2/home/raja/lapack-3.3.1/TESTING'
gmake: *** [lapack_testing] Error 2

here with i attach Makefile and make.in.RS6K
Any help would be appreciated.

Regards
Rajamanickam
HCL Infosystems Ltd
rajapa53
 
Posts: 1
Joined: Tue Oct 04, 2011 12:25 am

Re: compiling lapack 64 bit

Postby admin » Tue Jan 17, 2012 2:45 pm

Which machine and which compiler are you using?
What is your error?
admin
Site Admin
 
Posts: 440
Joined: Wed Dec 08, 2004 7:07 pm


Return to Makefile

Who is online

Users browsing this forum: No registered users and 1 guest