I'm trying to build rosetta with mpi and found that because of file `src/utility/crash_report.cc` line 178 lacks semicolon at the end of the line it fails to build.
This happens with version 3.11 and 2019.40 (latest).
And I want to ask that is it able to build rosetta with cmake?
I'm currently trying to build by cmake at directory `cmake/build_sharedmpi` with ninja and intel compiler but it fails to build.
Is there any suitable compiler for the build?(maybe gcc?)
Category:
Post Situation:
You're right, this looks like a bug. We can fix this in master but the fix may take some time to get to you. Are you comfortable editting `Rosetta/main/source/src/utility/crash_report.cc`and adding a semicolon at the end of that line? That should fix your problem immediately.
Yes, I already fixed the source code on my PC and compile on that file is fine.
Out of curiosity, which MPI implementation are you using? (This error should only show up if you're using an implementation of MPI that we didn't consider, and I thought we had considered most of the major ones.)
Regarding CMake, the CMake compile is somewhat supported, but to a rather limited extent. (Mainly just for internal development people to use.) Scons is still the official way to build Rosetta. -- One issue with CMake is there's different levels of support for the various builds. The regular release and debug builds are well-used under CMake, but some of the other builds are less well used. In particular, some of the more niche builds (build_sharedmpi is probably one of them) aren't necessarily robust. They may have been written for a particular person on a particular system, without regard for how well it may work on other machines/with other compilers. (For build_sharedmpi I'd probably assume GCC with OpenMPI, though I don't know for sure.)
Generally, if you're having problems building, I would recommend sticking with the scons build commands.
I'm currently trying to compile it on computer cluster, and on it it uses HPE MPI or Intel MPI library.
I loaded Intel MPI library, which is based on MPICH2 so it might work if I change some build option but I'm not sure because the error message during CMake compile seems to be executable linking problem like below.
I'm also trying scons, though it stops compiling with some different error message which might be caused by my environment variable.
Actually I successfully finished compile on my local PC (OpenMPI installed) so this might be compiler dependent.