Skip to content

[R-package] [gpu] Cmake version reported to be low when compiling the R package through build_r.R in Windows #6599

Open
@Vinnish-A

Description

On my Windows PC, my cmake version is 3.30

PS F:\0Local\project\LightGBM> cmake --version
cmake version 3.30.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

However, when running Rscript build_r.R --use-gpu --opencl-library="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/lib/x64/OpenCL.lib" --boost-librarydir=G:/boost_1_85_0/lib64-msvc-14.3 command, it prompts that my cmake version is too low.

PS F:\0Local\project\LightGBM> Rscript build_r.R  --use-gpu  --opencl-library="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/lib/x64/OpenCL.lib"  --boost-librarydir=G:/boost_1_85_0/lib64-msvc-14.3
Warning message:
In readLines(DESCRIPTION_FILE) :
  incomplete final line found on 'F:/0Local/project/LightGBM/lightgbm_r/DESCRIPTION'
* checking for file 'F:/0Local/project/LightGBM/lightgbm_r/DESCRIPTION' ... OK
* preparing 'lightgbm':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
      -----------------------------------
* installing *source* package 'lightgbm' ...
** using staged installation
** libs
installing via 'install.libs.R' to C:/Users/vinnish/AppData/Local/Temp/RtmpGQya0t/Rinst56cc3ebf1eaa/00LOCK-lightgbm/00new/lightgbm
Trying 'Visual Studio 17 2022'
-- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:26 (cmake_minimum_required):
  CMake 3.28 or higher is required.  You are running version 3.24.3


Trying 'Visual Studio 16 2019'
-- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:26 (cmake_minimum_required):
  CMake 3.28 or higher is required.  You are running version 3.24.3


Trying 'Visual Studio 15 2017'
-- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:26 (cmake_minimum_required):
  CMake 3.28 or higher is required.  You are running version 3.24.3


Trying 'Visual Studio 14 2015'
-- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:26 (cmake_minimum_required):
  CMake 3.28 or higher is required.  You are running version 3.24.3


Warning in eval(ei, envir) :
  Building with Visual Studio failed. Attempting with MSYS2
CMake Error: Error: generator : MSYS Makefiles
Does not match the generator used previously: Visual Studio 14 2015
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
CMake Error: Error: generator : MSYS Makefiles
Does not match the generator used previously: Visual Studio 14 2015
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
Error in .run_shell_command("cmake", c(cmake_args, "..")) :
  Command failed with exit code: 1
* removing 'C:/Users/vinnish/AppData/Local/Temp/RtmpGQya0t/Rinst56cc3ebf1eaa/lightgbm'
      -----------------------------------
ERROR: package installation failed
Error in .run_shell_command("R", r_build_args) :
  Command failed with exit code: 1
Execution halted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions