Error while installing LAPACK

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

Error while installing LAPACK

Postby rmouazz » Wed Oct 08, 2014 10:33 am

Dear all,
I have trubble while installing LAPACK on my ubuntu linux system.
I modified the make.inc file:
Code: Select all
####################################################################
#  LAPACK make include file.                                       #
#  LAPACK, Version 3.0                                             #
#  June 30, 1999                                                  #
####################################################################
#
SHELL = /bin/sh
#
#  The machine (platform) identifier to append to the library names
#
PLAT = _SUN4SOL2

#  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  = ifort
#OPTS     = -O4 -u -f -mt
#OPTS     = -u -f -dalign -native -xO5 -xarch=v8plusa
OPTS     = -O2
DRVOPTS  = $(OPTS)
NOOPT    =
#NOOPT    = -u -f -mt
LOADER   = ifort
#LOADOPTS = -mt
LOADOPTS =
#
#  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   = echo
#
#  The location of the libraries to which you will link.  (The
#  machine-specific, optimized BLAS library should be used whenever
#  possible.)
#
#BLASLIB      = ../../blas$(PLAT).a
#BLASLIB     = -xlic_lib=sunperf_mt
BLASLIB     = -xlic_lib=sunperf
LAPACKLIB    = lapack$(PLAT).a
TMGLIB       = tmglib$(PLAT).a
EIGSRCLIB    = eigsrc$(PLAT).a
LINSRCLIB    = linsrc$(PLAT).a

in order to use my intel fortran compiler with the relevant options.
I haven't modified the Makefile so far, I just tried to run it, and I get the following error message:
Code: Select all
ifort: command line error: Unrecognized keyword 'lic_lib=sunperf' for option '-x'
make[2]: *** [../xlintsts] Error 1
make[2]: Leaving directory `/home/quazzani/LAPACK/TESTING/LIN'
make[1]: *** [xlintsts] Error 2
make[1]: Leaving directory `/home/quazzani/LAPACK/TESTING'
make: *** [testing] Error 2

I don't understand this error message. It would be very nice if anyone could help me out with that, please note that I am a beginner with all that.
best,
Rhita
rmouazz
 
Posts: 1
Joined: Wed Oct 08, 2014 10:20 am

Re: Error while installing LAPACK

Postby admin » Wed Oct 08, 2014 12:20 pm

Dear Rhita,
Looks like you are using an oldest LAPACK version with a configuration file for Sun machines.
Just follow the steps bellow:
- Download the latest LAPACK package from http://www.netlib.org/lapack - direct link is http://www.netlib.org/lapack/lapack-3.5.0.tgz
- unzip folder
- once in the LAPACK folder, just copy the INSTALL/make.inc.ifort to make.inc
- check the make.inc variable but it should be fine.
- If you want to run the LAPACK testings with the reference BLAS
- make blaslib
- if you want to run the LAPACK testings with an optimized BLAS library
- edit the make.inc and change the value of the BLASLIB variable accordingly
- make

Hope it helps
Julie
admin
Site Admin
 
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm


Return to Makefile

Who is online

Users browsing this forum: No registered users and 1 guest

cron