← Back to team overview

dolfin team mailing list archive

Re: CXXFLAGS

 

I seem to have an older version of mpich. I'm using the latest Debian
package which is 1.2.5.3-5. From /usr/include/mpi/mpio.h:

/* -*- Mode: C; c-basic-offset:4 ; -*- */
/* 
 *   $Id: mpio.h.in,v 1.3 2003/03/25 22:40:48 nsanghvi Exp $  

Should we require that users download and install the latest mpich?
On one hand, the motivation is only that we want to be able to compile
with -pedantic. On the other hand, we require the latest version of
PETSc.

Adam Powell is maintaining both the mpich and the PETSc packages and I
suspect he will package a new version of mpich at the same time as he
packages a new PETSc version. And then perhaps Faheem Mitha will
package DOLFIN.

/Anders

On Sat, Sep 10, 2005 at 02:29:55AM +0200, Garth N. Wells wrote:
> I don't have any problems with -pedantic. I'm using
> 
> mpich2  v. 1.0;
> 
> gcc 3.3.5 (4.0 also works fine);
> 
> and from the top of /usr/local/include/mpio.h
> 
> /* -*- Mode: C; c-basic-offset:4 ; -*- */
> /*
>  *   $Id: mpio.h.in,v 1.28 2004/10/07 17:59:38 gropp Exp $
>  *
>  *   Copyright (C) 1997 University of Chicago.
>  *   See COPYRIGHT notice in top-level directory.
>  */
> 
> Can you compare? Which version of mpich are you using?
> 
> Garth
> 
> Quoting Anders Logg <logg@xxxxxxxxx>:
> 
> > On Fri, Sep 09, 2005 at 05:34:21PM +0200, Garth N. Wells wrote:
> > 
> > > In configure.ac there is a comment that the flag -pedantic should be
> > > used, but it breaks when including mpio.h, which isn't included
> > > anymore.
> > 
> > I tried removing it, but it's still there, through a chain of PETSc
> > includes:
> > 
> > In file included from /usr/include/mpi/mpi.h:1085,
> >                  from /usr/local/lib/petsc/include/petsc.h:85,
> >                  from /usr/local/lib/petsc/include/petscis.h:7,
> >                  from /usr/local/lib/petsc/include/petscvec.h:9,
> >                  from /usr/local/lib/petsc/include/petscmat.h:6,
> >                  from ../../../src/kernel/la/dolfin/Matrix.h:12,
> >                  from MatlabFile.cpp:12:
> > /usr/include/mpi/mpio.h:34: error: ISO C++ stödjer inte "long long"
> > 
> > Looks like we can't use -pedantic if not mpio.h is changed (which is
> > not likely).
> > 
> > /Anders
> > 
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> > 
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> 

-- 
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/



References