{"action":"created","issue":{"url":"https://api.github.com/repos/jrudolph/perf-map-agent/issues/33","repository_url":"https://api.github.com/repos/jrudolph/perf-map-agent","labels_url":"https://api.github.com/repos/jrudolph/perf-map-agent/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/jrudolph/perf-map-agent/issues/33/comments","events_url":"https://api.github.com/repos/jrudolph/perf-map-agent/issues/33/events","html_url":"https://github.com/jrudolph/perf-map-agent/issues/33","id":147565029,"number":33,"title":"Cannot build on OS X El Capitan","user":{"login":"shpsec-dennis","id":12767728,"avatar_url":"https://avatars.githubusercontent.com/u/12767728?v=3","gravatar_id":"","url":"https://api.github.com/users/shpsec-dennis","html_url":"https://github.com/shpsec-dennis","followers_url":"https://api.github.com/users/shpsec-dennis/followers","following_url":"https://api.github.com/users/shpsec-dennis/following{/other_user}","gists_url":"https://api.github.com/users/shpsec-dennis/gists{/gist_id}","starred_url":"https://api.github.com/users/shpsec-dennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shpsec-dennis/subscriptions","organizations_url":"https://api.github.com/users/shpsec-dennis/orgs","repos_url":"https://api.github.com/users/shpsec-dennis/repos","events_url":"https://api.github.com/users/shpsec-dennis/events{/privacy}","received_events_url":"https://api.github.com/users/shpsec-dennis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T21:49:29Z","updated_at":"2016-04-13T11:54:28Z","closed_at":null,"body":"Hi,\r\n\r\nI can't seem to build most of the targets on El Capitan.\r\n\r\n```\r\n$ cmake --version\r\ncmake version 3.5.20160411-g9ac11\r\n\r\nCMake suite maintained and supported by Kitware (kitware.com/cmake)\r\n```\r\n```\r\n$ cmake .\r\n-- JNI_INCLUDE_DIRS=/System/Library/Frameworks/JavaVM.framework/Headers;/System/Library/Frameworks/JavaVM.framework/Headers;/System/Library/Frameworks/JavaVM.framework/Headers\r\n-- JNI_LIBRARIES=/System/Library/Frameworks/JavaVM.framework;/System/Library/Frameworks/JavaVM.framework\r\n-- JAVA_INCLUDE_PATH=/System/Library/Frameworks/JavaVM.framework/Headers\r\n-- JAVA_INCLUDE_PATH2=/System/Library/Frameworks/JavaVM.framework/Headers\r\n-- LIBS: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/bin/jar  incl: /System/Library/Frameworks/JavaVM.framework/Headers/../lib/tools.jar output_dir: /Users/username/code/perf-map-agent/out\r\n-- Configuring done\r\nCMake Warning (dev):\r\n  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run \"cmake\r\n  --help-policy CMP0042\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  MACOSX_RPATH is not specified for the following targets:\r\n\r\n   perfmap\r\n\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\n-- Generating done\r\n-- Build files have been written to: /Users/username/code/perf-map-agent\r\n```\r\n\r\n```\r\n$ make --debug\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\nReading makefiles...\r\nUpdating goal targets....\r\n File `default_target' does not exist.\r\n   File `all' does not exist.\r\n     File `cmake_check_build_system' does not exist.\r\n    Must remake target `cmake_check_build_system'.\r\n    Successfully remade target file `cmake_check_build_system'.\r\n  Must remake target `all'.\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\nReading makefiles...\r\nUpdating goal targets....\r\n File `all' does not exist.\r\n   File `CMakeFiles/attach-main.dir/all' does not exist.\r\n  Must remake target `CMakeFiles/attach-main.dir/all'.\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\nReading makefiles...\r\nUpdating goal targets....\r\n File `CMakeFiles/attach-main.dir/depend' does not exist.\r\nMust remake target `CMakeFiles/attach-main.dir/depend'.\r\nSuccessfully remade target file `CMakeFiles/attach-main.dir/depend'.\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\nReading makefiles...\r\nUpdating goal targets....\r\n File `CMakeFiles/attach-main.dir/build' does not exist.\r\n   File `attach-main' does not exist.\r\n     File `CMakeFiles/attach-main' does not exist.\r\n       File `out/attach-main.jar' does not exist.\r\n           File `out/CMakeFiles/attach-main.dir/java_compiled_attach-main' does not exist.\r\n          Must remake target `out/CMakeFiles/attach-main.dir/java_compiled_attach-main'.\r\n[ 16%] Building Java objects for attach-main.jar\r\nsrc/java/AttachOnce.java:25: error: package com.sun.tools.attach does not exist\r\nimport com.sun.tools.attach.VirtualMachine;\r\n                           ^\r\nsrc/java/AttachOnce.java:37: error: cannot find symbol\r\n        VirtualMachine vm = VirtualMachine.attach(pid);\r\n        ^\r\n  symbol:   class VirtualMachine\r\n  location: class AttachOnce\r\nsrc/java/AttachOnce.java:37: error: cannot find symbol\r\n        VirtualMachine vm = VirtualMachine.attach(pid);\r\n                            ^\r\n  symbol:   variable VirtualMachine\r\n  location: class AttachOnce\r\nsrc/java/AttachOnce.java:46: error: package com.sun.tools.attach does not exist\r\n        } catch(com.sun.tools.attach.AgentInitializationException e) {\r\n                                    ^\r\n4 errors\r\nmake[2]: *** [out/CMakeFiles/attach-main.dir/java_compiled_attach-main] Error 1\r\nmake[1]: *** [CMakeFiles/attach-main.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jrudolph/perf-map-agent/issues/comments/209391880","html_url":"https://github.com/jrudolph/perf-map-agent/issues/33#issuecomment-209391880","issue_url":"https://api.github.com/repos/jrudolph/perf-map-agent/issues/33","id":209391880,"user":{"login":"jrudolph","id":9868,"avatar_url":"https://avatars.githubusercontent.com/u/9868?v=3","gravatar_id":"","url":"https://api.github.com/users/jrudolph","html_url":"https://github.com/jrudolph","followers_url":"https://api.github.com/users/jrudolph/followers","following_url":"https://api.github.com/users/jrudolph/following{/other_user}","gists_url":"https://api.github.com/users/jrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/jrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrudolph/subscriptions","organizations_url":"https://api.github.com/users/jrudolph/orgs","repos_url":"https://api.github.com/users/jrudolph/repos","events_url":"https://api.github.com/users/jrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/jrudolph/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T11:54:28Z","updated_at":"2016-04-13T11:54:28Z","body":"`tools.jar` is probably not found at the place the build is expecting it. Can you try adopting `CMakeLists.txt` to use the path where it is available at your computer. You need to change this line:\r\n\r\nset(CMAKE_JAVA_INCLUDE_PATH ${JAVA_INCLUDE_PATH}/../lib/tools.jar)\r\n"}}