python binding无法正常安装
passionate11 opened this issue · 2 comments
运行命令:pip install -U qwen-cpp,请问这个是什么问题?
报错如下:
Collecting qwen-cpp
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a4/76/61e947717636072018ce25a5929af05b0e47538a564cc0c3298935b38a49/qwen-cpp-0.1.3.tar.gz (2.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: qwen-cpp
Building wheel for qwen-cpp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for qwen-cpp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [522 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/qwen_cpp
copying qwen_cpp/init.py -> build/lib.linux-x86_64-cpython-38/qwen_cpp
copying qwen_cpp/convert.py -> build/lib.linux-x86_64-cpython-38/qwen_cpp
creating build/lib.linux-x86_64-cpython-38/tiktoken_cpp
copying tiktoken_cpp/registry.py -> build/lib.linux-x86_64-cpython-38/tiktoken_cpp
copying tiktoken_cpp/core.py -> build/lib.linux-x86_64-cpython-38/tiktoken_cpp
copying tiktoken_cpp/model.py -> build/lib.linux-x86_64-cpython-38/tiktoken_cpp
copying tiktoken_cpp/init.py -> build/lib.linux-x86_64-cpython-38/tiktoken_cpp
copying tiktoken_cpp/load.py -> build/lib.linux-x86_64-cpython-38/tiktoken_cpp
running egg_info
writing qwen_cpp.egg-info/PKG-INFO
writing dependency_links to qwen_cpp.egg-info/dependency_links.txt
writing top-level names to qwen_cpp.egg-info/top_level.txt
reading manifest file 'qwen_cpp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'NOTICE'
writing manifest file 'qwen_cpp.egg-info/SOURCES.txt'
running build_ext
-- The CXX compiler identification is GNU 9.5.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17 - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Warning at third_party/abseil-cpp/CMakeLists.txt:193 (message):
The default and system-level install directories are unsupported except in LTS releases of Abseil. Please set CMAKE_INSTALL_PREFIX to install Abseil in your source or build tree directly.
CMake Deprecation Warning at third_party/ggml/CMakeLists.txt:1 (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.
-- The C compiler identification is GNU 9.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- x86 detected
-- Linux detected
-- Found CUDAToolkit: /data1/yaosijia/cuda/cuda_tool/include (found version "11.8.89")
-- cuBLAS found
-- The CUDA compiler identification is NVIDIA 11.8.89
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /data1/yaosijia/cuda/cuda_tool/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- GGML CUDA sources found, configuring CUDA architecture
-- pybind11 v2.11.1
CMake Warning (dev) at third_party/pybind11/tools/FindPythonLibsNew.cmake:98 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
third_party/pybind11/tools/pybind11Tools.cmake:50 (find_package)
third_party/pybind11/tools/pybind11Common.cmake:188 (include)
third_party/pybind11/CMakeLists.txt:210 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /data1/yaosijia/miniconda3/envs/llms/bin/python (found suitable version "3.8.18", minimum required is "3.6")
-- Found PythonLibs: /data1/yaosijia/miniconda3/envs/llms/lib/libpython3.8.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Configuring done (3.3s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/build/temp.linux-x86_64-cpython-38/qwen_cpp._C
[ 0%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/log_severity.dir/log_severity.cc.o
[ 0%] Building C object third_party/ggml/src/CMakeFiles/ggml.dir/ggml.c.o
[ 0%] Building C object third_party/ggml/src/CMakeFiles/ggml.dir/ggml-alloc.c.o
[ 0%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/spinlock_wait.dir/internal/spinlock_wait.cc.o
[ 0%] Building CUDA object third_party/ggml/src/CMakeFiles/ggml.dir/ggml-cuda.cu.o
[ 1%] Building C object third_party/ggml/src/CMakeFiles/ggml.dir/ggml-backend.c.o
[ 1%] Building CXX object third_party/abseil-cpp/absl/numeric/CMakeFiles/int128.dir/int128.cc.o
[ 1%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_impl.cc.o
[ 2%] Building CXX object third_party/abseil-cpp/absl/profiling/CMakeFiles/exponential_biased.dir/internal/exponential_biased.cc.o
[ 2%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
[ 3%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_commandlineflag_internal.dir/internal/commandlineflag.cc.o
[ 5%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/civil_time.dir/internal/cctz/src/civil_time_detail.cc.o
[ 5%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/strerror.dir/internal/strerror.cc.o
[ 5%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_if.cc.o
[ 5%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/leak_check.dir/leak_check.cc.o
[ 5%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_format.cc.o
[ 6%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_info.cc.o
[ 7%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_seed_gen_exception.dir/seed_gen_exception.cc.o
[ 7%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_libc.cc.o
[ 8%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_platform.dir/internal/randen_round_keys.cc.o
[ 8%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o
[ 9%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_posix.cc.o
[ 10%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/zone_info_source.cc.o
[ 10%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_nullguard.dir/internal/nullguard.cc.o
[ 10%] Linking CXX static library ../../../../lib/libabsl_flags_commandlineflag_internal.a
[ 10%] Linking CXX static library ../../../../lib/libabsl_leak_check.a
[ 10%] Linking CXX static library ../../../../lib/libabsl_random_internal_platform.a
[ 10%] Built target leak_check
[ 10%] Built target flags_commandlineflag_internal
[ 10%] Built target random_internal_platform
[ 11%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/internal/randen_hwaes.cc.o
[ 11%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_randen_slow.dir/internal/randen_slow.cc.o
[ 11%] Linking CXX static library ../../../../lib/libabsl_spinlock_wait.a
[ 11%] Built target spinlock_wait
[ 11%] Linking CXX static library ../../../../lib/libabsl_log_internal_nullguard.a
[ 12%] Linking CXX static library ../../../../lib/libabsl_strerror.a
[ 12%] Built target log_internal_nullguard
[ 12%] Built target strerror
[ 12%] Linking CXX static library ../../../../lib/libabsl_random_seed_gen_exception.a
[ 13%] Linking CXX static library ../../../../lib/libabsl_log_severity.a
[ 13%] Built target random_seed_gen_exception
[ 13%] Built target log_severity
[ 13%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/raw_logging_internal.dir/internal/raw_logging.cc.o
[ 13%] Linking CXX static library ../../../../lib/libabsl_exponential_biased.a
[ 13%] Built target exponential_biased
[ 13%] Building CXX object third_party/abseil-cpp/absl/profiling/CMakeFiles/periodic_sampler.dir/internal/periodic_sampler.cc.o
[ 13%] Linking CXX static library ../../../../lib/libabsl_periodic_sampler.a
[ 14%] Linking CXX static library ../../../../lib/libabsl_random_internal_randen_slow.a
[ 14%] Built target periodic_sampler
[ 14%] Built target random_internal_randen_slow
[ 14%] Linking CXX static library ../../../../lib/libabsl_raw_logging_internal.a
[ 14%] Linking CXX static library ../../../../lib/libabsl_random_internal_randen_hwaes_impl.a
[ 14%] Linking CXX static library ../../../../lib/libabsl_civil_time.a
[ 15%] Linking CXX static library ../../../../lib/libabsl_int128.a
[ 15%] Built target raw_logging_internal
[ 15%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/throw_delegate.dir/internal/throw_delegate.cc.o
[ 15%] Built target random_internal_randen_hwaes_impl
[ 15%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/scoped_set_env.dir/internal/scoped_set_env.cc.o
[ 16%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/debugging_internal.dir/internal/address_is_readable.cc.o
[ 17%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/base.dir/internal/thread_identity.cc.o
[ 17%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/debugging_internal.dir/internal/vdso_support.cc.o
[ 17%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/debugging_internal.dir/internal/elf_mem_image.cc.o
[ 17%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cordz_functions.dir/internal/cordz_functions.cc.o
[ 17%] Building CXX object third_party/abseil-cpp/absl/types/CMakeFiles/bad_variant_access.dir/bad_variant_access.cc.o
[ 18%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/base.dir/internal/cycleclock.cc.o
[ 19%] Building CXX object third_party/abseil-cpp/absl/types/CMakeFiles/bad_optional_access.dir/bad_optional_access.cc.o
[ 19%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/base.dir/internal/spinlock.cc.o
[ 19%] Building CXX object third_party/abseil-cpp/absl/types/CMakeFiles/bad_any_cast_impl.dir/bad_any_cast.cc.o
[ 20%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/base.dir/internal/sysinfo.cc.o
[ 20%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/base.dir/internal/unscaledcycleclock.cc.o
[ 20%] Built target civil_time
[ 20%] Built target int128
[ 21%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_randen_hwaes.dir/internal/randen_detect.cc.o
[ 21%] Linking CXX static library ../../../../lib/libabsl_bad_any_cast_impl.a
[ 21%] Linking CXX static library ../../../../lib/libabsl_random_internal_randen_hwaes.a
[ 21%] Built target bad_any_cast_impl
[ 21%] Built target random_internal_randen_hwaes
[ 21%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_randen.dir/internal/randen.cc.o
[ 22%] Linking CXX static library ../../../../lib/libabsl_bad_optional_access.a
[ 22%] Linking CXX static library ../../../../lib/libabsl_bad_variant_access.a
[ 22%] Built target bad_optional_access
[ 22%] Built target bad_variant_access
[ 23%] Linking CXX static library ../../../../lib/libabsl_scoped_set_env.a
[ 23%] Built target scoped_set_env
[ 23%] Linking CXX static library ../../../../lib/libabsl_cordz_functions.a
[ 24%] Linking CXX static library ../../../../lib/libabsl_throw_delegate.a
[ 24%] Linking CXX static library ../../../../lib/libabsl_debugging_internal.a
[ 24%] Built target cordz_functions
[ 24%] Linking CXX static library ../../../../lib/libabsl_random_internal_randen.a
[ 24%] Built target throw_delegate
[ 24%] Built target debugging_internal
[ 24%] Built target random_internal_randen
[ 25%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/stacktrace.dir/stacktrace.cc.o
[ 26%] Linking CXX static library ../../../../lib/libabsl_base.a
[ 26%] Built target base
[ 26%] Building CXX object third_party/abseil-cpp/absl/base/CMakeFiles/malloc_internal.dir/internal/low_level_alloc.cc.o
[ 26%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings_internal.dir/internal/ostringstream.cc.o
[ 26%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/demangle_internal.dir/internal/demangle.cc.o
[ 27%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings_internal.dir/internal/escaping.cc.o
[ 27%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/string_view.dir/string_view.cc.o
[ 28%] Building CXX object third_party/abseil-cpp/absl/hash/CMakeFiles/city.dir/internal/city.cc.o
[ 28%] Building CXX object third_party/abseil-cpp/absl/hash/CMakeFiles/low_level_hash.dir/internal/low_level_hash.cc.o
[ 28%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings_internal.dir/internal/utf8.cc.o
[ 28%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc_cpu_detect.dir/internal/cpu_detect.cc.o
[ 28%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_conditions.dir/internal/conditions.cc.o
[ 28%] Linking CXX static library ../../../../lib/libabsl_stacktrace.a
[ 28%] Built target stacktrace
[ 29%] Linking CXX static library ../../../../lib/libabsl_log_internal_conditions.a
[ 29%] Built target log_internal_conditions
[ 29%] Linking CXX static library ../../../../lib/libabsl_crc_cpu_detect.a
[ 29%] Built target crc_cpu_detect
[ 30%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc_internal.dir/internal/crc.cc.o
[ 30%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc_internal.dir/internal/crc_x86_arm_combined.cc.o
[ 30%] Linking CXX static library ../../../../lib/libabsl_low_level_hash.a
[ 30%] Built target low_level_hash
[ 30%] Linking CXX static library ../../../../lib/libabsl_string_view.a
[ 30%] Built target string_view
[ 30%] Linking CXX static library ../../../../lib/libabsl_city.a
[ 30%] Linking CXX static library ../../../../lib/libabsl_strings_internal.a
[ 31%] Linking CXX static library ../../../../lib/libabsl_time_zone.a
[ 31%] Built target city
[ 31%] Built target strings_internal
[ 32%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/ascii.cc.o
[ 32%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/charconv.cc.o
[ 32%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/escaping.cc.o
[ 33%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/internal/charconv_bigint.cc.o
[ 34%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/str_replace.cc.o
[ 34%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/internal/charconv_parse.cc.o
[ 35%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/internal/damerau_levenshtein_distance.cc.o
[ 35%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/internal/memutil.cc.o
[ 35%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/internal/stringify_sink.cc.o
[ 36%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/match.cc.o
[ 36%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/numbers.cc.o
[ 36%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/str_cat.cc.o
[ 36%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/substitute.cc.o
[ 36%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/strings.dir/str_split.cc.o
[ 37%] Linking CXX static library ../../../../lib/libabsl_malloc_internal.a
[ 37%] Built target time_zone
[ 37%] Built target malloc_internal
[ 38%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/graphcycles_internal.dir/internal/graphcycles.cc.o
[ 39%] Linking CXX static library ../../../../lib/libabsl_crc_internal.a
[ 39%] Built target crc_internal
[ 40%] Linking CXX static library ../../../../lib/libabsl_demangle_internal.a
[ 40%] Built target demangle_internal
[ 40%] Linking CXX static library ../../../../lib/libabsl_graphcycles_internal.a
[ 40%] Built target graphcycles_internal
[ 41%] Linking CXX static library ../../../../lib/libabsl_strings.a
[ 41%] Built target strings
[ 41%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time.dir/civil_time.cc.o
[ 41%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time.dir/time.cc.o
[ 41%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time.dir/clock.cc.o
[ 42%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time.dir/duration.cc.o
[ 42%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time.dir/format.cc.o
[ 44%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_commandlineflag.dir/commandlineflag.cc.o
[ 44%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/symbolize.dir/symbolize.cc.o
[ 45%] Building CXX object third_party/abseil-cpp/absl/hash/CMakeFiles/hash.dir/internal/hash.cc.o
[ 45%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_fnmatch.dir/internal/fnmatch.cc.o
[ 46%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/arg.cc.o
[ 46%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_proto.dir/internal/proto.cc.o
[ 46%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/bind.cc.o
[ 47%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/extension.cc.o
[ 47%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_distributions.dir/discrete_distribution.cc.o
[ 47%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/float_conversion.cc.o
[ 48%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/output.cc.o
[ 48%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_seed_material.dir/internal/seed_material.cc.o
[ 48%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_distributions.dir/gaussian_distribution.cc.o
[ 48%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/str_format_internal.dir/internal/str_format/parser.cc.o
[ 48%] Linking CXX static library ../../../../lib/libabsl_log_internal_fnmatch.a
[ 48%] Built target log_internal_fnmatch
[ 48%] Linking CXX static library ../../../../lib/libabsl_flags_commandlineflag.a
[ 48%] Built target flags_commandlineflag
[ 49%] Linking CXX static library ../../../../lib/libabsl_log_internal_proto.a
[ 49%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_private_handle_accessor.dir/internal/private_handle_accessor.cc.o
[ 49%] Built target log_internal_proto
[ 49%] Linking CXX static library ../../../../lib/libabsl_random_internal_seed_material.a
[ 49%] Linking CXX static library ../../../../lib/libabsl_hash.a
[ 49%] Linking CXX static library ../../../../lib/libabsl_random_distributions.a
[ 49%] Built target random_internal_seed_material
[ 49%] Built target hash
[ 49%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_pool_urbg.dir/internal/pool_urbg.cc.o
[ 49%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_globals.dir/globals.cc.o
[ 49%] Built target random_distributions
[ 49%] Linking CXX static library ../../../../lib/libabsl_symbolize.a
[ 49%] Built target symbolize
[ 49%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/examine_stack.dir/internal/examine_stack.cc.o
[ 50%] Linking CXX static library ../../../../lib/libabsl_flags_private_handle_accessor.a
[ 50%] Built target flags_private_handle_accessor
[ 51%] Linking CXX static library ../../../../lib/libabsl_time.a
[ 52%] Linking CXX static library ../../../../lib/libabsl_random_internal_pool_urbg.a
[ 52%] Built target time
[ 52%] Built target random_internal_pool_urbg
[ 52%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/kernel_timeout_internal.dir/internal/kernel_timeout.cc.o
[ 53%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_globals.dir/internal/globals.cc.o
[ 54%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_entry.dir/log_entry.cc.o
[ 55%] Linking CXX static library ../../../../lib/libabsl_str_format_internal.a
[ 55%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_seed_sequences.dir/seed_sequences.cc.o
[ 55%] Linking CXX static library ../../../../lib/libabsl_examine_stack.a
[ 55%] Built target examine_stack
[ 55%] Building CXX object third_party/abseil-cpp/absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o
[ 55%] Linking CXX static library ../../../../lib/libabsl_log_globals.a
[ 55%] Built target str_format_internal
[ 55%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_distribution_test_util.dir/internal/chi_square.cc.o
[ 57%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_marshalling.dir/marshalling.cc.o
[ 57%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc32c.dir/crc32c.cc.o
[ 57%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc32c.dir/internal/crc_memcpy_fallback.cc.o
[ 57%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc32c.dir/internal/crc_memcpy_x86_arm_combined.cc.o
[ 59%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc32c.dir/internal/crc_non_temporal_memcpy.cc.o
[ 59%] Building CXX object third_party/abseil-cpp/absl/random/CMakeFiles/random_internal_distribution_test_util.dir/internal/distribution_test_util.cc.o
[ 59%] Built target log_globals
[ 59%] Linking CXX static library ../../../../lib/libabsl_log_entry.a
[ 60%] Linking CXX static library ../../../../lib/libabsl_failure_signal_handler.a
[ 60%] Built target log_entry
[ 60%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_sink.dir/log_sink.cc.o
[ 60%] Built target failure_signal_handler
[ 60%] Linking CXX static library ../../../../lib/libabsl_log_internal_globals.a
[ 60%] Built target log_internal_globals
[ 61%] Linking CXX static library ../../../../lib/libabsl_random_seed_sequences.a
[ 62%] Linking CXX static library ../../../../lib/libabsl_kernel_timeout_internal.a
[ 63%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_format.dir/internal/log_format.cc.o
[ 64%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_initialize.dir/initialize.cc.o
[ 64%] Built target kernel_timeout_internal
[ 64%] Built target random_seed_sequences
[ 64%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/barrier.cc.o
[ 65%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/sem_waiter.cc.o
[ 65%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/waiter_base.cc.o
[ 66%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/create_thread_identity.cc.o
[ 67%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/futex_waiter.cc.o
[ 67%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/pthread_waiter.cc.o
[ 67%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/blocking_counter.cc.o
[ 67%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/per_thread_sem.cc.o
[ 67%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/stdcpp_waiter.cc.o
[ 67%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/mutex.cc.o
[ 68%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/internal/win32_waiter.cc.o
[ 68%] Building CXX object third_party/abseil-cpp/absl/synchronization/CMakeFiles/synchronization.dir/notification.cc.o
[ 68%] Linking CXX static library ../../../../lib/libabsl_crc32c.a
[ 68%] Built target crc32c
[ 68%] Building CXX object third_party/abseil-cpp/absl/crc/CMakeFiles/crc_cord_state.dir/internal/crc_cord_state.cc.o
[ 68%] Linking CXX static library ../../../../lib/libabsl_random_internal_distribution_test_util.a
[ 68%] Built target random_internal_distribution_test_util
[ 68%] Linking CXX static library ../../../../lib/libabsl_log_sink.a
[ 68%] Built target log_sink
[ 68%] Linking CXX static library ../../../../lib/libabsl_log_initialize.a
[ 68%] Built target log_initialize
[ 68%] Linking CXX static library ../../../../lib/libabsl_log_internal_format.a
[ 68%] Built target log_internal_format
[ 68%] Linking CXX static library ../../../../lib/libabsl_flags_marshalling.a
[ 68%] Built target flags_marshalling
[ 69%] Linking CXX static library ../../../../lib/libabsl_synchronization.a
[ 69%] Built target synchronization
[ 69%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_log_sink_set.dir/internal/log_sink_set.cc.o
[ 69%] Building CXX object third_party/abseil-cpp/absl/container/CMakeFiles/hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o
[ 69%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_program_name.dir/internal/program_name.cc.o
[ 70%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cordz_handle.dir/internal/cordz_handle.cc.o
[ 70%] Building CXX object third_party/abseil-cpp/absl/container/CMakeFiles/hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o
[ 71%] Linking CXX static library ../../../../lib/libabsl_crc_cord_state.a
[ 71%] Built target crc_cord_state
[ 71%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord_internal.dir/internal/cord_internal.cc.o
[ 71%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord_internal.dir/internal/cord_rep_btree.cc.o
[ 72%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord_internal.dir/internal/cord_rep_btree_reader.cc.o
[ 72%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord_internal.dir/internal/cord_rep_crc.cc.o
[ 72%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord_internal.dir/internal/cord_rep_btree_navigator.cc.o
[ 73%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord_internal.dir/internal/cord_rep_consume.cc.o
[ 73%] Linking CXX static library ../../../../lib/libabsl_hashtablez_sampler.a
[ 73%] Linking CXX static library ../../../../lib/libabsl_flags_program_name.a
[ 73%] Built target hashtablez_sampler
[ 73%] Built target flags_program_name
[ 73%] Building CXX object third_party/abseil-cpp/absl/container/CMakeFiles/raw_hash_set.dir/internal/raw_hash_set.cc.o
[ 74%] Linking CXX static library ../../../../lib/libabsl_cordz_handle.a
[ 74%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_config.dir/usage_config.cc.o
[ 74%] Built target cordz_handle
[ 75%] Linking CXX static library ../../../../lib/libabsl_log_internal_log_sink_set.a
[ 75%] Built target log_internal_log_sink_set
[ 75%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_message.dir/internal/log_message.cc.o
[ 76%] Linking CXX static library ../../../../lib/libabsl_flags_config.a
[ 76%] Built target flags_config
[ 76%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_internal.dir/internal/flag.cc.o
[ 77%] Linking CXX static library ../../../../lib/libabsl_raw_hash_set.a
[ 77%] Built target raw_hash_set
[ 77%] Linking CXX static library ../../../../lib/libabsl_log_internal_message.a
[ 77%] Built target log_internal_message
[ 78%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/die_if_null.dir/die_if_null.cc.o
[ 78%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_internal_check_op.dir/internal/check_op.cc.o
[ 78%] Linking CXX static library ../../../../lib/libabsl_cord_internal.a
[ 78%] Built target cord_internal
[ 78%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cordz_info.dir/internal/cordz_info.cc.o
[ 78%] Linking CXX static library ../../../../lib/libabsl_flags_internal.a
[ 78%] Built target flags_internal
[ 79%] Linking CXX static library ../../../../lib/libabsl_die_if_null.a
[ 79%] Built target die_if_null
[ 79%] Linking CXX static library ../../../../lib/libabsl_log_internal_check_op.a
[ 79%] Built target log_internal_check_op
[ 79%] Linking CXX static library ../../../../lib/libabsl_cordz_info.a
[ 79%] Built target cordz_info
[ 80%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord.dir/cord_analysis.cc.o
[ 80%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord.dir/cord.cc.o
[ 81%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cordz_sample_token.dir/internal/cordz_sample_token.cc.o
[ 81%] Building CXX object third_party/abseil-cpp/absl/strings/CMakeFiles/cord.dir/cord_buffer.cc.o
[ 81%] Linking CXX static library ../../../../lib/libabsl_cordz_sample_token.a
[ 81%] Built target cordz_sample_token
[ 82%] Linking CXX static library ../../../../lib/libabsl_cord.a
[ 82%] Built target cord
[ 82%] Building CXX object third_party/abseil-cpp/absl/status/CMakeFiles/status.dir/internal/status_internal.cc.o
[ 84%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_reflection.dir/reflection.cc.o
[ 84%] Building CXX object third_party/abseil-cpp/absl/status/CMakeFiles/status.dir/status.cc.o
[ 84%] Building CXX object third_party/abseil-cpp/absl/status/CMakeFiles/status.dir/status_payload_printer.cc.o
[ 85%] Linking CXX static library ../../../../lib/libabsl_status.a
[ 85%] Built target status
[ 85%] Building CXX object third_party/abseil-cpp/absl/status/CMakeFiles/statusor.dir/statusor.cc.o
[ 85%] Linking CXX static library ../../../../lib/libabsl_flags_reflection.a
[ 85%] Built target flags_reflection
[ 85%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags.dir/flag.cc.o
[ 85%] Linking CXX static library ../../../../lib/libabsl_statusor.a
[ 85%] Built target statusor
[ 85%] Linking CXX static library ../../../../lib/libabsl_flags.a
[ 85%] Built target flags
[ 85%] Building CXX object third_party/abseil-cpp/absl/log/CMakeFiles/log_flags.dir/flags.cc.o
[ 85%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_usage_internal.dir/internal/usage.cc.o
[ 86%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/bitstate.cc.o
[ 86%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/bitmap256.cc.o
[ 86%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/compile.cc.o
[ 87%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/dfa.cc.o
[ 87%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/filtered_re2.cc.o
[ 88%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/nfa.cc.o
[ 88%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/mimics_pcre.cc.o
[ 88%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/onepass.cc.o
[ 89%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/perl_groups.cc.o
[ 89%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/parse.cc.o
[ 89%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/prefilter.cc.o
[ 90%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/prog.cc.o
[ 90%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/prefilter_tree.cc.o
[ 91%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/regexp.cc.o
[ 91%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/set.cc.o
[ 91%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/re2.cc.o
[ 92%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/simplify.cc.o
[ 92%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/tostring.cc.o
[ 92%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/unicode_casefold.cc.o
[ 92%] Building CXX object third_party/re2/CMakeFiles/re2.dir/util/strutil.cc.o
[ 93%] Building CXX object third_party/re2/CMakeFiles/re2.dir/re2/unicode_groups.cc.o
[ 93%] Building CXX object third_party/re2/CMakeFiles/re2.dir/util/rune.cc.o
[ 94%] Linking CXX static library ../../../../lib/libabsl_log_flags.a
[ 94%] Built target log_flags
[ 95%] Linking CXX static library ../../../../lib/libabsl_flags_usage_internal.a
[ 95%] Built target flags_usage_internal
[ 95%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_usage.dir/usage.cc.o
[ 96%] Linking CXX static library ../../../../lib/libabsl_flags_usage.a
[ 96%] Built target flags_usage
[ 97%] Building CXX object third_party/abseil-cpp/absl/flags/CMakeFiles/flags_parse.dir/parse.cc.o
[ 98%] Linking CXX static library ../../lib/libre2.a
[ 98%] Built target re2
[ 98%] Linking CXX static library ../../../../lib/libabsl_flags_parse.a
[ 98%] Built target flags_parse
[ 98%] Linking CUDA static library ../../../lib/libggml.a
[ 98%] Built target ggml
[ 99%] Building CXX object CMakeFiles/qwen.dir/qwen.cpp.o
In file included from /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/qwen.h:3,
from /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/qwen.cpp:1:
/tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/tiktoken.h: In lambda function:
/tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/tiktoken.h:33:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
33 | if (start_idx + skip + 2 < parts.size()) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
[ 99%] Linking CXX static library lib/libqwen.a
[ 99%] Built target qwen
[ 99%] Building CXX object CMakeFiles/main.dir/main.cpp.o
[ 99%] Building CXX object CMakeFiles/_C.dir/qwen_pybind.cpp.o
In file included from /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/qwen.h:3,
from /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/main.cpp:1:
/tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/tiktoken.h: In lambda function:
/tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/tiktoken.h:33:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
33 | if (start_idx + skip + 2 < parts.size()) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/qwen_pybind.cpp:1:
/tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/tiktoken.h: In lambda function:
/tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/tiktoken.h:33:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
33 | if (start_idx + skip + 2 < parts.size()) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
[100%] Linking CXX executable bin/main
[100%] Built target main
[100%] Linking CXX shared module /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/build/lib.linux-x86_64-cpython-38/qwen_cpp/_C.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: lib/libre2.a(re2.cc.o): relocation R_X86_64_TPOFF32 against symbol `_ZN3re25hooks7contextE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/_C.dir/build.make:151: /tmp/pip-install-n2646co4/qwen-cpp_a59df2b3f1d1498b81931d8782128509/build/lib.linux-x86_64-cpython-38/qwen_cpp/_C.cpython-38-x86_64-linux-gnu.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:932: CMakeFiles/_C.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Traceback (most recent call last):
File "/data1/yaosijia/miniconda3/envs/llms/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/data1/yaosijia/miniconda3/envs/llms/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/data1/yaosijia/miniconda3/envs/llms/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 434, in build_wheel
return self._build_with_temp_dir(
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 117, in <module>
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-vz65qt6b/normal/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 369, in run
self.run_command("build")
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/tmp/pip-build-env-vz65qt6b/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "<string>", line 112, in build_extension
File "/data1/yaosijia/miniconda3/envs/llms/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '-j']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for qwen-cpp
Failed to build qwen-cpp
ERROR: Could not build wheels for qwen-cpp, which is required to install pyproject.toml-based projects
根据 Copilot的回答:
这个错误是由于在尝试链接一个不是以-fPIC
(Position Independent Code)选项编译的静态库(在这里是libre2.a
)时产生的。在创建共享库或者动态库时,需要所有的对象代码都是位置无关的,也就是说,它们可以在内存中的任何位置执行。
解决这个问题的方法是在编译re2
库时添加-fPIC
选项。你需要找到编译re2
库的CMakeLists.txt
文件,然后在其中添加-fPIC
编译选项。这通常可以通过在add_library
或target_compile_options
命令中添加-fPIC
来实现。
亲测在 setup.py 102行添加
cmake_args += ["-DCMAKE_CXX_FLAGS=-fPIC"]
再执行
pip install -e .
可行
根据 Copilot的回答: 这个错误是由于在尝试链接一个不是以
-fPIC
(Position Independent Code)选项编译的静态库(在这里是libre2.a
)时产生的。在创建共享库或者动态库时,需要所有的对象代码都是位置无关的,也就是说,它们可以在内存中的任何位置执行。解决这个问题的方法是在编译
re2
库时添加-fPIC
选项。你需要找到编译re2
库的CMakeLists.txt
文件,然后在其中添加-fPIC
编译选项。这通常可以通过在add_library
或target_compile_options
命令中添加-fPIC
来实现。亲测在 setup.py 102行添加
cmake_args += ["-DCMAKE_CXX_FLAGS=-fPIC"]
再执行
pip install -e .
可行
感谢大佬