RE: [AMBER-Developers] Compiling problem with a fresh checkout

From: Wu, Xiongwu (NIH/NHLBI) [E] <"Wu,>
Date: Thu, 22 Oct 2009 12:57:01 -0400

Hi Ben,

I did all you said and have no luck. Here are the outputs:

EMstation 424: mpif77 -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,f77 --disable-libgcj --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-4)

EMstation 425: gfortran -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)

EMstation 426: make parallel
Starting installation of Amber11 (parallel) at Thu Oct 22 12:59:19 EDT 2009.
cd sander && make parallel
make[1]: Entering directory `/v/bigbox6/home/wxw/ambers/amber11/src/sander'
cpp -traditional -P -DNO_SANDER_DIVCON -DBINTRAJ -DMPI constants.f > _constants.f
mpif77 -c -O3 -ffree-form -o constants.o _constants.f
_constants.f:89:
   module constants
   1 2
Unrecognized statement name at (1) and invalid form for assignment or statement-function definition at (2)
_constants.f: In program `MAIN__':
_constants.f:93:
   double precision, parameter :: TEN_TO_MINUS2 = 1.0d-2
   ^
......
(a lot of output)
......
   integer, parameter :: NO_INPUT_VALUE = 12344321 ! from Bob Duke
   ^
Fortran 90 feature at (^) unsupported
_constants.f:228:
   end module constants
       ^
Invalid form for END statement at (^)
_constants.f:93:
   double precision, parameter :: TEN_TO_MINUS2 = 1.0d-2
   ^
End of source file before end of block started at (^)
mpif77: No such file or directory
make[1]: *** [constants.o] Error 1
make[1]: Leaving directory `/v/bigbox6/home/wxw/ambers/amber11/src/sander'
make: *** [parallel] Error 2


there is no mpif90 $(AMBERHOME)/bin from lam-7.1.3

Thanks!

Xiongwu




________________________________________
From: Ben Roberts [roberts.qtp.ufl.edu]
Sent: Thursday, October 22, 2009 11:45 AM
To: AMBER Developers Mailing List
Subject: Re: [AMBER-Developers] Compiling problem with a fresh checkout

Hi Xiongwu,

First, I'll admit to being stumped by this complaint. However, there are
a few things that occur to me.

If you're compiling in parallel, you're probably using "mpif77" or
"mpif90" instead of "gfortran". Are you sure your MPI compiler is a link
to the same compiler as you used for the serial compilation? You should
be able to find out by, for example,

mpif77 -v
mpif90 -v

and comparing the output to that of "gfortran -v", etc.

Another option is to make sure lists of dependencies are properly generated:

cd sander && make depend

A third, which I've sometimes found useful, is to make sure I'm getting
a clean set of source code: removing all old object files, preprocessed
fortran files (_*.f) and other files that aren't part of the CVS tree.
Then I start over with a clean build.

These are things that _may help; but other people will probably come up
with better suggestions. Good luck!

The other thing is, it may be helpful to post the first error message in
your group of messages, instead of the last ones. I wonder whether what
you're seeing is a syntax error early on, which manifests in a lot of
bizarre ways later thanks to run-on statements etc.

Ben


Wu, Xiongwu (NIH/NHLBI) [E] wrote:
> Hi Ben,
>
> Thanks for helping. I am using lam-7.1.3 coming with AMBER11:
>
> At lam-7.1.3:
> ./configure --prefix=$(AMBERHOME)
> make
> make install
>
> Then at $(AMBERHOME)/src
> ./configure gnu
> make -f Makefile_at clean
> make -f Makefile_at
> make clean
> make serial
> ./configure -mpi gnu
>
> make -f Makefile_at clean
> make -f Makefile_at parallel
> make clean
> make parallel
>
> (error messages)
> ........
> ........
>
> Fortran 90 feature at (^) unsupported
> _constants.f:228:
> end module constants
> ^
> Invalid form for END statement at (^)
> _constants.f:93:
> double precision, parameter :: TEN_TO_MINUS2 = 1.0d-2
> ^
> End of source file before end of block started at (^)
> mpif77: No such file or directory
> make[1]: *** [constants.o] Error 1
> make[1]: Leaving directory `/v/bigbox6/home/wxw/ambers/amber11/src/sander'
> make: *** [parallel] Error 2
>
> I hope you can give me a hint how to solve this problem. I have done 'cvs update'
>
> Thanks!
>
> Xiongwu
>

_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers

_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Oct 22 2009 - 10:30:02 PDT
Custom Search