installation problem with Fedora core 7 (x86_64)

Open discussion regarding features, bugs, issues, vendors, etc.

installation problem with Fedora core 7 (x86_64)

Postby peterfish » Thu Dec 06, 2007 2:46 am

I'm trying to install LAPACK 3.1.1 on a Fedora core 7 (Intel Quad processor)
I just used make.inc.LINUX in /INSTALL forder.
That makes no problem until I made the BLAS library included in LAPACK/BLAS
But, when I type 'make' at the /LAPACK/,
there is a error message like,

( cd INSTALL; make; ./testlsame; ./testslamch; \
./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
make[1]: Entering directory `/home/peterfish/lib/lapack-3.1.1/INSTALL'
gcc -o testlsame lsame.o lsametst.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
lsametst.o: In function `MAIN__':

lsametst.f:(.text+0x15): undefined reference to `_gfortran_set_std'
lsametst.f:(.text+0x3d): undefined reference to `_gfortran_st_write'
lsametst.f:(.text+0x4f): undefined reference to `_gfortran_transfer_character'
lsametst.f:(.text+0x57): undefined reference to `_gfortran_st_write_done'
lsametst.f:(.text+0x214): undefined reference to `_gfortran_st_write'
...
...


I just guess it is soemwhat related to the 64-bit OS or compiler (compiler is gcc 4.1.2)
when I tried to install LAPACK on Fedora core 1 (pentium4),
there is no problem~

from Where should i touch?~
Is there any easier way to install LAPACK?
should I get an knowledge on 64-bit OS or compiler Or like that??

plz help me~
thank you.
Last edited by peterfish on Thu Dec 06, 2007 7:53 am, edited 1 time in total.
peterfish
 
Posts: 4
Joined: Thu Dec 06, 2007 2:06 am

Postby ruilinchu » Thu Dec 06, 2007 5:00 am

did you "make blaslib" first?
ruilinchu
 
Posts: 12
Joined: Mon Nov 26, 2007 9:03 am

Postby peterfish » Thu Dec 06, 2007 7:51 am

yes~

Not the exactly same way,
I did step by step directly by typing in a command-line for installing blaslib
(perfectly same with 'make blaslib')


The error arised at the step, 'make lapack_install'

the same approach was successful at the Fedora core 1 (pen 4) with the same 'make.inc', existed at /INSTALL/make.inc.LINUX

..
:cry:
peterfish
 
Posts: 4
Joined: Thu Dec 06, 2007 2:06 am

Postby Julien Langou » Thu Dec 06, 2007 12:06 pm

In make.inc, I think your lines read:
Code: Select all
FORTRAN = gfortran
LOADER = gcc

if that's the case, change this with
Code: Select all
FORTRAN = gfortran
LOADER = gfortran

Julien.
Julien Langou
 
Posts: 734
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Postby peterfish » Thu Dec 06, 2007 12:38 pm

It works!

so thanks about your comment~
thank you, Julien Langou~
How simple it was~

so...
I have a question..

'gcc' is an incorrect compiler for that case?
If it is.. why?~
why 'gfortran' only works?
peterfish
 
Posts: 4
Joined: Thu Dec 06, 2007 2:06 am

Postby Julien Langou » Thu Dec 06, 2007 1:06 pm

gcc is perfectly fine as a loader. The main problem is that gfortran uses
some of its own libraries and so if you want to link with gcc a code compiled
with gfortran, you need to add the link to the gfortran libraries.

That is what gcc is complaining about with:
Code: Select all
undefined reference to `_gfortran_set_std'
undefined reference to `_gfortran_st_write'
undefined reference to `_gfortran_transfer_character'
undefined reference to `_gfortran_st_write_done'


Rather than finding which libraries you are missing in your system, a
standard advice is to use the Fortran compiler as the loader.

Julien.
Julien Langou
 
Posts: 734
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Postby peterfish » Fri Dec 07, 2007 12:14 am

oh..

I got it~

Thank you again..!
peterfish
 
Posts: 4
Joined: Thu Dec 06, 2007 2:06 am


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 4 guests