make on a ROCKS/CENTOS 5.6 system

Post here if you have a question about the installation process

make on a ROCKS/CENTOS 5.6 system

Postby margaret » Fri Jan 06, 2012 5:32 pm

The make of lapack-3.4.0 fails on my system. I used the default make.inc.

I issued

make

The process ends in

gfortran -O2 -c dlarnd.f -o dlarnd.o
ar cr ../../libtmglib.a slatms.o slatme.o slatmr.o slatmt.o slagge.o slagsy.o slakf2.o slarge.o slaror.o slarot.o slatm2.o slatm3.o slatm5.o slatm6.o slatm7.o slahilb.o clatms.o clatme.o clatmr.o clatmt.o clagge.o claghe.o clagsy.o clakf2.o clarge.o claror.o clarot.o clatm1.o clarnd.o clatm2.o clatm3.o clatm5.o clatm6.o clahilb.o slatm1.o slaran.o slarnd.o dlatms.o dlatme.o dlatmr.o dlatmt.o dlagge.o dlagsy.o dlakf2.o dlarge.o dlaror.o dlarot.o dlatm2.o dlatm3.o dlatm5.o dlatm6.o dlatm7.o dlahilb.o zlatms.o zlatme.o zlatmr.o zlatmt.o zlagge.o zlaghe.o zlagsy.o zlakf2.o zlarge.o zlaror.o zlarot.o zlatm1.o zlarnd.o zlatm2.o zlatm3.o zlatm5.o zlatm6.o zlahilb.o dlatm1.o dlaran.o dlarnd.o
ranlib ../../libtmglib.a
make[1]: Leaving directory `/share/apps/lapack-3.4.0/TESTING/MATGEN'
( cd BLAS/TESTING; make -f Makeblat1 )
make[1]: Entering directory `/share/apps/lapack-3.4.0/BLAS/TESTING'
gfortran -O2 -c sblat1.f -o sblat1.o
gfortran sblat1.o \
../../librefblas.a -o ../xblat1s
gfortran: ../../librefblas.a: No such file or directory
make[1]: *** [../xblat1s] Error 1
make[1]: Leaving directory `/share/apps/lapack-3.4.0/BLAS/TESTING'
make: *** [blas_testing] Error 2

How do I get this package installed?
margaret
 
Posts: 1
Joined: Fri Jan 06, 2012 5:19 pm

Re: make on a ROCKS/CENTOS 5.6 system

Postby admin » Fri Jan 06, 2012 5:41 pm

Just type make blaslib to get the Reference BLAS.
Then make again to finish compiling and running the LAPACK testings.
If you want a optimized BLAS library, I would suggest ATLAS, MLK, GOTO BLAS, etc.. more info here: http://en.wikipedia.org/wiki/Basic_Line ... ubprograms
Julie
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: make on a ROCKS/CENTOS 5.6 system

Postby admin » Tue Jan 10, 2012 1:44 pm

Could you please copy/paste the error.
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: make on a ROCKS/CENTOS 5.6 system

Postby jnaka2012 » Thu Jul 26, 2012 12:55 am

Respected Admin,
I have installed lapack-3.4.0 in my centos system. I had followed what admin has suggested.
downloaded lapack-3.4.0.tgz file
then gunzip -c lapack-3.4.0.tgz | tar xvf -

somenath@Binder@Downloads$cd lapack-3.4.0
somenath@Binder@lapack-3.4.0$cp make.inc.example make.inc
somenath@Binder@lapack-3.4.0$make blaslib
somenath@Binder@lapack-3.4.0$make

then this came at last on the screen of terminal.


--> LAPACK TESTING SUMMARY <--
Processing LAPACK Testing output found in the TESTING direcory
SUMMARY nb test run numerical error other error
================ =========== ================= ================
REAL 1064911 39 (0.004%) 0 (0.000%)
DOUBLE PRECISION 1052315 203 (0.019%) 0 (0.000%)
COMPLEX 508588 2 (0.000%) 0 (0.000%)
COMPLEX16 530862 28 (0.005%) 0 (0.000%)

--> ALL PRECISIONS 3156676 272 (0.009%) 0 (0.000%)

S I think its installed perfectly.
Now when I try to run a code

somenath@Binder@~$gfortran main.f90 -llapack -lblas
/usr/bin/ld: cannot find -llapack
collect2: ld returned 1 exit status
somenath@Binder@~$

So can you please help me in this matter.
One more thing.
When I do


somenath@Binder@lapack-3.4.0$cp INSTALL/make.inc.ifort make.inc
somenath@Binder@lapack-3.4.0$ls
BLAS INSTALL librefblas.a README
CMAKE lapack_build.cmake libtmglib.a SRC
CMakeLists.txt lapacke LICENSE TESTING
CTestConfig.cmake lapack.pc.in Makefile
CTestCustom.cmake.in lapack_testing.py make.inc
DOCS liblapack.a make.inc.example
somenath@Binder@lapack-3.4.0$make blaslib
( cd BLAS/SRC; make )
make[1]: Entering directory `/home/somenath/Downloads/lapack-3.4.0/BLAS/SRC'
ifort -O3 -c isamax.f -o isamax.o
make[1]: ifort: Command not found
make[1]: *** [isamax.o] Error 127
make[1]: Leaving directory `/home/somenath/Downloads/lapack-3.4.0/BLAS/SRC'
make: *** [blaslib] Error 2
somenath@Binder@lapack-3.4.0$

Can you help me here also?
Thanks a lot.
Last edited by jnaka2012 on Thu Jul 26, 2012 11:56 am, edited 1 time in total.
jnaka2012
 
Posts: 3
Joined: Thu Jul 05, 2012 1:30 am

Re: make on a ROCKS/CENTOS 5.6 system

Postby admin » Thu Jul 26, 2012 10:32 am

somenath@Binder@~$gfortran main.f90 -llapack -lblas
/usr/bin/ld: cannot find -llapack
collect2: ld returned 1 exit status


Try gfortran main.f90 -L/home/somenath/Downloads/lapack-3.4.0 -llapack -lrefblas


( cd BLAS/SRC; make )
make[1]: Entering directory `/home/somenath/Downloads/lapack-3.4.0/BLAS/SRC'
ifort -O3 -c isamax.f -o isamax.o
make[1]: ifort: Command not found


You do not have the INTEL Fortran compiler: ifort installed on your machine.
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: make on a ROCKS/CENTOS 5.6 system

Postby jnaka2012 » Wed Aug 29, 2012 1:11 pm

Now after struggling with the installation process, I am facing this problem with both gfortran and ifort. Can somebody give me a hint?


[soma@Einstein test]$ ifort sample-matrix-diagonalised.f90 -llapack -lblas
ld: warning: libgfortran.so.3, needed by /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_compare_string@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_transfer_character@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_transfer_integer@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_etime@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_stop_numeric@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_st_write_done@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_pow_i4_i4@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_st_write@GFORTRAN_1.0'
/usr/lib64/libblas.so.3: undefined reference to `_gfortran_runtime_error_at@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_string_len_trim@GFORTRAN_1.0'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.so: undefined reference to `_gfortran_concat_string@GFORTRAN_1.0’
[soma@Einstein test]$
jnaka2012
 
Posts: 3
Joined: Thu Jul 05, 2012 1:30 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests