{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/xgboost/issues/3081","repository_url":"https://api.github.com/repos/dmlc/xgboost","labels_url":"https://api.github.com/repos/dmlc/xgboost/issues/3081/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/xgboost/issues/3081/comments","events_url":"https://api.github.com/repos/dmlc/xgboost/issues/3081/events","html_url":"https://github.com/dmlc/xgboost/issues/3081","id":292382175,"number":3081,"title":"Error trying to compile with GPU support for R","user":{"login":"Hartsord","id":24504284,"avatar_url":"https://avatars3.githubusercontent.com/u/24504284?v=4","gravatar_id":"","url":"https://api.github.com/users/Hartsord","html_url":"https://github.com/Hartsord","followers_url":"https://api.github.com/users/Hartsord/followers","following_url":"https://api.github.com/users/Hartsord/following{/other_user}","gists_url":"https://api.github.com/users/Hartsord/gists{/gist_id}","starred_url":"https://api.github.com/users/Hartsord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hartsord/subscriptions","organizations_url":"https://api.github.com/users/Hartsord/orgs","repos_url":"https://api.github.com/users/Hartsord/repos","events_url":"https://api.github.com/users/Hartsord/events{/privacy}","received_events_url":"https://api.github.com/users/Hartsord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-29T12:03:31Z","updated_at":"2018-02-09T10:33:55Z","closed_at":null,"author_association":"NONE","body":"Hello, I'm new to building packages for R, and I'm getting errors trying to build gpu support for R, as listed here: [http://xgboost.readthedocs.io/en/latest/build.html#installing-r-package-with-gpu-support](http://xgboost.readthedocs.io/en/latest/build.html#installing-r-package-with-gpu-support).\r\n\r\nSpecifically, I'm getting this error:\r\n```\r\nCMake Error at cmake/modules/FindLibR.cmake:44 (message):\r\n  LIBR_LIB_DIR was not set!\r\nCall Stack (most recent call first):\r\n  cmake/modules/FindLibR.cmake:154 (create_rlib_for_msvc)\r\n  CMakeLists.txt:165 (find_package)\r\n```\r\nAgain, I'm new, but I can't figure out how to address this. How do I specify the LIBR_LIB_DIR ?\r\n\r\n## Environment info\r\nOperating System: Win10 Pro\r\n\r\nCompiler: cmake Visual Studio 2017 win64 with VS 2015 toolcjhains\r\n\r\nPackage used (python/R/jvm/C++): R\r\n\r\n`xgboost` version used: last on GitHub\r\n\r\nIf installing from source, please provide \r\n\r\n1. The commit hash (`git rev-parse HEAD`): 98be9aef9aab76ca8e1ca6c250c565dcdbcb7be0\r\nLog: \r\n[CMakeOutput.log](https://github.com/dmlc/xgboost/files/1673413/CMakeOutput.log)\r\n\r\nIf you are using R package, please provide\r\n\r\n1. The R `sessionInfo()`\r\n```\r\nR version 3.4.3 (2017-11-30)\r\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\r\nRunning under: Windows >= 8 x64 (build 9200)\r\n\r\nMatrix products: default\r\n\r\nlocale:\r\n[1] LC_COLLATE=English_United States.1252 \r\n[2] LC_CTYPE=English_United States.1252   \r\n[3] LC_MONETARY=English_United States.1252\r\n[4] LC_NUMERIC=C                          \r\n[5] LC_TIME=English_United States.1252    \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets \r\n[6] methods   base     \r\n\r\nloaded via a namespace (and not attached):\r\n[1] compiler_3.4.3 tools_3.4.3   \r\n```\r\n\r\n## Steps to reproduce\r\n\r\n1. I am trying to build xgboost R package with GPU support as listed [here](http://xgboost.readthedocs.io/en/latest/build.html#installing-r-package-with-gpu-support)\r\n2. After installing VS, CUDA & Git, I tried to build the package with `cmake .. -G\"Visual Studio 15 2017 Win64\" -DUSE_CUDA=ON -DR_LIB=ON`\r\n3. Response with errors are: \r\n```\r\nCUDA 9.0 detected, adding Volta compute capability (7.0).\r\n'C:\\PROGRA~1\\R\\R-34~1.3/bin/x64/Rterm.exe\" --slave --no-save -e \"cat' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n-- LIBR_HOME [/registry]\r\n-- LIBR_EXECUTABLE [C:/Program Files/R/R-3.4.3/bin/x64/R.exe]\r\n-- LIBR_INCLUDE_DIRS [/registry/include]\r\n-- LIBR_LIB_DIR [/registry/bin/x64]\r\n-- LIBR_CORE_LIBRARY []\r\nCMake Error at cmake/modules/FindLibR.cmake:44 (message):\r\n  LIBR_LIB_DIR was not set!\r\nCall Stack (most recent call first):\r\n  cmake/modules/FindLibR.cmake:154 (create_rlib_for_msvc)\r\n  CMakeLists.txt:165 (find_package)\r\n```\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"C:/Users/<user>/Downloads/xgboost/build/CMakeFiles/CMakeOutput.log\".\r\n\r\n## What have you tried?\r\n\r\n1. git submodule init/udpate\r\n2.\r\n3.\r\n"},"comment":{"url":"https://api.github.com/repos/dmlc/xgboost/issues/comments/364397373","html_url":"https://github.com/dmlc/xgboost/issues/3081#issuecomment-364397373","issue_url":"https://api.github.com/repos/dmlc/xgboost/issues/3081","id":364397373,"user":{"login":"gm209","id":33937998,"avatar_url":"https://avatars1.githubusercontent.com/u/33937998?v=4","gravatar_id":"","url":"https://api.github.com/users/gm209","html_url":"https://github.com/gm209","followers_url":"https://api.github.com/users/gm209/followers","following_url":"https://api.github.com/users/gm209/following{/other_user}","gists_url":"https://api.github.com/users/gm209/gists{/gist_id}","starred_url":"https://api.github.com/users/gm209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gm209/subscriptions","organizations_url":"https://api.github.com/users/gm209/orgs","repos_url":"https://api.github.com/users/gm209/repos","events_url":"https://api.github.com/users/gm209/events{/privacy}","received_events_url":"https://api.github.com/users/gm209/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T10:33:55Z","updated_at":"2018-02-09T10:33:55Z","author_association":"NONE","body":"**This is odd... and you both seem to have Windows 8...**\r\n\r\nI've got windows 10 - session.info() doesn't seem to have caught up yet.\r\n\r\n        OS Name\t Microsoft Windows 10 Pro\r\n\r\n**Which cmake --version do you have?**\r\n\r\n        cmake --version\r\n        cmake version 3.10.0-rc5\r\n\r\n**Does providing -DLIBR_EXECUTABLE=\"C:/Program Files/R/R-3.4.3/bin/x64/R.exe\" to cmake command result in anything different?**\r\n\r\nTried this and got the same error.\r\n\r\n**Does running \"C:/Program Files/R/R-3.4.3/bin/R.exe\" --slave --no-save -e \"cat(normalizePath(R.home(), winslash='/'))\" in CMD work?**\r\n\r\nWhen i run the command verbatim on the command line i get the same error;\r\n\r\n        \"C:/Program Files/R/R-3.4.3/bin/R.exe\" --slave --no-save -e \"cat(normalizePath(R.home(), winslash='/'))\"\r\n        'C:\\PROGRA~1\\R\\R-34~1.3\\bin\\x64\\R.exe\" --slave --no-save -e \"cat' is not recognized as an internal or external command, operable program or batch file.\r\n\r\nHowever when i run the command inside an R session it works fine:\r\n\r\n        cat(normalizePath(R.home(), winslash='/'))\r\n        C:/Program Files/R/R-3.4.3\r\n\r\nI managed to make the command run from the command line by removing the winslash argument - this makes me think its a quoting/escape character issue. Is there anyway to get around this by manually setting the path? (I tried creating an environment variable called R_HOME but that didn't work either)\r\n\r\n        \"C:/Program Files/R/R-3.4.3/bin/R.exe\" --slave --no-save -e \"cat(normalizePath(R.home()))\"\r\n        C:\\Program Files\\R\\R-3.4.3\r\n\r\nCheers\r\n\r\n"}}
{"actor":{"display_login":"gm209"}}