Message: Re: Error during building MPI libraries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Error during building MPI libraries 

Forum: Multithreading
Re: None Error during building MPI libraries (Sanchit Sharma)
Date: Feb 13, 13:26
From: Sanchit Sharma <Sanchit Sharma>

When I do a cmake with -DCMAKE_CXX_COMPILER=mpicxx option I get the error message as attached in the picture and written below:

[  5%] Building CXX object CMakeFiles/G4mpi.dir/src/G4MPIbatch.cc.o
In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc(33):
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh(117): error #303: explicit type is missing ("int" assumed)
    const MPI::Intracomm* GetComm() const { return &COMM_G4COMMAND_; }
          ^

In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc(33):
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh(117): error: expected a ";"
    const MPI::Intracomm* GetComm() const { return &COMM_G4COMMAND_; }
             ^

In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc(33):
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh(122): warning #12: parsing restarts here after previous syntax error
    DISALLOW_COPY_AND_ASSIGN(G4MPImanager);
    ^

In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc(33):
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh(150): error #77: this declaration has no storage class or type specifier
    MPI::Intracomm COMM_G4COMMAND_;
    ^

In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc(33):
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh(150): error: "MPI" has already been declared in the current scope
    MPI::Intracomm COMM_G4COMMAND_;
    ^

In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc(33):
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh(150): error: expected a ";"
    MPI::Intracomm COMM_G4COMMAND_;
       ^

compilation aborted for /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc (code 2) make[2]: *** [CMakeFiles/G4mpi.dir/src/G4MPIbatch.cc.o] Error 2 make[1]: *** [CMakeFiles/G4mpi.dir/all] Error 2 make: *** [all] Error 2

I have no idea how to resolve this. I would appreciate any help.

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2019/02/13/13.25-44686-Capture.PNG

 Add Message Add Message
to: "Re: Error during building MPI libraries"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews