[Dune] Problem linking parmetis with cmake

Aleksejs Fomins aleksejs.fomins at lspr.ch
Wed Nov 26 16:06:43 CET 2014


Attaching the "make VERBOSE=1" of the test that fails.

Even though parmetis is stated as found, it is still not present in the
actual compilation flags

On 11/26/2014 03:40 PM, Markus Blatt wrote:
> Hi,
> 
> On Wed, Nov 26, 2014 at 03:271;2802;0c:37PM +0100, Markus Blatt wrote:
>> I have the strong suspicion that ParMetis is never searched for.
>> You are using dune-alugrid and dune-grid with its dependencies.
>> dune-alugrid should search for ParMETIS, but it seems like with CMake
>> it never does.
> 
> Confirmed. dune-alugrid does not use ParMETIS. There even seems to a
> bug in the cmake buildsystem as it does not search for METIS while
> autotools do.
> 
> Ergo you have to put the following into
> dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometry.cmake: 
> 
> find_package(ParMETIS)
> 
> BTW: A few days ago I suggested another find_package call. Please make
> sure that is in the same file, as then downstream module will issue
> the find call automatically.
> 
> Cheers,
> 
> Markus
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 
-------------- next part --------------
cd /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake && /opt/extlib/cmake/3.0.0/gcc/4.9.0/bin/cmake -H/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid -B/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake --check-build-system CMakeFiles/Makefile.cmake 0
cd /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake && /opt/extlib/cmake/3.0.0/gcc/4.9.0/bin/cmake -E cmake_progress_start /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/CMakeFiles /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/dune/curvilineargrid/io/file/test/CMakeFiles/progress.marks
cd /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake && make -f CMakeFiles/Makefile2 dune/curvilineargrid/io/file/test/all
make[1]: Entering directory `/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake'
make -f dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/build.make dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/depend
make[2]: Entering directory `/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake'
cd /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake && /opt/extlib/cmake/3.0.0/gcc/4.9.0/bin/cmake -E cmake_depends "Unix Makefiles" /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/dune/curvilineargrid/io/file/test /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake'
make -f dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/build.make dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/build
make[2]: Entering directory `/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake'
/opt/extlib/cmake/3.0.0/gcc/4.9.0/bin/cmake -E cmake_progress_report /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/CMakeFiles 1
[100%] Building CXX object dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/curvilineargmshtest.cc.o
cd /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake/dune/curvilineargrid/io/file/test && /opt/extlib/openmpi/1.8.1/gcc/4.9.0/bin/mpicxx   -DDUNE_CURVILINEARGRID_EXAMPLE_GRIDS_PATH=\"/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/doc/grids/\" -DHAVE_CONFIG_H -std=c++11  -I/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake -I/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid -I/home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include -I/home/fomins/gitwork/hades-github-lspr-ag/dune-common -I/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry -I/home/fomins/gitwork/hades-github-lspr-ag/dune-grid -I/home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid -I/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry    -o CMakeFiles/curvilineargmshtest.dir/curvilineargmshtest.cc.o -c /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc
In file included from /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:42:0,
                 from /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc:43:
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/curvilineargrid/gridfactory.hh:45:22: fatal error: parmetis.h: No such file or directory
 #include <parmetis.h>
                      ^
compilation terminated.
make[2]: *** [dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/curvilineargmshtest.cc.o] Error 1
make[2]: Leaving directory `/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake'
make[1]: *** [dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/all] Error 2
make[1]: Leaving directory `/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake'
make: *** [all] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/5f4b6ac5/attachment.sig>


More information about the Dune mailing list