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

Unable to build Synchrono module #396

Open
mayureshb7 opened this issue Jun 3, 2022 · 7 comments
Open

Unable to build Synchrono module #396

mayureshb7 opened this issue Jun 3, 2022 · 7 comments

Comments

@mayureshb7
Copy link

mayureshb7 commented Jun 3, 2022

As instructed I have installed OpenMPI that is required to build Synchrono module
When tried to build, it gives me error that MPI is not found (Refer image3)
Can someone help me out with a solution
Please refer attached images for the issue
chrono1
chrono2
chrono3

@rserban
Copy link
Member

rserban commented Jun 3, 2022

Did you by any chance only install the openmpi-bin package? If so, you also need libopenmpi-dev.

@mayureshb7
Copy link
Author

Did you by any chance only install the openmpi-bin package? If so, you also need libopenmpi-dev.

Thank you for your response, I have installed both

image
image

@rserban
Copy link
Member

rserban commented Jun 5, 2022

Could you please check where the OpenMPI headers and libraries are installed (I would expect them in directories under /usr/lib/x86_64-linux-gnu/openmpi/)? Are mpicxx and mpiexec in your path?

Please also attach here your CMakeCache.txt file, as well as the full output from cmake when configuring Chrono.

@mayureshb7
Copy link
Author

mayureshb7 commented Jun 5, 2022

Thank you for your response,

Please find attahced CMakeCache.txt file and cmake output while configuring Chrono

mpicxx.h is in the path (Refer image) but I was not able to find mpiexec in the path /usr/lib/x86_64-linux-gnu/openmpi/
However, mpiexec was found at another location (Refer images below)

CMakeCache.txt
image
image

image
image
image
image

@rserban
Copy link
Member

rserban commented Jun 5, 2022

Odd. CMake appears to find MPI and yet MPI_FOUND must be set to false...
The only thing I can suggest is trying a newer version of CMake. I use 3.22 on Ubuntu without issues.

@mayureshb7
Copy link
Author

I uninstalled previous version of Cmake 3.16 and installed it to the latest 3.23.2 still I'm getting the same error.
image

@rserban
Copy link
Member

rserban commented Jun 8, 2022

Could you please:

  1. Make sure mpicc and mpiexec are in your path
  2. Post here your CMakeError.log and CMakeOutput.log files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants