{"action":"opened","issue":{"url":"https://api.github.com/repos/ModernMT/MMT/issues/118","repository_url":"https://api.github.com/repos/ModernMT/MMT","labels_url":"https://api.github.com/repos/ModernMT/MMT/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/ModernMT/MMT/issues/118/comments","events_url":"https://api.github.com/repos/ModernMT/MMT/issues/118/events","html_url":"https://github.com/ModernMT/MMT/issues/118","id":146532969,"number":118,"title":"problem with GooglePerftools package","user":{"login":"nicolabertoldi","id":1104476,"avatar_url":"https://avatars.githubusercontent.com/u/1104476?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolabertoldi","html_url":"https://github.com/nicolabertoldi","followers_url":"https://api.github.com/users/nicolabertoldi/followers","following_url":"https://api.github.com/users/nicolabertoldi/following{/other_user}","gists_url":"https://api.github.com/users/nicolabertoldi/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolabertoldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolabertoldi/subscriptions","organizations_url":"https://api.github.com/users/nicolabertoldi/orgs","repos_url":"https://api.github.com/users/nicolabertoldi/repos","events_url":"https://api.github.com/users/nicolabertoldi/events{/privacy}","received_events_url":"https://api.github.com/users/nicolabertoldi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ModernMT/MMT/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ModernMT/MMT/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"cidermole","id":847573,"avatar_url":"https://avatars.githubusercontent.com/u/847573?v=3","gravatar_id":"","url":"https://api.github.com/users/cidermole","html_url":"https://github.com/cidermole","followers_url":"https://api.github.com/users/cidermole/followers","following_url":"https://api.github.com/users/cidermole/following{/other_user}","gists_url":"https://api.github.com/users/cidermole/gists{/gist_id}","starred_url":"https://api.github.com/users/cidermole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cidermole/subscriptions","organizations_url":"https://api.github.com/users/cidermole/orgs","repos_url":"https://api.github.com/users/cidermole/repos","events_url":"https://api.github.com/users/cidermole/events{/privacy}","received_events_url":"https://api.github.com/users/cidermole/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-07T07:27:53Z","updated_at":"2016-04-07T07:27:53Z","closed_at":null,"body":"On a Redhat 7.3, I run\r\n$> .vendor/compile.sh\r\n\r\nmoses does not compile because the GooglePerftools package is not found\r\nThe error message is:\r\nCould NOT find GooglePerftools (missing:  GooglePerftools_LIBRARIES GooglePerftools_LIBRARIES_DEBUG GooglePerftools_INCLUDE_DIR) \r\n-- Could NOT find tcmalloc (missing:  GooglePerftools_LIBRARIES) \r\nCMake Error: The following variables are used in this project, but they are set to NOTFOUND.\r\n\r\n\r\nThe GooglePerftools package is correctly installed into a user-defined  path (say \"MYGPERPATH\")\r\n\r\nAs reported in \"moses/cmake/FindGooglePerftools.cmake\"\r\nI set the environment variable GooglePerftools_ROOT_DIR in a shell before running the compilation, but nothing changes.\r\nThe reason seems that the variable is not properly set ny cmake. This is its actuak value:\r\nGooglePerftools_ROOT_DIR: GooglePerftools_ROOT_DIR-NOTFOUND\r\n\r\nIt seems that the following instruction does not work as expected\r\nfind_path(GooglePerftools_ROOT_DIR\r\n    NAMES include/google/heap-profiler.h\r\n)\r\n\r\nI add the HINTS parameter as follows\r\nfind_path(GooglePerftools_ROOT_DIR\r\n    NAMES include/google/heap-profiler.h\r\n    HINTS $ENV{GooglePerftools_ROOT_DIR}\r\n)\r\nand it works\r\n\r\n\r\nUsing this patch, and running sequentially\r\n\r\n$> export GooglePerftools_ROOT_DIR=MYGPERPATH\r\n$> ./vendor/compile.sh\r\n\r\neverything worked well:\r\nthe package was found\r\n-- Found GooglePerftools: /home/bertoldi/software/gperftools/versions/gperftools-2.1/lib/libtcmalloc_minimal.so  \r\n-- Found tcmalloc: /home/bertoldi/software/gperftools/versions/gperftools-2.1/lib/libtcmalloc_minimal.so  \r\n\r\nand moses was compiled successfully\r\n\r\n\r\nI assigned the issue to David, because he is the former developer of the script. Feel free to re-assign to someone else.\r\n\r\nIf my (or another equivalent) patch is fine, please push it in the branch, and improve the documentation correspondingly"}}