Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build does not work #15

Open
ghoshgm opened this issue Feb 9, 2024 · 4 comments
Open

CMake build does not work #15

ghoshgm opened this issue Feb 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ghoshgm
Copy link

ghoshgm commented Feb 9, 2024

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

@ghoshgm ghoshgm added the bug Something isn't working label Feb 9, 2024
@holke
Copy link
Collaborator

holke commented Feb 29, 2024

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
Copy link
Author

ghoshgm commented Mar 7, 2024

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
Copy link
Collaborator

holke commented Mar 20, 2024

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
Copy link

melven commented Mar 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants