[gmx-developers] gmx CVS compile error

Carsten Kutzner ckutzne at gwdg.de
Thu Sep 15 08:33:56 CEST 2005


On Wed, 14 Sep 2005, Pim Schravendijk wrote:

> On Wed, 14 Sep 2005, Carsten Kutzner wrote:
> > please go to the file include/mpelogging.h and comment out
> > the line
> >
> > #define BARRIERS
> >
> > Then it should work.
>
> I didn't try this but I wonder if this works, since in the md.c sim_util.c
> and pme.c files there are still calls to GMX_BARRIER with some values in
> it that are only supposed to be declared if it is an mpi compilation.
> Wouldn't it be better just to put all those calls inbetween ifdef
> statements for MPI? That's what I've been doing this afternoon and it
> actually made the thing compile.

The makro GMX_BARRIER is defined to keep all the #ifdefs out of the
code and to make it more readable. GMX_BARRIER expands to an empty line
of code when BARRIERS is not defined. BARRIERS should therefor not be
defined by default, sorry for that.

Carsten

>
> --
> Pim Schravendijk - PhD Student
> Max Planck Institute for Polymer Research
> http://www.mpip-mainz.mpg.de/~schraven/
>
>
> >
> >
> >
> > On Wed, 14 Sep 2005, Martin Dahlberg wrote:
> >
> > > Hello,
> > >
> > > Trying to compile from the CVS, downloaded today (14th Sept. 2005).
> > > After bootstrapping and configure (--enable-float) I try to make but get
> > > this error:
> > >
> > > cc -DHAVE_CONFIG_H -I. -I. -I../../src -I/usr/X11R6/include
> > > -I../../include -DGMXLIBDIR=\"/usr/local/gromacs/share/top\" -O3
> > > -fomit-frame-pointer -finline-functions -Wall -Wno-unused -malign-double
> > > -funroll-all-loops -MT pme.lo -MD -MP -MF .deps/pme.Tpo -c pme.c -o pme.o
> > > pme.c: In function `solve_pme':
> > > pme.c:633: warning: dereferencing type-punned pointer will break
> > > strict-aliasing rules
> > > pme.c: In function `do_pme':
> > > pme.c:1732: warning: implicit declaration of function `MPI_Barrier'
> > > pme.c:1732: error: `MPI_COMM_WORLD' undeclared (first use in this function)
> > > pme.c:1732: error: (Each undeclared identifier is reported only once
> > > pme.c:1732: error: for each function it appears in.)
> > > make[3]: *** [pme.lo] Error 1
> > > /.../
> > >
> > > I have previously compiled the 3.3_beta_20050202 from CVS without problems.
> > >
> > > Ideas?
> > >
> > > Best regards,
> > >
> > > Martin Dahlberg
> > > Division of Physical Chemistry
> > > Stockholm University
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > gmx-developers mailing list
> > > gmx-developers at gromacs.org
> > > http://www.gromacs.org/mailman/listinfo/gmx-developers
> > > Please don't post (un)subscribe requests to the list. Use the
> > > www interface or send it to gmx-developers-request at gromacs.org.
> > >
> >
> >
> >
> > ---------------------------------------------------
> > Dr. Carsten Kutzner
> > Max Planck Institute for Biophysical Chemistry
> > Theoretical and Computational Biophysics Department
> > Am Fassberg 11
> > 37077 Goettingen, Germany
> > Tel. +49-551-2012313, Fax: +49-551-2012302
> > eMail ckutzne at gwdg.de
> > http://www.gwdg.de/~ckutzne
> >
> > _______________________________________________
> > gmx-developers mailing list
> > gmx-developers at gromacs.org
> > http://www.gromacs.org/mailman/listinfo/gmx-developers
> > Please don't post (un)subscribe requests to the list. Use the
> > www interface or send it to gmx-developers-request at gromacs.org.
> >
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
>




More information about the gromacs.org_gmx-developers mailing list