DLR-SC / googletest_mpi

Googletest-mpi - Extension of the Google Test library to support MPI parallel tests
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

CMake build does not work #15

Open ghoshgm opened 4 months ago

ghoshgm commented 4 months ago

After doing a fresh clone from the repository I tried to build the package with CMake. The configure step works fine but the build crashes due to compilation errors. I am guessing it is treating warnings as errors.

I tried with main branch and v1.10.x branch.

I also tried with the latest tarball release but it still does not work.

The bug can be reproduced by executing the 'make' command.

I am working Ubuntu with gcc 11.4.0

Do I need to use any special flags for compiling ?

I am attaching a log file for reference.

log.txt

holke commented 4 months ago

Hello @ghoshgm i am sorry for the late reply and that you have problems installing googletest_mpi.

Thank you for posting this issue. we hope that you could resolve it in the meantime.

Can you try building the main branch with the following settings (using ccmake):

 BUILD_GMOCK                      ON                                           
 BUILD_SHARED_LIBS                OFF                                          
 CMAKE_BUILD_TYPE                                                              
 CMAKE_INSTALL_PREFIX             /usr/local                                   
 INSTALL_GTEST                    ON                                           
 gmock_build_tests                OFF                                          
 gtest_build_samples              ON                                           
 gtest_build_tests                ON                                           
 gtest_disable_mpi                OFF                                          
 gtest_disable_pthreads           OFF                                          
 gtest_force_shared_crt           OFF                                          
 gtest_hide_internal_symbols      OFF  
ghoshgm commented 4 months ago

Hello @holke

I tried the settings but it fails to compile. This time it is a different error message.

I am attaching a log file for your reference. log.txt

holke commented 3 months ago

Hi @ghoshgm

i am sorry, i currently do not have the time to look into this. Maybe @melven could help.

After easter i might be able to come back to this issue.

Sorry and best regards

melven commented 3 months ago

Hi @ghoshgm

which Ubuntu version and which MPI version/package? Then, I'll try to reproduce the error.

In the first log.txt, it fails while compiling something death-tests related which is not supported with MPI (that's a whole own problem finding killed MPI processes, so at least with our current approach death-tests are not possible to do correctly with MPI).

In the second log.txt, it looks like it tries to use some of the MPI-C++ interface which is strange because it is deprecated and shouldn't be used at all - but I might miss something here.