{"action":"created","issue":{"url":"https://api.github.com/repos/Intel-HLS/GenomicsDB/issues/187","repository_url":"https://api.github.com/repos/Intel-HLS/GenomicsDB","labels_url":"https://api.github.com/repos/Intel-HLS/GenomicsDB/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/Intel-HLS/GenomicsDB/issues/187/comments","events_url":"https://api.github.com/repos/Intel-HLS/GenomicsDB/issues/187/events","html_url":"https://github.com/Intel-HLS/GenomicsDB/issues/187","id":316058281,"number":187,"title":"Cmake error: cannot find MPI on macOS ","user":{"login":"nuin","id":6273,"avatar_url":"https://avatars3.githubusercontent.com/u/6273?v=4","gravatar_id":"","url":"https://api.github.com/users/nuin","html_url":"https://github.com/nuin","followers_url":"https://api.github.com/users/nuin/followers","following_url":"https://api.github.com/users/nuin/following{/other_user}","gists_url":"https://api.github.com/users/nuin/gists{/gist_id}","starred_url":"https://api.github.com/users/nuin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuin/subscriptions","organizations_url":"https://api.github.com/users/nuin/orgs","repos_url":"https://api.github.com/users/nuin/repos","events_url":"https://api.github.com/users/nuin/events{/privacy}","received_events_url":"https://api.github.com/users/nuin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-19T22:08:36Z","updated_at":"2018-05-02T23:12:17Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nInstalled all the requirements to the letter and running on problems building the application on macOS 10.13.2\r\n\r\n```bash\r\ncmake ../ -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/bin \\\r\n    -DMPI_CC_COMPILER=/usr/local/opt/mpich/bin/mpicc -DMPI_CXX_COMPILER=/usr/local/opt/mpich/bin/mpicxx \\\r\n    -DOPENSSL_PREFIX_DIR=/usr/local/opt/openssl\r\n-- The C compiler identification is AppleClang 9.1.0.9020039\r\n-- The CXX compiler identification is AppleClang 9.1.0.9020039\r\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc\r\n-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++\r\n-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Performing Test test_cpp_2011\r\n-- Performing Test test_cpp_2011 - Success\r\n-- Could NOT find MPI_C (missing: MPI_C_WORKS)\r\n-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)\r\nCMake Error at /usr/local/Cellar/cmake/3.11.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):\r\n  Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)\r\nCall Stack (most recent call first):\r\n  /usr/local/Cellar/cmake/3.11.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)\r\n  /usr/local/Cellar/cmake/3.11.1/share/cmake/Modules/FindMPI.cmake:1663 (find_package_handle_standard_args)\r\n  CMakeLists.txt:78 (find_package)\r\n```\r\n\r\n`mpicc` and `mpicxx` seem fine\r\n\r\n```bash\r\n master ⮀ mpicc -v\r\nmpicc for MPICH version 3.2.1\r\nApple LLVM version 9.1.0 (clang-902.0.39.1)\r\nTarget: x86_64-apple-darwin17.3.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\nclang: warning: argument unused during compilation: '-I /usr/local/Cellar/mpich/3.2.1_1/include' [-Wunused-command-line-argument]\r\n```\r\n\r\n```bash\r\n master ⮀ mpicxx -v\r\nmpicxx for MPICH version 3.2.1\r\nApple LLVM version 9.1.0 (clang-902.0.39.1)\r\nTarget: x86_64-apple-darwin17.3.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\nclang: warning: argument unused during compilation: '-I /usr/local/Cellar/mpich/3.2.1_1/include' [-Wunused-command-line-argument]\r\n```\r\n\r\nAny help appreciated.\r\n"},"comment":{"url":"https://api.github.com/repos/Intel-HLS/GenomicsDB/issues/comments/386149364","html_url":"https://github.com/Intel-HLS/GenomicsDB/issues/187#issuecomment-386149364","issue_url":"https://api.github.com/repos/Intel-HLS/GenomicsDB/issues/187","id":386149364,"user":{"login":"kgururaj","id":5776852,"avatar_url":"https://avatars2.githubusercontent.com/u/5776852?v=4","gravatar_id":"","url":"https://api.github.com/users/kgururaj","html_url":"https://github.com/kgururaj","followers_url":"https://api.github.com/users/kgururaj/followers","following_url":"https://api.github.com/users/kgururaj/following{/other_user}","gists_url":"https://api.github.com/users/kgururaj/gists{/gist_id}","starred_url":"https://api.github.com/users/kgururaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgururaj/subscriptions","organizations_url":"https://api.github.com/users/kgururaj/orgs","repos_url":"https://api.github.com/users/kgururaj/repos","events_url":"https://api.github.com/users/kgururaj/events{/privacy}","received_events_url":"https://api.github.com/users/kgururaj/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T23:12:17Z","updated_at":"2018-05-02T23:12:17Z","author_association":"CONTRIBUTOR","body":"I could reproduce the error on CMake 3.11 but not on CMake 3.5 - it appears the the CMake FindMPI module has changed. I don't understand why it's failing in the new version, but here is a workaround.\r\n```\r\nbash-3.2$  /usr/local/opt/mpich/bin/mpicc -show\r\nclang -Wl,-flat_namespace -Wl,-commons,use_dylibs -I/usr/local/Cellar/mpich/3.2_1/include -L/usr/local/Cellar/mpich/3.2_1/lib -lmpi -lpmpi\r\n```\r\n\r\nI'm going to override the cmake FindMPI detection process\r\n```\r\ncmake  <other_args> \\\r\n   -DMPI_C_ADDITIONAL_INCLUDE_DIRS=/usr/local/opt/mpich/include/ \\\r\n   -DMPI_C_LIBRARIES=\"-L/usr/local/opt/mpich/lib -lmpi -lpmpi\" \\\r\n   -DMPI_CXX_ADDITIONAL_INCLUDE_DIRS=/usr/local/opt/mpich/include/ \\\r\n   -DMPI_CXX_LIBRARIES=\"-L/usr/local/opt/mpich/lib -lmpi -lpmpi\""}}
{"actor":{"display_login":"kgururaj"}}