The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Install problem on Red Had Entrprise 5.0

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

Install problem on Red Had Entrprise 5.0

Postby loris » Mon Oct 01, 2007 1:51 pm

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
loris
 
Posts: 2
Joined: Mon Oct 01, 2007 1:39 pm

Postby Julie » Mon Oct 01, 2007 2:27 pm

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
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Postby loris » Fri Oct 05, 2007 5:30 pm

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
loris
 
Posts: 2
Joined: Mon Oct 01, 2007 1:39 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests