Mottl / lightgbm3-rs

LightGBM Rust library
MIT License
11 stars 6 forks source link

target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/lightgbm/include/LightGBM/c_api.h:19:10: fatal error: 'cstdint' file not found #4

Closed marirs closed 6 months ago

marirs commented 6 months ago

HI,

I'm trying to compile my program to --target x86_64-unknown-linux-gnu and I get the error mentioned.

error: failed to run custom build command for `lightgbm3-sys v1.0.2`

Caused by:
  process didn't exit successfully: `/Users/sg/Documents/Dev/Rust/mlware/target/debug/build/lightgbm3-sys-a0ad22fd3a5f5320/build-script-build` (exit status: 101)
  --- stdout
  CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
  CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
  TARGET_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
  CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
  TARGET_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
  CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
  TARGET_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_x86_64-unknown-linux-gnu = None
  CMAKE_x86_64_unknown_linux_gnu = None
  TARGET_CMAKE = None
  CMAKE = None
  running: cd "/Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/lightgbm" "-DBUILD_STATIC_LIB=ON" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_SYSTEM_PROCESSOR=x86_64" "-DCMAKE_INSTALL_PREFIX=/Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/opt/homebrew/bin/x86_64-unknown-linux-gnu-gcc" "-DCMAKE_CXX_FLAGS= -std=c++11 -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/opt/homebrew/bin/x86_64-unknown-linux-gnu-g++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/opt/homebrew/bin/x86_64-unknown-linux-gnu-gcc" "-DCMAKE_BUILD_TYPE=Release"
  -- Using _mm_prefetch
  -- Using _mm_malloc
  -- Configuring done (0.0s)
  -- Generating done (0.0s)
  -- Build files have been written to: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/build
  running: cd "/Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/build" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "cmake" "--build" "." "--target" "install" "--config" "Release"
  [ 90%] Built target lightgbm_objs
  [ 96%] Built target lightgbm
  [ 98%] Built target lightgbm_capi_objs
  [100%] Built target _lightgbm
  Install the project...
  -- Install configuration: "Release"
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/bin/lightgbm
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/lib/lib_lightgbm.a
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/objective_function.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/prediction_early_stop.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/export.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/config.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/metric.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/c_api.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/application.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_metadata.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_split_info.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/vector_cudahost.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_algorithms.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_objective_function.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_metric.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_random.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_column_data.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_utils.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_tree.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/cuda/cuda_row_data.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/tree.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/dataset_loader.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/chunked_array.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/array_args.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/file_io.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/threading.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/pipeline_reader.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/openmp_wrapper.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/json11.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/common.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/binary_writer.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/log.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/text_reader.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/yamc
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/yamc/yamc_shared_lock.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/yamc/alternate_shared_mutex.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/yamc/yamc_rwlock_sched.hpp
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/byte_buffer.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/utils/random.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/dataset.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/train_share_states.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/network.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/tree_learner.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/feature_group.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/meta.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/boosting.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/sample_strategy.h
  -- Up-to-date: /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/include/LightGBM/bin.h
  cargo:root=/Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out

  --- stderr
  CMake Deprecation Warning at CMakeLists.txt:35 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

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

  gmake: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
  /Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/lightgbm/include/LightGBM/c_api.h:19:10: fatal error: 'cstdint' file not found
  thread 'main' panicked at /Users/sg/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lightgbm3-sys-1.0.2/build.rs:58:10:
  Unable to generate bindings: ClangDiagnostic("/Users/sg/Documents/Dev/Rust/mlware/target/x86_64-unknown-linux-gnu/debug/build/lightgbm3-sys-e4757f4d31b67a70/out/lightgbm/include/LightGBM/c_api.h:19:10: fatal error: 'cstdint' file not found\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

am i missing something? could you help me? Thanks Sriram