I tried export CFLAGS="-I/usr/local/include"
export CXXFLAGS="-I/usr/local/include"
export CC=gcc export CXX=g++ export MAX_CONCURRENCY=1
export CPUCOUNT=1
export MAKEFLAGS="-j1" cpuset -l 0 pip install xgboost
CMAKE_BUILD_PARALLEL_LEVEL=1 pip install xgboost
(application) [wuliu@s13]:<~/.virtualenvs>$ cpuset -l 0 pip install xgboost
Collecting xgboost
Using cached xgboost-3.0.0.tar.gz (1.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [103 lines of output]
INFO:xgboost.packager.build_wheel😛arsed build configuration: {'hide_cxx_symbols': True, 'use_openmp': True, 'use_cuda': False, 'use_nccl': False, 'use_dlopen_nccl': False, 'plugin_federated': False, 'plugin_rmm': False, 'use_system_libxgboost': False}
INFO:xgboost.packager.build_wheel:Copying project files to temporary directory /tmp/tmpnht0zr93/whl_workspace
INFO:xgboost.packager.build_wheel:Copying /tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/pyproject.toml -> /tmp/tmpnht0zr93/whl_workspace/pyproject.toml
INFO:xgboost.packager.build_wheel:Copying /tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/hatch_build.py -> /tmp/tmpnht0zr93/whl_workspace/hatch_build.py
INFO:xgboost.packager.build_wheel:Copying /tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/README.rst -> /tmp/tmpnht0zr93/whl_workspace/README.rst
INFO:xgboost.packager.build_wheel:Copying /tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/xgboost -> /tmp/tmpnht0zr93/whl_workspace/xgboost
INFO:xgboost.packager.build_libxgboost:Building libxgboost.so from the C++ source files in /tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/cpp_src...
INFO:xgboost.packager.build_libxgboost:CMake args: ['cmake', '/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/cpp_src', '-GNinja', '-DKEEP_BUILD_ARTIFACTS_IN_BINARY_DIR=ON', '-DHIDE_CXX_SYMBOLS=ON', '-DUSE_OPENMP=ON', '-DUSE_CUDA=OFF', '-DUSE_NCCL=OFF', '-DUSE_DLOPEN_NCCL=OFF', '-DPLUGIN_FEDERATED=OFF', '-DPLUGIN_RMM=OFF']
-- The CXX compiler identification is GNU 13.2.0
-- The C compiler identification is GNU 13.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMake version 3.29.3
-- Performing Test XGBOOST_MM_PREFETCH_PRESENT
-- Performing Test XGBOOST_MM_PREFETCH_PRESENT - Success
-- Performing Test XGBOOST_BUILTIN_PREFETCH_PRESENT
-- Performing Test XGBOOST_BUILTIN_PREFETCH_PRESENT - Success
-- xgboost VERSION: 3.0.0
-- Setting build type to 'Release' as none was specified.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for fopen64
-- Looking for fopen64 - not found
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Found Backtrace: /usr/lib/libexecinfo.so
-- /tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/cpp_src/dmlc-core/cmake/build_config.h.in -> include/dmlc/build_config.h
-- Performing Test SUPPORT_MSSE2
-- Performing Test SUPPORT_MSSE2 - Success
-- Configuring done (3.8s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/tmpnht0zr93/libbuild
ninja: fatal: posix_spawn: Resource temporarily unavailable
INFO:xgboost.packager.build_libxgboost:Failed to build with OpenMP. Exception: Command '['ninja', '-j24']' returned non-zero exit status 1.
INFO:xgboost.packager.build_libxgboost:CMake args: ['cmake', '/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/cpp_src', '-GNinja', '-DKEEP_BUILD_ARTIFACTS_IN_BINARY_DIR=ON', '-DHIDE_CXX_SYMBOLS=ON', '-DUSE_OPENMP=OFF', '-DUSE_CUDA=OFF', '-DUSE_NCCL=OFF', '-DUSE_DLOPEN_NCCL=OFF', '-DPLUGIN_FEDERATED=OFF', '-DPLUGIN_RMM=OFF']
CMake Error at CMakeLists.txt:7 (project):
Running
'/usr/local/bin/ninja' '--version'
failed with:
resource temporarily unavailable
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/packager/nativelib.py", line 100, in build_libxgboost
_build(generator=generator)
File "/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/packager/nativelib.py", line 66, in _build
subprocess.check_call([build_tool, f"-j{nproc}"], cwd=build_dir)
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-j24']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/home/wuliu/.virtualenvs/application/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/usr/home/wuliu/.virtualenvs/application/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/home/wuliu/.virtualenvs/application/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/packager/pep517.py", line 80, in build_wheel
libxgboost = locate_or_build_libxgboost(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/packager/nativelib.py", line 171, in locate_or_build_libxgboost
return build_libxgboost(cpp_src_dir, build_dir=build_dir, build_config=build_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/packager/nativelib.py", line 104, in build_libxgboost
_build(generator=generator)
File "/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/packager/nativelib.py", line 57, in _build
subprocess.check_call(cmake_cmd, cwd=build_dir)
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-xam6vt4h/xgboost_232bf8da33b644298de147e23db9f5fd/cpp_src', '-GNinja', '-DKEEP_BUILD_ARTIFACTS_IN_BINARY_DIR=ON', '-DHIDE_CXX_SYMBOLS=ON', '-DUSE_OPENMP=OFF', '-DUSE_CUDA=OFF', '-DUSE_NCCL=OFF', '-DUSE_DLOPEN_NCCL=OFF', '-DPLUGIN_FEDERATED=OFF', '-DPLUGIN_RMM=OFF']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.