Ahmed,
In the "config" phase, certain programs are run. In this case a Fortran MAIN
program that calls a "c" routine.
I don't know which Fortran compiler you are using (if you're using GNU-cc YOU
SHOULD BE USING GNU-f77 GNU-f77), but you may have to add a flag to say this is
what you want to do and that flag causes the loader to look in directory
"/usr/lib/gcc-lib/i386-redhat-linux/2.96" for the routine:
crtbegin.o
(this may be short for "c-routine-begin and needed if the c-routine does I/O,
which this one does. Normally I/O initialisation routines are set-up in the "c"
"main()" program (which this doesn't have - it's a Fortran MAIN program instead)
I'm only guessing, but check your "f77" documentation to see if there is a flag
that needs to be specified in this case (say "-Z" then export the environment
variable "FFLAGS=-Z ; export FFLAGS" before calling ./configure.
Regards
Neil
Ahmad Faraj wrote:
> Hi there
> I am trying to install latest lam 7 on a redhat 9 box. I am using a gcc
> 2.96. When I just run configure i get the following:
>
> *** Fortran Compiler
> checking for f77... f77
> checking how to add a library directory to f77... "-L"
> checking f77 external naming convention... FORTRANDOUBLEUNDERSCORE
> checking for FORTRAN optimization flags... -O
> checking size of FORTRAN INTEGER... unknown
> configure: WARNING: *** Problem running configure test!
> configure: WARNING: *** See config.log for details.
> configure: error: *** Cannot continue.
>
> attached is the config.log.
>
> I also took a different route. I downloaded the linux i586 rpm and
> installed it. It went ok. yet, when i tried to compile some fortran file,
> it complain about not being able to:
> ld crtbegin.o: no such file or directory
>
> although that file is under /usr/lib/gcc-lib/i386-redhat-linux/2.96
>
> I would appreciate any help. I really want to take the first route and see
> what is wrong with the first approach.
>
> *********************************************************************
> Ahmad Faraj Office: 205A James Lov Building
> Ph.D Candidate Phone: (850)644-0346
> Department of Computer Science Fax: (850)644-0058
> Florida State University Email: faraj_at_[hidden]
> Tallahassee, FL 32306 URL: http://www.cs.fsu.edu/~faraj
> **********************************************************************
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
+-----------------+---------------------------------+------------------+
| Neil Storer | Head: Systems S/W Section | Operations Dept. |
+-----------------+---------------------------------+------------------+
| ECMWF, | email: neil.storer_at_[hidden] | //=\\ //=\\ |
| Shinfield Park, | Tel: (+44 118) 9499353 | // \\// \\ |
| Reading, | (+44 118) 9499000 x 2353 | ECMWF |
| Berkshire, | Fax: (+44 118) 9869450 | ECMWF |
| RG2 9AX, | | \\ //\\ // |
| UK | URL: http://www.ecmwf.int/ | \\=// \\=// |
+--+--------------+---------------------------------+----------------+-+
| ECMWF is the European Centre for Medium-Range Weather Forecasts |
+-----------------------------------------------------------------+
|