Page 1 of 1

Install problem on Red Had Entrprise 5.0

PostPosted: Mon Oct 01, 2007 1:51 pm
by loris
Hi all.

I am trying to install lapack 3.1.1 on an Intel Xeon quad core running RH Enterprise 5.0 x86_64 using gfortran 4.1.1. I am using the same settings as in make.inc.gfortran.

Compilation fails with

Code: Select all
f77   second_INT_ETIME.f     -o second_INT_ETIME
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/libfrtbegin.a(frtbegin.o): In function 'main':
(.text+0xle): undefined reference to 'MAIN__'


Any idea how to solve this?
Thank you

PostPosted: Mon Oct 01, 2007 2:27 pm
by Julie
loris.
It looks like you copy command fails and you really modify incorrectly your make.inc
Copy the make.inc.gfortran from the INSTALL directory to make.inc
Code: Select all
cp INSTALL/make.inc.gfortran make.inc

You should see the use of the gfortran compiler, not f77 , the optimization flag, the -c to tell the compiler not to link (and thus not to look for a main)
Something like that:
Code: Select all
gfortran -O2 -c second_INT_ETIME.f -o second_INT_ETIME.o

Julie

PostPosted: Fri Oct 05, 2007 5:30 pm
by loris
thank you. that worked. :)

the problem I had was due to the the editor I used left some formatting symbol at the end of the make.inc lines I modified. I opened the make.inc with emacs and found them.

thanks,
loris