IllinoisRocstar / Rocstar

Rocstar MultiPhysics simulation suite (RocstarMP)
Other
22 stars 24 forks source link

Cannot open module file 'mpi.mod' for reading #8

Open Langolyers opened 4 years ago

Langolyers commented 4 years ago

I'm trying to install Rocstar on CentOS 7 and I get the error that mod.mpi was not found. In ccmake the module directory is correctly pointing to where the file is in MPI_Fortran_MODULE_DIR=/usr/bin/openmpi4/lib, but it fails when running make -j$(nproc).

IMPACT failed 5 tests, all related to parallel processing, so it seems to be something with openmpi not working properly even if it finds the compilers.

CMakeError.log CMakeOutput.log

msafdari1234 commented 4 years ago

Based on what you report, it appears you have compiled IMPACT with a different compiler than the one you are trying to use for Rocstar. Usually these happen when you have multiple versions of compilers available in the environment.

Wangduu commented 4 years ago

My IMPACT failed those tests too, but I successfully install Rocstar. It seems that those IMPACT tests failures do not affect normal use of Rocstar.

Langolyers commented 4 years ago

@msafdari1234 Thanks for the reply. I tried again today from a fresh install of the OS and can confirm both IMPACT and Rocstar are using the same versions of the compilers, with the correct locations attributed within ccmake. Came up to the exact same error.

@Wangduu Could you please tell me what versions of the compilers and MPI you used? I wonder if the issue might be that since none are specified in the installation instructions. Thanks.

Langolyers commented 4 years ago

I tried again but this time using MPICH instead of openmpi and got a different error. It still has something to do with Fortran, but went much further into the make command. Logs are attached.

CMakeError.log CMakeOutput.log

msafdari1234 commented 4 years ago

Please double check you have posted correct logs. Based on these logs you have not progressed into build at all.

Langolyers commented 4 years ago

Yes, these are the correct logs. I removed everything and rebuilt from scratch with mpich for these. Error message is testFortranCompiler.f:(.text+0xa): undefined reference tocheev_'`. Could this be related to lapack instead? If so I might try building it from source instead of using the repositories.

Wangduu commented 4 years ago

@Langolyers My gcc version is 5.4.0, mpich version is 3.2, cmake version is 3.13.

msafdari1234 commented 4 years ago

@Langolyers This is a compiler test during early stages of cmake. For some reason your compiler is incompatible. It looks like you are trying to use devtoolset-9 series compilers. They should be fine, but make sure they are the only compilers on the path and not colliding with standard system compilers.

Langolyers commented 4 years ago

There are no other compilers installed, I'm using a minimal install of CentOS 7. I've started from scratch with a clean installation of the OS, this time using the compilers from Development Tools (version 4.8.5) and got up to 95% in make -j$(nproc). IMPACT passed all the tests as well. Logs are attached.

CMakeError.log CMakeOutput.log

Langolyers commented 3 years ago

@xyzxyz-321 Did cmake run properly? Sounds like it didn't prepare the files for make.

Please consider opening an issue at the IMPACT repository not to mix things up.

msafdari1234 commented 3 years ago

If you are using bash-like environment simply set the variable by: export IMPACT_INSTALL_PATH=full_path_to_impact_installation_folder and rerun the cmake command.

Langolyers commented 3 years ago

@msafdari1234 Any help with my previous comment? I'm still struggling with it. Thanks.