AMBER: amber8 and gfortran 4.1.0

From: Tru Huynh <tru.pasteur.fr>
Date: Thu, 2 Mar 2006 17:00:00 +0100

Hello,

does this kind of error message ring a bell?

cpp -traditional -P -I/Bis/shared/centos-3_x86_64/amber8_gnu-4.1.0/src/include lmod.f > _lmod.f
gfortran -c -O2 --free-form -o lmod.o _lmod.f
 In file _lmod.f:270

   character(len=len(MVPM_FORWARD)) :: matrix_vector_product_method=MVPM_FORWARD
                                                                  1
Error: 'matrix_vector_product_method' at (1) must have constant character length in this context
 In file _lmod.f:282

   character(len=len(MC_METHOD_QUICK_QUENCH)) :: Monte_Carlo_method &
                                                                  1
Error: 'monte_carlo_method' at (1) must have constant character length in this context
 In file _lmod.f:345

   character(len=len(XMIN_METHOD_LBFGS)) :: xmin_method = XMIN_METHOD_LBFGS
                                                      1
Error: 'xmin_method' at (1) must have constant character length in this context

config.h:

AMBER_SRC=/Bis/shared/centos-3_x86_64/amber8_gnu-4.1.0/src
AMBERBUILDFLAGS=
LOCALFLAGS=
USE_BLASLIB=$(SOURCE_COMPILED)
USE_LAPACKLIB=$(SOURCE_COMPILED)
USE_LMODLIB=$(LMOD_UNAVAILABLE)
CC= gcc
CPLUSPLUS=g++
ALTCC=gcc
CFLAGS=-O2 $(AMBERBUILDFLAGS)
ALTCFLAGS= $(AMBERBUILDFLAGS)
CPPFLAGS= $(AMBERBUILDFLAGS)
FPPFLAGS= -P -I$(AMBER_SRC)/include $(AMBERBUILDFLAGS)
FPP= cpp -traditional $(FPPFLAGS)
FC= gfortran
FFLAGS= -O0 $(LOCALFLAGS) $(AMBERBUILDFLAGS)
FOPTFLAGS= -O2 $(LOCALFLAGS) $(AMBERBUILDFLAGS)
FPP_PREFIX= _
FREEFORMAT_FLAG= --free-form
LOAD= gfortran $(LOCALFLAGS) $(AMBERBUILDFLAGS)
LOADCC= gcc $(LOCALFLAGS) $(AMBERBUILDFLAGS)
LOADLIB=
LOADPTRAJ= gfortran -nofor_main $(LOCALFLAGS) $(AMBERBUILDFLAGS)
XHOME= /usr/X11R6
.SUFFIXES: .f90
SYSDIR=lib
AR=ar rv
M4=m4
RANLIB=ranlib
SFX=
MAKEDEPEND=$(AMBER_SRC)/../bin/amber_makedepend
.f.o: $<
        $(FPP) $< > $(FPP_PREFIX)$<
        $(FC) -c $(FFLAGS) -o $. $(FPP_PREFIX)$<
.f90.o: $<
        $(FPP) $< > $(FPP_PREFIX)$<
        $(FC) -c $(FFLAGS) -o $. $(FPP_PREFIX)$<
.c.o:
        $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $. $<

[tru.sillage sander]$ gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1.0/configure --prefix=/opt/gnu/gcc-4.1.0
Thread model: posix
gcc version 4.1.0

Cheers,

Tru
-- 
Dr Tru Huynh          | http://www.pasteur.fr/recherche/unites/Binfs/
mailto:tru.pasteur.fr | tel/fax +33 1 45 68 87 37/19
Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France  
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun Mar 05 2006 - 06:10:16 PST
Custom Search