On 11/16/2016 07:40 PM, Lev Karatun wrote:
[ 63%] Building CXX object
source/base/CMakeFiles/obj_base.release.dir/mpi.cc.o
/home/r/russ/lkaratun/aspect/dealii/source/base/mpi.cc: In constructor
'dealii::Utilities::MPI::MPI_InitFinalize::MPI_InitFinalize(int&, char**&,
unsigned int)':
/home/r/russ/lkaratun/aspect/dealii/source/base/mpi.cc:404:26: error:
expected initializer before 'MPI_Allgather'
const int ierr MPI_Allgather (&hostname_array[0],
max_hostname_size, MPI_CHAR,
^
make[2]: *** [source/base/CMakeFiles/obj_base.release.dir/mpi.cc.o] Error 1
make[1]: *** [source/base/CMakeFiles/obj_base.release.dir/all] Error 2
make: *** [all] Error 2
I did a clean installation, the compiler is gcc 4.8.1, let me know if you need
any additional info.
Any hints would be appreciated.
The code in question has a bug, though it is entirely bizarre that without the
= sign between ierr and MPI_Allgather, it actually compiles for me. It must
have something strange to do with what MPI_Allgather probably expands to.
The patch is here:
https://github.com/dealii/dealii/pull/3598
I'm going to take the (unusual) liberty to approve it myself, so it should be
fixed if you update your git version.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.