mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1053] [Bug]subprocess.CalledProcessError #742
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#742
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @YihaoG on GitHub (Apr 5, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1053
检查清单
问题描述
subprocess.CalledProcessError: Command '['cmake', '/home/gyh/ktrans/ktransformers/csrc/ktransformers_ext', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/gyh/ktrans/ktransformers/build/lib.linux-x86_64-cpython-311/', '-DPYTHON_EXECUTABLE=/home/gyh/anaconda3/envs/ktransformers/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DKTRANSFORMERS_USE_CUDA=ON', '-DLLAMA_NATIVE=ON', '-DEXAMPLE_VERSION_INFO=0.2.4.post1+cu126torch26fancy']' returned non-zero exit status 1.
error: subprocess-exited-with-error
× Building wheel for ktransformers (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/gyh/anaconda3/envs/ktransformers/bin/python /home/gyh/anaconda3/envs/ktransformers/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmp8gqblbu0
cwd: /home/gyh/ktrans/ktransformers
Building wheel for ktransformers (pyproject.toml) ... error
ERROR: Failed building wheel for ktransformers
Failed to build ktransformers
ERROR: Failed to build installable wheels for some pyproject.toml based projects (ktransformers)
复现步骤
conda create --name ktransformers python=3.11
conda activate ktransformers
conda install -c conda-forge libstdcxx-ng
sudo apt install libtbb-dev libssl-dev libcurl4-openssl-dev libaio-dev libfmt-dev libgflags-dev zlib1g-dev patchelf
git clone https://github.com/kvcache-ai/ktransformers.git
cd ktransformers
git submodule update --init --recursive
USE_BALANCE_SERVE=1 USE_NUMA=1 bash ./install.sh
环境信息
CUDA: 12.6
GCC: 11.4.0
CMAKE: 4.0.0
GPU: Nvidia GeForce RTX 3090
CPU: Intel® Xeon(R) Platinum 8454H × 128
@magikRUKKOLA commented on GitHub (Apr 5, 2025):
Have you tired to use --verbose? The last time I have tried to build the latest version of ktransformers, that helped:
https://forums.developer.nvidia.com/t/error-exception-specification-is-incompatible-for-cospi-sinpi-cospif-sinpif-with-glibc-2-41/323591/3
@kite800 commented on GitHub (Apr 6, 2025):
I have the same issue:
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '/home/kite/ktransformers/csrc/ktransformers_ext', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/kite/ktransformers/build/lib.linux-x86_64-cpython-311/', '-DPYTHON_EXECUTABLE=/home/kite/anaconda3/envs/ktransformers/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DKTRANSFORMERS_USE_CUDA=ON', '-DLLAMA_NATIVE=ON', '-DEXAMPLE_VERSION_INFO=0.2.4.post1+cu128torch26avx2']' returned non-zero exit status 1.
error: subprocess-exited-with-error
× Building wheel for ktransformers (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/kite/anaconda3/envs/ktransformers/bin/python /home/kite/anaconda3/envs/ktransformers/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpnv50b2zb
cwd: /home/kite/ktransformers
Building wheel for ktransformers (pyproject.toml) ... error
ERROR: Failed building wheel for ktransformers
Failed to build ktransformers
ERROR: Failed to build installable wheels for some pyproject.toml based projects (ktransformers)
@qiyuxinlin commented on GitHub (Apr 7, 2025):
Hi @YihaoG , by executing this command you can see the specific errors.
@qiyuxinlin commented on GitHub (Apr 7, 2025):
Hi @kite800, by executing this command you can see the specific errors.
@kite800 commented on GitHub (Apr 7, 2025):
thanks to qiyuxinlin.
your command shows that CUDA compiler was not found. and I solved it by :
export PATH="$PATH:/usr/local/cuda-12.4/bin"
export LD_LIBRARY_PATH="/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH"
export LIBRARY_PATH="/usr/local/cuda-12.4/lib64:$LIBRARY_PATH"
export CUDA_PATH="/usr/local/cuda-12.4"
@AlbertG123 commented on GitHub (Apr 12, 2025):
cmake /home/kite/ktransformers/csrc/ktransformers_ext -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/kite/ktransformers/build/lib.linux-x86_64-cpython-311/ -DPYTHON_EXECUTABLE=/home/kite/anaconda3/envs/ktransformers/bin/python -DCMAKE_BUILD_TYPE=Release -DKTRANSFORMERS_USE_CUDA=ON -DLLAMA_NATIVE=ON -DEXAMPLE_VERSION_INFO=0.2.4.post1+cu128torch26avx2
能看到具体的报错,我的报错是因为 thirdparty/llama.cpp 和pybind11 两个文件夹是空的.
解决这两个问题,可以继续往下build 了. Cool