Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-Package] CRAN issues #629

Closed
12 tasks done
Laurae2 opened this issue Jun 16, 2017 · 71 comments
Closed
12 tasks done

[R-Package] CRAN issues #629

Laurae2 opened this issue Jun 16, 2017 · 71 comments

Comments

@Laurae2
Copy link
Contributor

Laurae2 commented Jun 16, 2017

Environment info

Operating System: Windows 8.1 Pro
CPU: i7-4600U
R version: 3.4

To make a release on CRAN, we will need first to fix all the errors / warnings / notes. Currently testing on Windows, but we will also need to test on Linux. If some of them cannot be fixed, we will need to have an explanation for each of those which will not be fixed by us. @guolinke

Maybe time to add some vignettes @coforfe if you want to work on them.

  • Fix CRAN errors
  • Fix CRAN warnings
  • Fix CRAN notes
  • Add vignettes
  • Make examples runnable for tests
  • Switch to MinGW by default on Windows (it falls to MinGW if VS fails to be found)
  • Clean install everytime when not using precompiled dll/lib
  • Pass CRAN checks on Windows
  • Pass CRAN checks on Linux
  • Make CRAN-valid portable installation configuration ([R-package] Create portable configuration with 'configure' scripts #2960)
  • Submit to CRAN
  • Get accepted on CRAN

00install.out:

* installing *source* package 'lightgbm' ...
** libs
installing via 'install.libs.R' to C:/tmp/RtmpG2NQSv/lightgbm.Rcheck/lightgbm
Warning in file.copy("./../../include", "./", overwrite = TRUE, recursive = TRUE) :
  problem copying .\..\..\include to .\include: No such file or directory
Error in eval(ei, envir) : Cannot find folder LightGBM/include
* removing 'C:/tmp/RtmpG2NQSv/lightgbm.Rcheck/lightgbm'

Windows (fake) CRAN log:

R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(devtools)
> library(roxygen2) # devtools::install_github("klutometis/roxygen")
> setwd("C:/LightGBM/R-package")
> devtools::check()
Updating lightgbm documentation
Loading lightgbm
Re-compiling lightgbm
"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL "C:\LightGBM\R-package"  \
  --library="C:\tmp\RtmpG2NQSv\devtools_install_19fa019043416" --no-R --no-data --no-help --no-demo --no-inst --no-docs --no-exec --no-multiarch  \
  --no-test-load --preclean 

* installing *source* package 'lightgbm' ...
** libs
installing via 'install.libs.R' to C:/tmp/RtmpG2NQSv/devtools_install_19fa019043416/lightgbm
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.11.25303.0
-- The CXX compiler identification is MSVC 19.11.25303.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Community/VC/Tools/MSVC/14.11.25301/bin/HostX86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Community/VC/Tools/MSVC/14.11.25301/bin/HostX86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Community/VC/Tools/MSVC/14.11.25301/bin/HostX86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Community/VC/Tools/MSVC/14.11.25301/bin/HostX86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: /openmp  
-- Configuring done
-- Generating done
-- Build files have been written to: C:/LightGBM/R-package/src/build
Microsoft (R) Build Engine version 15.3.118.39484
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 16/06/2017 07:00:42 PM.
Project "C:\LightGBM\R-package\src\build\_lightgbm.vcxproj" on node 1 (default targets).
Project "C:\LightGBM\R-package\src\build\_lightgbm.vcxproj" (1) is building "C:\LightGBM\R-package\src\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "x64\Release\ZERO_CHECK\".
  Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Checking Build System
  CMake does not need to re-run because C:/LightGBM/R-package/src/build/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\LightGBM\R-package\src\build\ZERO_CHECK.vcxproj" (default targets).
PrepareForBuild:
  Creating directory "_lightgbm.dir\Release\".
  Creating directory "C:\LightGBM\R-package\src\Release\".
  Creating directory "_lightgbm.dir\Release\_lightgbm.tlog\".
InitializeBuildStatus:
  Creating "_lightgbm.dir\Release\_lightgbm.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/LightGBM/R-package/src/CMakeLists.txt
  CMake does not need to re-run because C:/LightGBM/R-package/src/build/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.11.25301\bin\HostX86\x64\CL.exe /c /I"C:\LightGBM\R-package\src\include" /nologo /W4 /WX- /diagnostics:classic /O2 /Ob2 /Oi /Ot /Oy /GL /D WIN32 /D _WINDOWS /D NDEBUG /D USE_SOCKET /D "CMAKE_INTDIR=\"Release\"" /D _lightgbm_EXPORTS /D _WINDLL /D _MBCS /UNDEBUG /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /openmp /Fo"_lightgbm.dir\Release\\" /Fd"_lightgbm.dir\Release\vc141.pdb" /Gd /TP /errorReport:queue   -pedantic -g -O0 "C:\LightGBM\R-package\src\src\c_api.cpp" "C:\LightGBM\R-package\src\src\lightgbm_R.cpp" "C:\LightGBM\R-package\src\src\application\application.cpp" "C:\LightGBM\R-package\src\src\boosting\boosting.cpp" "C:\LightGBM\R-package\src\src\boosting\gbdt.cpp" "C:\LightGBM\R-package\src\src\boosting\gbdt_prediction.cpp" "C:\LightGBM\R-package\src\src\boosting\prediction_early_stop.cpp" "C:\LightGBM\R-package\src\src\io\bin.cpp" "C:\LightGBM\R-package\src\src\io\config.cpp" "C:\LightGBM\R-package\src\src\io\dataset.cpp" "C:\LightGBM\R-package\src\src\io\dataset_loader.cpp" "C:\LightGBM\R-package\src\src\io\metadata.cpp" "C:\LightGBM\R-package\src\src\io\parser.cpp" "C:\LightGBM\R-package\src\src\io\tree.cpp" "C:\LightGBM\R-package\src\src\metric\dcg_calculator.cpp" "C:\LightGBM\R-package\src\src\metric\metric.cpp" "C:\LightGBM\R-package\src\src\objective\objective_function.cpp" "C:\LightGBM\R-package\src\src\network\linker_topo.cpp" "C:\LightGBM\R-package\src\src\network\linkers_mpi.cpp" "C:\LightGBM\R-package\src\src\network\linkers_socket.cpp" "C:\LightGBM\R-package\src\src\network\network.cpp" "C:\LightGBM\R-package\src\src\treelearner\data_parallel_tree_learner.cpp" "C:\LightGBM\R-package\src\src\treelearner\feature_parallel_tree_learner.cpp" "C:\LightGBM\R-package\src\src\treelearner\gpu_tree_learner.cpp" "C:\LightGBM\R-package\src\src\treelearner\serial_tree_learner.cpp" "C:\LightGBM\R-package\src\src\treelearner\tree_learner.cpp" "C:\LightGBM\R-package\src\src\treelearner\voting_parallel_tree_learner.cpp"
cl : Command line warning D9025: overriding '/DNDEBUG' with '/UNDEBUG' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
  c_api.cpp
cl : Command line warning D9002: ignoring unknown option '-pedantic' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
cl : Command line warning D9002: ignoring unknown option '-g' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
cl : Command line warning D9002: ignoring unknown option '-O0' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
  lightgbm_R.cpp
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  dataset.cpp
  dataset_loader.cpp
  metadata.cpp
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
  metric.cpp
  objective_function.cpp
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  Compiling...
  network.cpp
  data_parallel_tree_learner.cpp
  feature_parallel_tree_learner.cpp
  gpu_tree_learner.cpp
  serial_tree_learner.cpp
  tree_learner.cpp
  voting_parallel_tree_learner.cpp
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.11.25301\bin\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\LightGBM\R-package\src\Release\lib_lightgbm.dll" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/LightGBM/R-package/src/Release/lib_lightgbm.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/LightGBM/R-package/src/Release/lib_lightgbm.lib" /MACHINE:X64   /machine:x64 /DLL _lightgbm.dir\Release\c_api.obj
  _lightgbm.dir\Release\lightgbm_R.obj
  _lightgbm.dir\Release\application.obj
  _lightgbm.dir\Release\boosting.obj
  _lightgbm.dir\Release\gbdt.obj
  _lightgbm.dir\Release\gbdt_prediction.obj
  _lightgbm.dir\Release\prediction_early_stop.obj
  _lightgbm.dir\Release\bin.obj
  _lightgbm.dir\Release\config.obj
  _lightgbm.dir\Release\dataset.obj
  _lightgbm.dir\Release\dataset_loader.obj
  _lightgbm.dir\Release\metadata.obj
  _lightgbm.dir\Release\parser.obj
  _lightgbm.dir\Release\tree.obj
  _lightgbm.dir\Release\dcg_calculator.obj
  _lightgbm.dir\Release\metric.obj
  _lightgbm.dir\Release\objective_function.obj
  _lightgbm.dir\Release\linker_topo.obj
  _lightgbm.dir\Release\linkers_mpi.obj
  _lightgbm.dir\Release\linkers_socket.obj
  _lightgbm.dir\Release\network.obj
  _lightgbm.dir\Release\data_parallel_tree_learner.obj
  _lightgbm.dir\Release\feature_parallel_tree_learner.obj
  _lightgbm.dir\Release\gpu_tree_learner.obj
  _lightgbm.dir\Release\serial_tree_learner.obj
  _lightgbm.dir\Release\tree_learner.obj
  _lightgbm.dir\Release\voting_parallel_tree_learner.obj
  c_api.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
     Creating library C:/LightGBM/R-package/src/Release/lib_lightgbm.lib and object C:/LightGBM/R-package/src/Release/lib_lightgbm.exp
  Generating code
  Finished generating code
  _lightgbm.vcxproj -> C:\LightGBM\R-package\src\Release\lib_lightgbm.dll
FinalizeBuildStatus:
  Deleting file "_lightgbm.dir\Release\_lightgbm.tlog\unsuccessfulbuild".
  Touching "_lightgbm.dir\Release\_lightgbm.tlog\_lightgbm.lastbuildstate".
Done Building Project "C:\LightGBM\R-package\src\build\_lightgbm.vcxproj" (default targets).

Build succeeded.

"C:\LightGBM\R-package\src\build\_lightgbm.vcxproj" (default target) (1) ->
(ClCompile target) -> 
  cl : Command line warning D9025: overriding '/DNDEBUG' with '/UNDEBUG' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
  cl : Command line warning D9002: ignoring unknown option '-pedantic' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
  cl : Command line warning D9002: ignoring unknown option '-g' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]
  cl : Command line warning D9002: ignoring unknown option '-O0' [C:\LightGBM\R-package\src\build\_lightgbm.vcxproj]

    4 Warning(s)
    0 Error(s)

Time Elapsed 00:00:44.73
Found library file: C:/LightGBM/R-package/src/Release/lib_lightgbm.dll to move to C:/tmp/RtmpG2NQSv/devtools_install_19fa019043416/lightgbm/libs/x64* DONE (lightgbm)
Loading required package: R6
Writing NAMESPACE
Writing predict.lgb.Booster.Rd
Setting env vars -------------------------------------------------------------------------------------------------------------------------------------------
CFLAGS  : -Wall -pedantic
CXXFLAGS: -Wall -pedantic
Building lightgbm ------------------------------------------------------------------------------------------------------------------------------------------
"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD build "C:\LightGBM\R-package" --no-resave-data  \
  --no-manual 

* checking for file 'C:\LightGBM\R-package/DESCRIPTION' ... OK
* preparing 'lightgbm':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
Removed empty directory 'lightgbm/src/build/CMakeFiles/3.8.0/CompilerIdC/tmp'
Removed empty directory 'lightgbm/src/build/CMakeFiles/3.8.0/CompilerIdCXX/tmp'
Removed empty directory 'lightgbm/src/build/CMakeFiles/CMakeTmp'
* looking to see if a 'data/datalist' file should be added
* building 'lightgbm_0.2.tar.gz'
Warning in utils::tar(filepath, pkgname, compression = "gzip", compression_level = 9L,  :
  storing paths of more than 100 bytes is not portable:
  'lightgbm/src/build/CMakeFiles/3.8.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate'

Setting env vars -------------------------------------------------------------------------------------------------------------------------------------------
_R_CHECK_CRAN_INCOMING_ : FALSE
_R_CHECK_FORCE_SUGGESTS_: FALSE
Checking lightgbm ------------------------------------------------------------------------------------------------------------------------------------------
"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD check "C:\tmp\RtmpG2NQSv/lightgbm_0.2.tar.gz" --as-cran  \
  --timings --no-manual 

* using log directory 'C:/tmp/RtmpG2NQSv/lightgbm.Rcheck'
* using R version 3.4.0 (2017-04-21)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* using options '--no-manual --as-cran'
* checking for file 'lightgbm/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'lightgbm' version '0.2'
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... WARNING
Subdirectory 'src' contains:
  CMakeLists.txt
These are unlikely file names for src files.

In addition to the above warning(s), found the following notes:

Found the following apparent object files/libraries:
  src/Release/lib_lightgbm.dll
  src/build/CMakeFiles/3.8.0/CompilerIdC/Debug/CMakeCCompilerId.obj
  src/build/CMakeFiles/3.8.0/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj
  src/build/_lightgbm.dir/Release/application.obj
  src/build/_lightgbm.dir/Release/bin.obj
  src/build/_lightgbm.dir/Release/boosting.obj
  src/build/_lightgbm.dir/Release/c_api.obj
  src/build/_lightgbm.dir/Release/config.obj
  src/build/_lightgbm.dir/Release/data_parallel_tree_learner.obj
  src/build/_lightgbm.dir/Release/dataset.obj
  src/build/_lightgbm.dir/Release/dataset_loader.obj
  src/build/_lightgbm.dir/Release/dcg_calculator.obj
  src/build/_lightgbm.dir/Release/feature_parallel_tree_learner.obj
  src/build/_lightgbm.dir/Release/gbdt.obj
  src/build/_lightgbm.dir/Release/gbdt_prediction.obj
  src/build/_lightgbm.dir/Release/gpu_tree_learner.obj
  src/build/_lightgbm.dir/Release/lightgbm_R.obj
  src/build/_lightgbm.dir/Release/linker_topo.obj
  src/build/_lightgbm.dir/Release/linkers_mpi.obj
  src/build/_lightgbm.dir/Release/linkers_socket.obj
  src/build/_lightgbm.dir/Release/metadata.obj
  src/build/_lightgbm.dir/Release/metric.obj
  src/build/_lightgbm.dir/Release/network.obj
  src/build/_lightgbm.dir/Release/objective_function.obj
  src/build/_lightgbm.dir/Release/parser.obj
  src/build/_lightgbm.dir/Release/prediction_early_stop.obj
  src/build/_lightgbm.dir/Release/serial_tree_learner.obj
  src/build/_lightgbm.dir/Release/tree.obj
  src/build/_lightgbm.dir/Release/tree_learner.obj
  src/build/_lightgbm.dir/Release/voting_parallel_tree_learner.obj
Object files/libraries should not be included in a source package.
* checking if there is a namespace ... OK
* checking for executable files ... WARNING
Found the following executable files:
  src/Release/lib_lightgbm.dll
  src/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_C.bin
  src/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_CXX.bin
  src/build/CMakeFiles/3.8.0/CompilerIdC/CompilerIdC.exe
  src/build/CMakeFiles/3.8.0/CompilerIdCXX/CompilerIdCXX.exe
  src/build/CMakeFiles/FindOpenMP/ompver_C.bin
  src/build/CMakeFiles/FindOpenMP/ompver_CXX.bin
  src/build/CMakeFiles/feature_tests.bin
Source packages should not contain undeclared executable files.
See section 'Package structure' in the 'Writing R Extensions' manual.
* checking for hidden files and directories ... OK
* checking for portable file names ... NOTE
Found the following non-portable file path:
  lightgbm/src/build/CMakeFiles/3.8.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate

Tarballs are only required to store paths of up to 100 bytes and cannot
store those of more than 256 bytes, with restrictions including to 100
bytes for the final component.
See section 'Package structure' in the 'Writing R Extensions' manual.
* checking whether package 'lightgbm' can be installed ...Warning: running command '"C:/PROGRA~1/R/R-34~1.0/bin/x64/Rcmd.exe" INSTALL -l "C:/tmp/RtmpG2NQSv/lightgbm.Rcheck" --no-html --no-multiarch "C:\tmp\RTMPG2~1\LIGHTG~1.RCH\00_PKG~1\lightgbm"' had status 1
 ERROR
Installation failed.
See 'C:/tmp/RtmpG2NQSv/lightgbm.Rcheck/00install.out' for details.
* DONE

Status: 1 ERROR, 2 WARNINGs, 1 NOTE
See
  'C:/tmp/RtmpG2NQSv/lightgbm.Rcheck/00check.log'
for details.

R CMD check results
1 error  | 2 warnings | 1 note 
checking whether package 'lightgbm' can be installed ... ERROR
Installation failed.
See 'C:/tmp/RtmpG2NQSv/lightgbm.Rcheck/00install.out' for details.

checking if this is a source package ... WARNING
Subdirectory 'src' contains:
  CMakeLists.txt
These are unlikely file names for src files.

In addition to the above warning(s), found the following notes:

Found the following apparent object files/libraries:
  src/Release/lib_lightgbm.dll
  src/build/CMakeFiles/3.8.0/CompilerIdC/Debug/CMakeCCompilerId.obj
... 19 lines ...
  src/build/_lightgbm.dir/Release/metadata.obj
  src/build/_lightgbm.dir/Release/metric.obj
  src/build/_lightgbm.dir/Release/network.obj
  src/build/_lightgbm.dir/Release/objective_function.obj
  src/build/_lightgbm.dir/Release/parser.obj
  src/build/_lightgbm.dir/Release/prediction_early_stop.obj
  src/build/_lightgbm.dir/Release/serial_tree_learner.obj
  src/build/_lightgbm.dir/Release/tree.obj
  src/build/_lightgbm.dir/Release/tree_learner.obj
  src/build/_lightgbm.dir/Release/voting_parallel_tree_learner.obj
Object files/libraries should not be included in a source package.

checking for executable files ... WARNING
Found the following executable files:
  src/Release/lib_lightgbm.dll
  src/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_C.bin
  src/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_CXX.bin
  src/build/CMakeFiles/3.8.0/CompilerIdC/CompilerIdC.exe
  src/build/CMakeFiles/3.8.0/CompilerIdCXX/CompilerIdCXX.exe
  src/build/CMakeFiles/FindOpenMP/ompver_C.bin
  src/build/CMakeFiles/FindOpenMP/ompver_CXX.bin
  src/build/CMakeFiles/feature_tests.bin
Source packages should not contain undeclared executable files.
See section 'Package structure' in the 'Writing R Extensions' manual.

checking for portable file names ... NOTE
Found the following non-portable file path:
  lightgbm/src/build/CMakeFiles/3.8.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate

Tarballs are only required to store paths of up to 100 bytes and cannot
store those of more than 256 bytes, with restrictions including to 100
bytes for the final component.
See section 'Package structure' in the 'Writing R Extensions' manual.
@Laurae2 Laurae2 changed the title CRAN issues [R-Package] CRAN issues Jun 16, 2017
@guolinke
Copy link
Collaborator

@Laurae2

  1. After execute the https://github.com/Microsoft/LightGBM/blob/master/R-package/build_package.R, the R-Package folder is a self-contained package, we can directly use it.
  2. Why need to go back to MinGW in Windows ?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jun 17, 2017

@guolinke CRAN Windows machines do not have MSBuild or Runtimes for Visual Studio compiled code. They use MinGW 4.9 and Rtools to compile code and create packages.

If using precompiled stuff, we have to check with them about how we can get the package accepted on CRAN. CRAN usually compiles packages themselves in an automated fashion and there should be no error/warning/note when running the check on all platforms they have (unless we have a special reason for the check). The compiled package by CRAN is what is proposed to R users as direct download. As all CRAN / R users (who compile stuff like for Rcpp) have Rtools, they forcibly have MinGW 4.9 hence why the requirement to switch to MinGW as default: VS compiled code will not run nor load on CRAN machines (DLL error), leading to the package being rejected.

@guolinke
Copy link
Collaborator

@Laurae2
It can run by copy vc runtime DLL to the same folder of lib_lightgbm.dll manually

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jun 17, 2017

@guolinke vc runtime DLL is MIT license? Everything in the R package must be MIT license if the R package is MIT in CRAN. There are no exception for this rule in CRAN.

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jun 17, 2017

This is the rule for using binary packages for Windows / Mac:

Binary packages

Policies for when a (Windows or OS X) binary package will be distributed:

  • all its package dependencies on CRAN are available for that platform. Dependencies from other repositories will be installed at CRAN’s discretion.
  • any external software needed can easily be installed on the build machine for all the sub-architectures: here “easily” includes not depending on specific versions, nor should the installed binary depend on specific versions.
  • it passes R CMD check without error for all the available sub-architectures, or at CRAN’s discretion, for the most important sub-architecture(s).

Binary packages are not accepted from maintainers: CRAN will only host binary packages prepared by those responsible for the binary areas. Their packages are made automatically by batch jobs and can take a day or two to appear on the CRAN master site (maybe longer to reach CRAN mirrors).

Binary packages are built for the current version of R: they may also be built for the last version in the previous series (e.g. R 3.1.3 when R 3.2.x is current) or for R-devel.

Questions about binary packages should be addressed to those responsible for building them: Simon Urbanek (OS X) and Uwe Ligges (Windows); email addresses ‘First.Lastname@R-project.org’.

You can also check here online to try to pass a fake Windows CRAN check: https://win-builder.r-project.org/

@guolinke
Copy link
Collaborator

@Laurae2

all its package dependencies on CRAN are available for that platform. Dependencies from other repositories will be installed at CRAN’s discretion.

So the dll of vc runtime is ok ?

Another solution: upload our dlls (include vc runtime) to another website (like nuget), and download it when install R-package ?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jun 17, 2017

@guolinke We need to ask uwe.ligges@r-project.org to see if it is feasible or not to use Visual Studio DLL requiring VC runtime.

The whole installation and the DLL compilation must be done by Uwe Ligges.

@coforfe
Copy link

coforfe commented Jun 17, 2017

Hello,
Good to see that you are close to release it to CRAN. Thanks for that!

I am going to start with the vignette.

Is there any point you want to highlight?.
And regarding the time frame for this, when should it be ready?.

Thanks!
Carlos.

@guolinke
Copy link
Collaborator

@Laurae2 okay, can you help to ask Uwe Ligges ?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jun 29, 2017

@guolinke yes, but I'm currently on a project so I don't have enough time anymore.

Perhaps @dselivanov can?

@dselivanov
Copy link

I doubt cran will accept anything which requires vc or something not open sourced. I'm out of context, could you point me why vc is used instead of mingw?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jul 15, 2017

@dselivanov VS is used by default for performance. But now we have an automatic fallback to Rtools' MinGW, so it is fine.

@guolinke
Copy link
Collaborator

@Laurae2 can we enable the test of R package in travis / appveyor?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jul 19, 2017

@guolinke Yes, we also need to add more appropriate tests to testthat folder (it's very outdated, from 6 months ago).

https://github.com/Microsoft/LightGBM/tree/master/R-package/tests/testthat

@guolinke guolinke added this to the v3.0 milestone Aug 3, 2017
@Royhuiy
Copy link

Royhuiy commented Oct 13, 2017

how to install lightgbm in the R-language?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Oct 17, 2017

@Royhuiy read https://github.com/Microsoft/LightGBM/tree/master/R-package and open a new issue if you still are not managing to install the R package. If everything is setup correctly, then it requires only one line to install the R package.

@guolinke
Copy link
Collaborator

@Laurae2 any updates or plans for CRAN ?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Dec 26, 2017

@guolinke no update yet, we would need to clean all the check errors/warnings/notes first

@guolinke
Copy link
Collaborator

@Laurae2 any updates ?

@Laurae2
Copy link
Contributor Author

Laurae2 commented Jun 24, 2018

@guolinke Currently not having enough time, perhaps @jameslamb can help us.

@jameslamb
Copy link
Collaborator

@Laurae2 @guolinke I have been traveling a lot recently, but back with my feet on the ground for a while and should have some time to help with this. Do you have a target date for CRAN release?

@jameslamb
Copy link
Collaborator

@Laurae2 I've fixed a few more of these today, will submit a PR in the next few days.

You can assign this issue to me if you'd like

@Laurae2 Laurae2 self-assigned this Jul 8, 2018
@guolinke
Copy link
Collaborator

@jameslamb do you know which tests cause these errors?

@jameslamb
Copy link
Collaborator

You can see the logs here: https://builder.r-hub.io/status/lightgbm_2.3.2.tar.gz-38bbdb220ecd4ea288a2986c8f5717eb

Unfortunately I can't tell from those logs which test is breaking. Running the jobs on R Hub are pretty easy though...maybe tomorrow I can build a version of the R package that writes a lot more log messages, so we can narrow it down.

@guolinke
Copy link
Collaborator

@jameslamb

5536#> [ OK: 763 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 4 ]

5537#> 1. Failure: lgb.train() works as expected with sparse features (@test_basic.R#477)

5538#> 2. Failure: learning-to-rank with lgb.cv() works as expected (@test_learning_to_rank.R#119)

5539#> 3. Failure: learning-to-rank with lgb.cv() works as expected (@test_learning_to_rank.R#125)

5540#> 4. Failure: learning-to-rank with lgb.cv() works as expected (@test_learning_to_rank.R#131)

5541#> Error: testthat unit tests failed

@jameslamb
Copy link
Collaborator

!!!!! ooooooo interesting, I missed that!

Ok so one thing we could do is add testthat::skip_on_cran() to those tests, so they're run in our CI and not on CRAN. That wouldn't fix the underlying problem but it would help toward the larger goal of getting to CRAN.

@guolinke
Copy link
Collaborator

@shiyu1994 could you help to locate the mis-align errors?

@jameslamb
Copy link
Collaborator

I'm trying that now. By the way, to test that specific issue in the environment where I saw it, you can run this from the root of the repo

sh build-cran-package.sh

then in R (but change the email address)

result <- rhub::check(
    path = "lightgbm_2.3.2.tar.gz"
    , email = "jaylamb20@gmail.com"
    , check_args = c(
        "--as-cran"
        , "--use-valgrind"
    )
    , platform = "linux-x86_64-rocker-gcc-san"
    , env_vars = c(
        "R_COMPILE_AND_INSTALL_PACKAGES" = "always"
    )
)

@shiyu1994
Copy link
Collaborator

@shiyu1994 could you help to locate the mis-align errors?

Ok. I'll look into this too.

@jameslamb
Copy link
Collaborator

Ok now I think that the failing unit tests and the misalignment errors are not related. Look at this build: https://builder.r-hub.io/status/original/lightgbm_2.3.2.tar.gz-9a1b2e49f6bf473892a6b9eccfa9f045

So I see

[LightGBM] [Info] Saving data to binary file /tmp/RtmpPHBRdI/lgb.Dataset_b374e15120f
io/dataset_loader.cpp:340:59: runtime error: reference binding to misaligned address 0x7f73b216302e for type 'const value_type', which requires 4 byte alignment
0x7f73b216302e: note: pointer points here
 00 00 01 00 13 00  00 00 ff ff ff ff 14 00  00 00 ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  ff ff

but also

══ testthat results  ═══════════════════════════════════════════════════════════
[ OK: 732 | SKIPPED: 4 | WARNINGS: 0 | FAILED: 0 ]

That is in a version of the package with these tests (#629 (comment)) skipped.

@jameslamb
Copy link
Collaborator

I just had a thought about some of these...if we pick up #1944 and create R vignettes/, that could also be used to avoid some of the CHECK NOTEs in #629 (comment) about examples that take too long to run. If we introduced vignettes, the documentation for expensive functions like lgb.train() and lgb.cv() could just say "for example code, see <link to the vignettes>".

@hcho3
Copy link
Contributor

hcho3 commented Aug 5, 2020

@jameslamb FYI, you can download Oracle Solaris VM from this link. The link also shows how to install R in Solaris. It came in handy when XGBoost failed CRAN checks for Solaris target and I had to debug it.

@jameslamb
Copy link
Collaborator

ooooooooo that's awesome, thank you! Will be a lot faster than using R Hub to debug 😂

@jameslamb
Copy link
Collaborator

@hcho3 are the notes at that link why you decided to add SystemRequirements: GNU make to DESCRIPTION?

https://github.com/dmlc/xgboost/blob/5a2dcd1c33738ff0941438952155e2472a09d809/R-package/DESCRIPTION#L68

@hcho3
Copy link
Contributor

hcho3 commented Aug 5, 2020

@jameslamb It had to do with supporting Windows: dmlc/xgboost#2994.

@jameslamb
Copy link
Collaborator

ooooo thanks!

@guolinke
Copy link
Collaborator

guolinke commented Aug 11, 2020

@jameslamb
Copy link
Collaborator

jameslamb commented Aug 11, 2020

thanks @guolinke ! Ok I know how to fix the Debian note, and how to get a better error on Windows. I'll create a PR tonight.

Thanks for your help, we'll have to do this a few times 😬

@guolinke
Copy link
Collaborator

@jameslamb no problem!

@jameslamb
Copy link
Collaborator

I just re-submitted to win-builder now that #3307 has been merged. Can confirm we are passing all checks there! The only NOTE is the one all new packages get, which can be safely ignored.

When CRAN comes back from their time off (August 24th), we can re-submit and I think we have a very good chance of being accepted.

How I submitted

sh build-cran-package.sh
devtools::check_win_release(
    pkg = "lightgbm_r/",
    args = NULL,
    manual = TRUE,
    email = "jaylamb20@gmail.com",
    quiet = FALSE,
)

logs

00check.log (1 NOTE)
* using log directory 'd:/RCompile/CRANguest/R-release/lightgbm.Rcheck'
* using R version 4.0.2 (2020-06-22)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* checking for file 'lightgbm/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'lightgbm' version '3.0.0-1'
* package encoding: UTF-8
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'Guolin Ke <jaylamb20@gmail.com>'

New submission

License components with restrictions and base license permitting such:
  MIT + file LICENSE
File 'LICENSE':
  The MIT License (MIT)
  
  Copyright (c) Microsoft Corporation
  
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'lightgbm' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestamps ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* loading checks for arch 'i386'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
** checking use of S3 registration ... OK
* loading checks for arch 'x64'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
** checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [9s] OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of 'data' directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking line endings in shell scripts ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compiled code ... OK
* checking examples ...
** running examples for arch 'i386' ... [4s] OK
** running examples for arch 'x64' ... [7s] OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
** running tests for arch 'i386' ... [13s] OK
  Running 'testthat.R' [13s]
** running tests for arch 'x64' ... [13s] OK
  Running 'testthat.R' [12s]
* checking PDF version of manual ... OK
* checking for detritus in the temp directory ... OK
* DONE
Status: 1 NOTE
00install.out
* installing *source* package 'lightgbm' ...
** using staged installation
checking whether MM_PREFETCH works...yes
checking whether MM_MALLOC works...yes
** libs

*** arch - i386
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c application/application.cpp -o application/application.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/boosting.cpp -o boosting/boosting.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/gbdt.cpp -o boosting/gbdt.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/gbdt_model_text.cpp -o boosting/gbdt_model_text.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/gbdt_prediction.cpp -o boosting/gbdt_prediction.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/prediction_early_stop.cpp -o boosting/prediction_early_stop.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/bin.cpp -o io/bin.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/config.cpp -o io/config.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/config_auto.cpp -o io/config_auto.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/dataset.cpp -o io/dataset.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/dataset_loader.cpp -o io/dataset_loader.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/file_io.cpp -o io/file_io.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/json11.cpp -o io/json11.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/metadata.cpp -o io/metadata.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/parser.cpp -o io/parser.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/tree.cpp -o io/tree.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c metric/dcg_calculator.cpp -o metric/dcg_calculator.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c metric/metric.cpp -o metric/metric.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c objective/objective_function.cpp -o objective/objective_function.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/linker_topo.cpp -o network/linker_topo.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/linkers_mpi.cpp -o network/linkers_mpi.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/linkers_socket.cpp -o network/linkers_socket.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/network.cpp -o network/network.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/data_parallel_tree_learner.cpp -o treelearner/data_parallel_tree_learner.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/feature_parallel_tree_learner.cpp -o treelearner/feature_parallel_tree_learner.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/gpu_tree_learner.cpp -o treelearner/gpu_tree_learner.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/serial_tree_learner.cpp -o treelearner/serial_tree_learner.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/tree_learner.cpp -o treelearner/tree_learner.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/voting_parallel_tree_learner.cpp -o treelearner/voting_parallel_tree_learner.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c c_api.cpp -o c_api.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c lightgbm_R.cpp -o lightgbm_R.o
d:/Compiler/rtools40/mingw32/bin/g++ -shared -s -static-libgcc -o lightgbm.dll tmp.def application/application.o boosting/boosting.o boosting/gbdt.o boosting/gbdt_model_text.o boosting/gbdt_prediction.o boosting/prediction_early_stop.o io/bin.o io/config.o io/config_auto.o io/dataset.o io/dataset_loader.o io/file_io.o io/json11.o io/metadata.o io/parser.o io/tree.o metric/dcg_calculator.o metric/metric.o objective/objective_function.o network/linker_topo.o network/linkers_mpi.o network/linkers_socket.o network/network.o treelearner/data_parallel_tree_learner.o treelearner/feature_parallel_tree_learner.o treelearner/gpu_tree_learner.o treelearner/serial_tree_learner.o treelearner/tree_learner.o treelearner/voting_parallel_tree_learner.o c_api.o lightgbm_R.o -fopenmp -pthread -lws2_32 -lIphlpapi -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R-4.0.2/bin/i386 -lR
installing to d:/RCompile/CRANguest/R-release/lib/00LOCK-lightgbm/00new/lightgbm/libs/i386

*** arch - x64
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c application/application.cpp -o application/application.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/boosting.cpp -o boosting/boosting.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/gbdt.cpp -o boosting/gbdt.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/gbdt_model_text.cpp -o boosting/gbdt_model_text.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/gbdt_prediction.cpp -o boosting/gbdt_prediction.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c boosting/prediction_early_stop.cpp -o boosting/prediction_early_stop.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/bin.cpp -o io/bin.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/config.cpp -o io/config.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/config_auto.cpp -o io/config_auto.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/dataset.cpp -o io/dataset.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/dataset_loader.cpp -o io/dataset_loader.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/file_io.cpp -o io/file_io.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/json11.cpp -o io/json11.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/metadata.cpp -o io/metadata.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/parser.cpp -o io/parser.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c io/tree.cpp -o io/tree.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c metric/dcg_calculator.cpp -o metric/dcg_calculator.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c metric/metric.cpp -o metric/metric.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c objective/objective_function.cpp -o objective/objective_function.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/linker_topo.cpp -o network/linker_topo.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/linkers_mpi.cpp -o network/linkers_mpi.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/linkers_socket.cpp -o network/linkers_socket.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c network/network.cpp -o network/network.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/data_parallel_tree_learner.cpp -o treelearner/data_parallel_tree_learner.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/feature_parallel_tree_learner.cpp -o treelearner/feature_parallel_tree_learner.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/gpu_tree_learner.cpp -o treelearner/gpu_tree_learner.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/serial_tree_learner.cpp -o treelearner/serial_tree_learner.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/tree_learner.cpp -o treelearner/tree_learner.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c treelearner/voting_parallel_tree_learner.cpp -o treelearner/voting_parallel_tree_learner.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c c_api.cpp -o c_api.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.0.2/include" -DNDEBUG -I./include -DMM_PREFETCH=1 -DMM_MALLOC=1 -DUSE_SOCKET -DLGB_R_BUILD    -I"d:/Compiler/gcc-4.9.3/local330/include"  -fopenmp -pthread   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c lightgbm_R.cpp -o lightgbm_R.o
d:/Compiler/rtools40/mingw64/bin/g++ -shared -s -static-libgcc -o lightgbm.dll tmp.def application/application.o boosting/boosting.o boosting/gbdt.o boosting/gbdt_model_text.o boosting/gbdt_prediction.o boosting/prediction_early_stop.o io/bin.o io/config.o io/config_auto.o io/dataset.o io/dataset_loader.o io/file_io.o io/json11.o io/metadata.o io/parser.o io/tree.o metric/dcg_calculator.o metric/metric.o objective/objective_function.o network/linker_topo.o network/linkers_mpi.o network/linkers_socket.o network/network.o treelearner/data_parallel_tree_learner.o treelearner/feature_parallel_tree_learner.o treelearner/gpu_tree_learner.o treelearner/serial_tree_learner.o treelearner/tree_learner.o treelearner/voting_parallel_tree_learner.o c_api.o lightgbm_R.o -fopenmp -pthread -lws2_32 -lIphlpapi -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R-4.0.2/bin/x64 -lR
installing to d:/RCompile/CRANguest/R-release/lib/00LOCK-lightgbm/00new/lightgbm/libs/x64
** R
** data
** demo
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'lightgbm' as lightgbm_3.0.0-1.zip
* DONE (lightgbm)

@jameslamb
Copy link
Collaborator

I want to provide an update for anyone who is subscribed to this issue:

{lightgbm} was briefly accepted to CRAN a few weeks ago, but was then kicked off for a combination of failing checks with valgrind and, according to CRAN, too many failed submissions. We have been banned from re-submitting until November.

See #3338 (comment) for a summary, and the full discussion in #3338 for lots of details on progress towards CRAN.

We're working on replicating and then fixing those failing checks (#3439, #3443), and will attempt another submission in November.

Thanks to all the LightGBM R users following this thread for your patience, contributions, bug reports and feature requests. 😀

@jameslamb
Copy link
Collaborator

{lightgbm} is now officially available on CRAN, so I'm closing this issue. 😀

https://cran.r-project.org/web/packages/lightgbm/index.html

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

No branches or pull requests

10 participants