{"action":"created","issue":{"url":"https://api.github.com/repos/OPM/opm-common/issues/196","repository_url":"https://api.github.com/repos/OPM/opm-common","labels_url":"https://api.github.com/repos/OPM/opm-common/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/OPM/opm-common/issues/196/comments","events_url":"https://api.github.com/repos/OPM/opm-common/issues/196/events","html_url":"https://github.com/OPM/opm-common/issues/196","id":185873815,"number":196,"title":"build system: config mode bug? ","user":{"login":"andlaus","id":1837735,"avatar_url":"https://avatars.githubusercontent.com/u/1837735?v=3","gravatar_id":"","url":"https://api.github.com/users/andlaus","html_url":"https://github.com/andlaus","followers_url":"https://api.github.com/users/andlaus/followers","following_url":"https://api.github.com/users/andlaus/following{/other_user}","gists_url":"https://api.github.com/users/andlaus/gists{/gist_id}","starred_url":"https://api.github.com/users/andlaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andlaus/subscriptions","organizations_url":"https://api.github.com/users/andlaus/orgs","repos_url":"https://api.github.com/users/andlaus/repos","events_url":"https://api.github.com/users/andlaus/events{/privacy}","received_events_url":"https://api.github.com/users/andlaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-28T09:06:43Z","updated_at":"2016-10-28T10:56:57Z","closed_at":null,"body":"I'm using Ubuntu 16.04 in conjunction with the system-provided Dune packages. under this circumstances, there seems to be a conflict between cmake dune-grid and dune-istl in config mode:\r\n\r\n```\r\n-- Performing Test HAVE_DUNE_ISTL\r\n-- Performing Test HAVE_DUNE_ISTL - Success\r\n-- Found dune-istl: /usr/include  \r\n-- Version 2.4.1 of dune-istl from /usr/lib/dunecontrol/dune-istl/dune.module\r\n[...]\r\n-- Finding package opm-grid using config mode\r\nCMake Warning at /home/and/src/opm-grid/opm-grid-config.cmake:283 (message):\r\n  Incompatible value \"2\" of variable \"DUNE_ISTL_VERSION_MAJOR\"\r\nCall Stack (most recent call first):\r\n  /home/and/src/opm-common/cmake/Modules/OpmFind.cmake:144 (find_package)\r\n  /home/and/src/opm-common/cmake/Modules/OpmFind.cmake:211 (find_and_append_package_to)\r\n  /home/and/src/opm-common/cmake/Modules/OpmLibMain.cmake:112 (find_and_append_package_list_to)\r\n  CMakeLists.txt:112 (include)\r\n\r\n\r\nCMake Warning at /home/and/src/opm-grid/opm-grid-config.cmake:287 (message):\r\n  Incompatible value \"4\" of variable \"DUNE_ISTL_VERSION_MINOR\"\r\nCall Stack (most recent call first):\r\n  /home/and/src/opm-common/cmake/Modules/OpmFind.cmake:144 (find_package)\r\n  /home/and/src/opm-common/cmake/Modules/OpmFind.cmake:211 (find_and_append_package_to)\r\n  /home/and/src/opm-common/cmake/Modules/OpmLibMain.cmake:112 (find_and_append_package_list_to)\r\n  CMakeLists.txt:112 (include)\r\n\r\n\r\nCMake Warning at /home/and/src/opm-grid/opm-grid-config.cmake:291 (message):\r\n  Incompatible value \"1\" of variable \"DUNE_ISTL_VERSION_REVISION\"\r\nCall Stack (most recent call first):\r\n  /home/and/src/opm-common/cmake/Modules/OpmFind.cmake:144 (find_package)\r\n  /home/and/src/opm-common/cmake/Modules/OpmFind.cmake:211 (find_and_append_package_to)\r\n  /home/and/src/opm-common/cmake/Modules/OpmLibMain.cmake:112 (find_and_append_package_list_to)\r\n  CMakeLists.txt:112 (include)\r\n```\r\n\r\ni.e., even though the ISTL version provided by the `opm-grid-config.cmake` seems to be the same as the one as the one found by the `Finddune-istl.cmake` module, it still complains.\r\n\r\nI would not care about that warning too much if it would not cause the version macros for dune-istl to be omitted from config.h which causes a build error for opm-simulators:\r\n\r\n```\r\nmake\r\n[...]\r\n[ 14%] Building CXX object CMakeFiles/opmsimulators.dir/opm/autodiff/NewtonIterationBlackoilCPR.cpp.o\r\nIn file included from /home/and/src/opm-simulators/opm/autodiff/NewtonIterationBlackoilCPR.cpp:25:\r\n/home/and/src/opm-simulators/opm/autodiff/DuneMatrix.hpp:87:36: error: no member named 'nnz' in 'Opm::DuneMatrix'\r\n            size_type& nnz = this->nnz;\r\n                             ~~~~  ^\r\n/home/and/src/opm-simulators/opm/autodiff/DuneMatrix.hpp:88:51: error: no member named 'j' in 'Opm::DuneMatrix'\r\n            std::shared_ptr<size_type>& j = this->j;\r\n[...]\r\n```\r\n\r\nthe same issue occurs on the system which runs ubuntu 16.10.\r\n"},"comment":{"url":"https://api.github.com/repos/OPM/opm-common/issues/comments/256892903","html_url":"https://github.com/OPM/opm-common/issues/196#issuecomment-256892903","issue_url":"https://api.github.com/repos/OPM/opm-common/issues/196","id":256892903,"user":{"login":"akva2","id":2144327,"avatar_url":"https://avatars.githubusercontent.com/u/2144327?v=3","gravatar_id":"","url":"https://api.github.com/users/akva2","html_url":"https://github.com/akva2","followers_url":"https://api.github.com/users/akva2/followers","following_url":"https://api.github.com/users/akva2/following{/other_user}","gists_url":"https://api.github.com/users/akva2/gists{/gist_id}","starred_url":"https://api.github.com/users/akva2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akva2/subscriptions","organizations_url":"https://api.github.com/users/akva2/orgs","repos_url":"https://api.github.com/users/akva2/repos","events_url":"https://api.github.com/users/akva2/events{/privacy}","received_events_url":"https://api.github.com/users/akva2/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T10:56:57Z","updated_at":"2016-10-28T10:56:57Z","body":"identified. hotfix proposed https://github.com/OPM/opm-common/pull/197"}}
{"actor":{"display_login":"akva2"}}