Deal.II with cmake 3.10 and boost-1.66

Skoðað 243 sinnum
Fara í fyrstu ólesnu skilaboð

Maxi Miller

ólesið,
9. jan. 2018, 07:48:379.1.2018
til deal.II User Group
I know that there already a similar bug report exists for the combination of deal.II and cmake 3.10 (i.e. MPI is not working). Unfortunately I can not downgrade CMake, thus I have to work with this version. I implemented the pull request https://github.com/dealii/dealii/pull/5690 in my local version, but it still fails with the same error (using OpenMPI and GCC 7.2). Is there anything else I can do?
Furthermore I get a lot of errors like

CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
cmake/modules/FindBOOST.cmake:50 (FIND_PACKAGE)
cmake/macros/macro_find_package.cmake:27 (_FIND_PACKAGE)
cmake/configure/configure_boost.cmake:88 (FIND_PACKAGE)
build/CMakeFiles/CMakeTmp/evaluate_expression.tmp:1 (FEATURE_BOOST_FIND_EXTERNAL)
cmake/macros/macro_evaluate_expression.cmake:30 (INCLUDE)
cmake/macros/macro_configure_feature.cmake:237 (EVALUATE_EXPRESSION)
cmake/configure/configure_boost.cmake:201 (CONFIGURE_FEATURE)
cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
CMakeLists.txt:124 (VERBOSE_INCLUDE)

since upgrading boost to version 1.66 (from 1.63)

Is that a problem related to deal.II, or to the new CMake-version?

Maxi Miller

ólesið,
9. jan. 2018, 07:53:409.1.2018
til deal.II User Group
Update: Boost-1.66 is (currently) not that compatible to CMake, thus it is not related to deal.II

Bruno Turcksin

ólesið,
9. jan. 2018, 08:15:579.1.2018
til deal.II User Group
Hi,

This is is not a real bug. The problem is that cmake check that it knows the version of boost that you are using and so every time that boost creates a new release, the cmake guys need to update the list of supported version. Since boost 1.66 was release after cmake 3.10, it is not in the list of supported boost versions. Everything should still work though, you just get these annoying warnings.

Best,

Bruno

Maxi Miller

ólesið,
9. jan. 2018, 08:31:209.1.2018
til deal.II User Group
Thanks, I already found that. The bigger problem for me atm. is the coupling between MPI and deal.II. Is there a possible fix for me, too?
Thanks!

Bruno Turcksin

ólesið,
9. jan. 2018, 08:49:589.1.2018
til dea...@googlegroups.com
2018-01-09 8:31 GMT-05:00 'Maxi Miller' via deal.II User Group <dea...@googlegroups.com>:
Thanks, I already found that. The bigger problem for me atm. is the coupling between MPI and deal.II. Is there a possible fix for me, too?
Thanks!
Hmmm are you sure you implemented the PR correctly? The problem with cmake 3.10 is that you cannot use cmake_cxx_compiler as your mpi compiler. This part of the code has been removed so I don't see how you get the same bug than before. Anyway, the correct way to set mpi is to use -DMPI_CXX_COMPILER=/path/to/mpicc

Best,

Bruno

Bruno Turcksin

ólesið,
9. jan. 2018, 08:51:349.1.2018
til dea...@googlegroups.com
I meant path to mpicxx not mpicc

Maxi Miller

ólesið,
9. jan. 2018, 09:44:039.1.2018
til deal.II User Group
How can I implement that when using cmake-gui? Then the command is not working.

Bruno Turcksin

ólesið,
9. jan. 2018, 10:16:019.1.2018
til dea...@googlegroups.com
2018-01-09 9:44 GMT-05:00 'Maxi Miller' via deal.II User Group <dea...@googlegroups.com>:
How can I implement that when using cmake-gui? Then the command is not working.
What do you mean? It is a variable created by cmake when you use FindMPI. I can see it using the gui when I toggle the advanced mode.

Best,

Bruno

Maxi Miller

ólesið,
10. jan. 2018, 03:20:0210.1.2018
til deal.II User Group
I definitely implemented that pull-request, but I still get the same error. Furthermore I do not see those switches coming up in cmake-gui, even in advanced mode.
When looking into the pull request, I also do not see that those keys come up? Could it be that I have to combine the pull request files with the patch noted in issue 5510?

Bruno Turcksin

ólesið,
10. jan. 2018, 08:33:2910.1.2018
til dea...@googlegroups.com
2018-01-10 3:20 GMT-05:00 'Maxi Miller' via deal.II User Group <dea...@googlegroups.com>:
I definitely implemented that pull-request, but I still get the same error. Furthermore I do not see those switches coming up in cmake-gui, even in advanced mode.
When looking into the pull request, I also do not see that those keys come up? Could it be that I have to combine the pull request files with the patch noted in issue 5510?
The keys are from cmake see https://cmake.org/cmake/help/v3.10/module/FindMPI.html I have attached a picture of how it looks for me and you can see that I have MPI_CXX_COMPILER. You don't need the patch in 5510. That patch is a work-around to keep the old behavior but I guess you could use it for now.

Best,

Bruno
ccmake.png

Maxi Miller

ólesið,
10. jan. 2018, 09:33:1310.1.2018
til deal.II User Group
I have to check, but for the moment I think that I could solve the issues by hardcoding the values in the cmake-file. At least it compiles at the moment...
Svara öllum
Svara höfundi
Senda áfram
0 ný skilaboð