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

python setup.py install error #11

Open
cankeyyin opened this issue Jul 1, 2022 · 1 comment
Open

python setup.py install error #11

cankeyyin opened this issue Jul 1, 2022 · 1 comment

Comments

@cankeyyin
Copy link

以下是LightGBM_compilation.log的内容:

CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is MSVC 19.29.30141.0
-- The CXX compiler identification is MSVC 19.29.30141.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Configuring done
-- Generating done
-- Build files have been written to: L:/mtgbmcode-main/python-package/build_cpp
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642
版权所有(C) Microsoft Corporation。保留所有权利。

Building Custom Rule L:/mtgbmcode-main/python-package/compile/CMakeLists.txt
c_api.cpp
lightgbm_R.cpp
application.cpp
boosting.cpp
gbdt.cpp
gbdt_model_text.cpp
gbdt_prediction.cpp
prediction_early_stop.cpp
bin.cpp
config.cpp
config_auto.cpp
dataset.cpp
dataset_loader.cpp
file_io.cpp
json11.cpp
metadata.cpp
parser.cpp
tree.cpp
dcg_calculator.cpp
metric.cpp
linker_topo.cpp
linkers_mpi.cpp
linkers_socket.cpp
network.cpp
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(70,115): warning C4100: “hessians2”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(70,88): warning C4100: “gradients2”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\io\dataset.cpp(594,39): warning C4267: “=”: 从“size_t”转换到“LightGBM::data_size_t”,可能丢失数据 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(70,64): warning C4100: “hessians”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\io\dataset.cpp(601,41): warning C4267: “=”: 从“size_t”转换到“LightGBM::data_size_t”,可能丢失数据 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(70,38): warning C4100: “gradients”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(76,54): warning C4100: “filename”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(76,31): warning C4100: “num_label”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(75,31): warning C4100: “num_labels”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(74,47): warning C4100: “num_iterations”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(74,26): warning C4100: “start_iteration”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\boosting.cpp(80,23): warning C4100: “num_labels”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
objective_function.cpp
data_parallel_tree_learner.cpp
feature_parallel_tree_learner.cpp
gpu_tree_learner.cpp
serial_tree_learner.cpp
serial_tree_learner2.cpp
tree_learner.cpp
voting_parallel_tree_learner.cpp
L:\mtgbmcode-main\python-package\compile\src\treelearner\serial_tree_learner2.cpp(252,15): warning C4189: “ii”: 局部变量已初始化但不引用 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\treelearner\tree_learner.cpp(41,86): warning C4100: “hessians”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\treelearner\tree_learner.cpp(41,60): warning C4100: “gradients”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\treelearner\tree_learner.cpp(41,39): warning C4100: “tree”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\treelearner\tree_learner.cpp(46,17): warning C4100: “num_data”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\treelearner\tree_learner.cpp(45,54): warning C4100: “used_indices”: 未引用的形参 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
c_api.obj : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能
正在创建库 L:/mtgbmcode-main/python-package/compile/Release/lib_lightgbm.lib 和对象 L:/mtgbmcode-main/python-package/compile/Release/lib_lightgbm.exp
正在生成代码
L:\mtgbmcode-main\python-package\compile\src\boosting\gbdt.cpp(380): error C4716: “LightGBM::GBDT::TrainOneIter”: 必须返回一个值 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
L:\mtgbmcode-main\python-package\compile\src\boosting\dart.hpp(61): warning C4700: 使用了未初始化的局部变量“ret” [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]
LINK : fatal error LNK1257: 代码生成失败 [L:\mtgbmcode-main\python-package\build_cpp_lightgbm.vcxproj]

@lulu313kobe
Copy link

hi @cankeyyin met same error, do you have any updates about this? thx!

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

No branches or pull requests

2 participants