Re: [AMBER] Fwd: Fwd: Re: Is it a bug? Compilation Error in Ambertools

From: Jason Swails <jason.swails.gmail.com>
Date: Tue, 25 Jun 2013 07:55:43 -0400

On Tue, Jun 25, 2013 at 7:49 AM, David A Case <case.biomaps.rutgers.edu>wrote:

> On Tue, Jun 25, 2013, Matthias Bohner wrote:
>
> > `/home/linux34_i1/bohner/amber12/AmberTools/src/netcdf/src/f90'
> > /bin/sh ../libtool --mode=compile gfortran -I../libsrc -I. -O3
> > -mtune=native -c -o typeSizes.lo typeSizes.f90
> > libtool: compile: unable to infer tagged configuration
> > libtool: compile: specify a tag with `--tag'
> >
> > A small change of the following Makefile solves the problem for me
> >
> > diff $AMBERHOME/AmberTools/src/netcdf/src/f90/Makefile
> > $AMBERHOME/AmberTools/src/netcdf/src/f90/Makefile.orig
> >
> > 175c175
> > < LIBTOOL = $(SHELL) $(top_builddir)/libtool --tag=gfortran
> > ---
> > > LIBTOOL = $(SHELL) $(top_builddir)/libtool
> >
>

Check if the compiler environment variables are set: (echo $CC $CXX $F90
$F77 $FC). If any of them are set, unset them. Then try again.

unset CC CXX F90 F77 FC

The above command solved this error the only time I saw it...

HTH,
Jason

-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Jun 25 2013 - 05:00:06 PDT
Custom Search