Re: [AMBER-Developers] pbsa amber compilation error

From: Jason Swails <jason.swails.gmail.com>
Date: Sat, 31 Oct 2009 20:54:27 -0400

Ben,

You were right-- this is an optimization level. Gfortran version 4.5.0

Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20090910/configure --enable-languages=fortran
--host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10
Thread model: posix
gcc version 4.5.0 20090910 (experimental) (GCC)


Optimization level -O1 for this file by hand allowed the compilation to
finish.

Thanks!
Jason

On Sat, Oct 31, 2009 at 8:49 PM, Ben Roberts <roberts.qtp.ufl.edu> wrote:

> Hi Jason,
>
> I've seen this one before; in my case, I traced it down to a compiler
> bug.
>
> Have you tried to compile that file with less rigorous optimisation? I
> managed to get it done with -O2 instead of -O3.
>
> On the other hand, a more permanent solution is to download and build an
> updated gfortran. What build of gfortran do you have (i.e., gfortran
> -v)?
>
> Ben
>
> On Sat, 2009-10-31 at 20:31 -0400, Jason Swails wrote:
> > Hello,
> >
> > I tried compiling a new amber11 checkout, and it failed on the pbsa part
> of
> > amber Makefile.
> >
> > gnu compilers on Snow Leopard (gcc version 4.2.1, gfortran version
> 4.5.0).
> > I got the following error:
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5358_39 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5359_59 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5360_77 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5361_96 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5362_114 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5363_133 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5364_150 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: error: type mismatch in component reference
> > real(kind=8)[0:D.2764] * restrict
> >
> > real(kind=8)[0:D.7772] *
> >
> > # VUSE <.MEM_173(D)>
> > D.5365_168 = CHAIN.410_38(D)->phi;
> >
> > _pb_force.f:1286:0: internal compiler error: verify_stmts failed
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <http://gcc.gnu.org/bugs.html> for instructions.
> > make[1]: *** [pb_force.o] Error 1
> > make: *** [serial] Error 2
> >
> >
> > I know that this section of the code is under active development, but I
> > figured I'd report it anyway.
> >
> > All the best,
> > Jason
> >
>
>
>
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers
>



-- 
---------------------------------------
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Sat Oct 31 2009 - 18:00:06 PDT
Custom Search