AMBER Archive (2008)

Subject: RE: AMBER: Compailation problum in Amber 10

From: Ross Walker (ross_at_rosswalker.co.uk)
Date: Wed Aug 06 2008 - 09:50:05 CDT


Hi Srinivas

 

What version of gfortan are you using here? -fno-range-check was an allowed
option as of gcc version 4.1.2. If yours is newer then it looks like they
have removed this syntax. Note older versions of gfortran has many compiler
bugs that would prevent compilation of amber. Hence if your gfortra is older
than 4.1.2 you should probably consider upgrading it.

 

For the time being you could try the following.

 

cd $AMBERHOME/src/

cp configure_amber configure_amber.orig

 

Then edit configure_amber. On lines 550 and 551 remove the -fno-range-check.

 

Then save the file and try running the configure_amber script again.

 

Good luck,

Ross

 

From: owner-amber_at_scripps.edu [mailto:owner-amber_at_scripps.edu] On Behalf Of
srinivas sudani
Sent: Wednesday, August 06, 2008 2:25 AM
To: amber_at_scripps.edu
Subject: AMBER: Compailation problum in Amber 10

 

 

 

 

Dear David,

 

    your assumption is correct. g95 is not able to compile a fortan program
properly. But we also used gfortran which is compiling properly. But this
also giving the almost same problem as follows......

 

[root_at_headnode src]# ./configure_amber gfortran

Setting AMBERHOME to /home/amber10

Setting up Amber configuration file for architecture: gfortran

Using parallel communications library: none
The MKL_HOME environment variable is not defined.

Testing the C compiler:
      gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -m32 -o testp
testp.c
OK

Testing the Fortran compiler:
     gfortran -O0 -fno-range-check -fno-second-underscore -o testp testp.f
f951: error: unrecognized command line option "-fno-range-check"

./configure_amber: line 1169: ./testp: No such file or directory

Unable to compile a Fortran program using gfortran -O0 -fno-range-check
-fno-second-underscore

Please check your compiler settings or configure flags.
[root_at_headnode src]#

Can you please guide us in this regard.....

 

Thanking you

S.Srinivas

Sys Admin,

CMSD, University Of Hyderabad, India.

 

 

On 8/2/08, David A. Case <case_at_scripps.edu> wrote:

On Fri, Aug 01, 2008, srinivas sudani wrote:
>
> Testing the Fortran compiler:
> g95 -O0 -fno-second-underscore -o testp testp.f
> g95: Unrecognized option '-O0'

Looks like a poorly configured g95(?). Can you compile any fortran
programs?
Does it work if you remove the "-O0" flag?

...dac

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" (in the *body* of the email)
     to majordomo_at_scripps.edu

 

 

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" (in the *body* of the email)
      to majordomo_at_scripps.edu