{"action":"created","issue":{"url":"https://api.github.com/repos/flecsi/flecsi/issues/29","repository_url":"https://api.github.com/repos/flecsi/flecsi","labels_url":"https://api.github.com/repos/flecsi/flecsi/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/flecsi/flecsi/issues/29/comments","events_url":"https://api.github.com/repos/flecsi/flecsi/issues/29/events","html_url":"https://github.com/flecsi/flecsi/issues/29","id":138010642,"number":29,"title":"Flecsi fails with lapacke errors","user":{"login":"certik","id":20568,"avatar_url":"https://avatars.githubusercontent.com/u/20568?v=3","gravatar_id":"","url":"https://api.github.com/users/certik","html_url":"https://github.com/certik","followers_url":"https://api.github.com/users/certik/followers","following_url":"https://api.github.com/users/certik/following{/other_user}","gists_url":"https://api.github.com/users/certik/gists{/gist_id}","starred_url":"https://api.github.com/users/certik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/certik/subscriptions","organizations_url":"https://api.github.com/users/certik/orgs","repos_url":"https://api.github.com/users/certik/repos","events_url":"https://api.github.com/users/certik/events{/privacy}","received_events_url":"https://api.github.com/users/certik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tuxfan","id":1677044,"avatar_url":"https://avatars.githubusercontent.com/u/1677044?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxfan","html_url":"https://github.com/tuxfan","followers_url":"https://api.github.com/users/tuxfan/followers","following_url":"https://api.github.com/users/tuxfan/following{/other_user}","gists_url":"https://api.github.com/users/tuxfan/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxfan/subscriptions","organizations_url":"https://api.github.com/users/tuxfan/orgs","repos_url":"https://api.github.com/users/tuxfan/repos","events_url":"https://api.github.com/users/tuxfan/events{/privacy}","received_events_url":"https://api.github.com/users/tuxfan/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-03-02T22:24:39Z","updated_at":"2016-03-03T00:17:48Z","closed_at":null,"body":"On Moonlight, I am getting the following error:\r\n```\r\n/lustre/scratch1/turquoise/certik/repos/flecsi/src/specializations/burton/test/burton_gradients.cc:84:29: fatal error: lapacke/lapacke.h: No such file or directory\r\n```\r\nWhich can be fixed by:\r\n```diff\r\n--- a/src/specializations/burton/test/burton_gradients.cc\r\n+++ b/src/specializations/burton/test/burton_gradients.cc\r\n@@ -81,7 +81,7 @@ protected:\r\n \r\n // this may not be a portable way to point to lapacke.h. it works on darwin.\r\n #include <ccomplex>\r\n-#include <lapacke/lapacke.h>\r\n+#include <lapacke.h>\r\n \r\n const int N = 10;\r\n ```\r\nBut then I get:\r\n```\r\n[ 18%] Linking CXX executable test/specializations/burton_gradients\r\n/usr/bin/ld: cannot find -llapacke\r\ncollect2: error: ld returned 1 exit status\r\n```\r\nwhich I don't know how to fix, because the `third-party` didn't install any `lapacke.so`:\r\n```\r\n$ ls $TPL_INSTALL_PREFIX/lib\r\ncmake            libhdf5_hl.a      libnetcdf.settings  libscotchmetis.a\r\nlibexodus.a      libhdf5.settings  libscotch.a         libszip.a\r\nlibexoIIv2for.a  libmetis.a        libscotcherr.a      libz.a\r\nlibhdf5.a        libnetcdf.a       libscotcherrexit.a  pkgconfig\r\n```\r\nHere are my copy & paste instructions to build on Moonlight:\r\n```\r\nbash\r\nmodule load friendly-testing git gcc cmake/3.4.1\r\n\r\nexport TPL_INSTALL_PREFIX=$HOME/ext/flecsi-libs\r\n\r\ngit clone https://github.com/flecsi/third-party.git flecsi-thirdparty\r\ncd flecsi-thirdparty\r\nmkdir build\r\ncd build\r\ncmake -DCMAKE_INSTALL_PREFIX=$TPL_INSTALL_PREFIX \\\r\n    -DENABLE_EXODUS=ON \\\r\n    -DENABLE_LAPACK=ON \\\r\n    -DENABLE_LAPACK=ON \\\r\n    -DENABLE_METIS=ON \\\r\n    -DENABLE_SCOTCH=ON \\\r\n    ..\r\nmake -j16\r\n\r\n\r\ngit clone --recursive -b beta-0.0-603-ge2dd9992 https://github.com/flecsi/flecsi.git\r\ncd flecsi\r\nmkdir build\r\ncd build\r\n../arch/developer-gnu\r\nmake # FAILS as indicated above\r\nmake test\r\n```"},"comment":{"url":"https://api.github.com/repos/flecsi/flecsi/issues/comments/191504544","html_url":"https://github.com/flecsi/flecsi/issues/29#issuecomment-191504544","issue_url":"https://api.github.com/repos/flecsi/flecsi/issues/29","id":191504544,"user":{"login":"wohlbier","id":8867238,"avatar_url":"https://avatars.githubusercontent.com/u/8867238?v=3","gravatar_id":"","url":"https://api.github.com/users/wohlbier","html_url":"https://github.com/wohlbier","followers_url":"https://api.github.com/users/wohlbier/followers","following_url":"https://api.github.com/users/wohlbier/following{/other_user}","gists_url":"https://api.github.com/users/wohlbier/gists{/gist_id}","starred_url":"https://api.github.com/users/wohlbier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wohlbier/subscriptions","organizations_url":"https://api.github.com/users/wohlbier/orgs","repos_url":"https://api.github.com/users/wohlbier/repos","events_url":"https://api.github.com/users/wohlbier/events{/privacy}","received_events_url":"https://api.github.com/users/wohlbier/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T00:17:48Z","updated_at":"2016-03-03T00:17:48Z","body":"@certik Pull down the head and try again. It should find your tpl installation and use it correctly. Let me know if it doesn't.\r\n\r\n@tuxfan Now that I'm going through this I am remembering what a PIA lapack is. What I pushed should be considered a work around until a better solution can be implemented. In particular maybe we need a \"find_package(LAPACK)\" that can discern between our local TPL installation and a system installation. Presumably if a functioning system installation is found it would be preferred over our locally built one. \r\n\r\nSystem installations, as you say, usually have the /usr/include/lapacke subdirectory. In principle we could just add that directory to the include path IF FindLAPACK.cmake actually gave us a variable with it's discovered include path, but it doesn't.\r\n\r\nFurthermore, note the exceptionally egregious hack in my update that specifically adds -lgfortan. Without this there is a linking error, and I couldn't find a cmake variable that had the fortran library in it.\r\n\r\nWhy don't you have a look and we can talk more Thursday."}}