abetlen / abetlen/llama-cpp-python

cc: error: unrecognized command-line option ‘-Wunreachable-code-break’; did you mean ‘-Wunreachable-code’?

Ouverte
#1,132 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
10.6k
Forks
1.4k
Métriques de merge des PR
Métriques de PR en attente

Description

Hello!

I am trying to install the server package with hipBLAS / ROCm support.

The install fails with a
`cc: error: unrecognized command-line option ‘-Wunreachable-code-break’; did you mean ‘-Wunreachable-code’?`
(complete output below)

I was able to install llama.cpp with hipBLAS support successfully.

Thank you very much for any help in advance 🙏🏻

Best regards
Stephan

# Expected Behavior

Successful install.

# Current Behavior

Install fails.

# Environment and Context

* Physical (or virtual) hardware you are using, e.g. for Linux:

```
(py3.9env) stephan@myMiniPC:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
CPU family: 25
Model: 116
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
Stepping: 1
CPU max MHz: 6080.0000
CPU min MHz: 400.0000
BogoMIPS: 7585.55
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ss
se3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a mi
salignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_p
state ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx
512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_o
ccup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save
tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi
umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fl
ush_l1d
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 8 MiB (8 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec rstack overflow: Mitigation; safe RET
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Srbds: Not affected
Tsx async abort: Not affected
```

* Operating System, e.g. for Linux:

```
(py3.9env) stephan@myMiniPC:~$ uname -a
Linux myMiniPC 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```

* SDK version, e.g. for Linux:

```
(py3.9env) stephan@myMiniPC:~$ python3 --version
Python 3.9.18
```

```
(py3.9env) stephan@myMiniPC:~$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
```

```
(py3.9env) stephan@myMiniPC:~$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
```

Complete output:

```
(py3.9env) stephan@myMiniPC:~$ export CXX=hipcc
(py3.9env) stephan@myMiniPC:~$ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python[server]
Collecting llama-cpp-python[server]
Using cached llama_cpp_python-0.2.33.tar.gz (9.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=4.5.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from llama-cpp-python[server]) (4.8.0)
Requirement already satisfied: numpy>=1.20.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from llama-cpp-python[server]) (1.24.1)
Collecting diskcache>=5.6.1 (from llama-cpp-python[server])
Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Requirement already satisfied: jinja2>=2.11.3 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from llama-cpp-python[server]) (3.1.2)
Requirement already satisfied: uvicorn>=0.22.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from llama-cpp-python[server]) (0.22.0)
Requirement already satisfied: fastapi>=0.100.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from llama-cpp-python[server]) (0.104.1)
Collecting pydantic-settings>=2.0.1 (from llama-cpp-python[server])
Using cached pydantic_settings-2.1.0-py3-none-any.whl.metadata (2.9 kB)
Collecting sse-starlette>=1.6.1 (from llama-cpp-python[server])
Using cached sse_starlette-2.0.0-py3-none-any.whl.metadata (5.4 kB)
Collecting starlette-context<0.4,>=0.3.6 (from llama-cpp-python[server])
Using cached starlette_context-0.3.6-py3-none-any.whl (12 kB)
Requirement already satisfied: anyio<4.0.0,>=3.7.1 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from fastapi>=0.100.0->llama-cpp-python[server]) (3.7.1)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from fastapi>=0.100.0->llama-cpp-python[server]) (1.10.13)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from fastapi>=0.100.0->llama-cpp-python[server]) (0.27.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from jinja2>=2.11.3->llama-cpp-python[server]) (2.1.3)
Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 (from fastapi>=0.100.0->llama-cpp-python[server])
Using cached pydantic-2.5.3-py3-none-any.whl.metadata (65 kB)
Requirement already satisfied: python-dotenv>=0.21.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from pydantic-settings>=2.0.1->llama-cpp-python[server]) (1.0.0)
Requirement already satisfied: click>=7.0 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from uvicorn>=0.22.0->llama-cpp-python[server]) (8.1.7)
Requirement already satisfied: h11>=0.8 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from uvicorn>=0.22.0->llama-cpp-python[server]) (0.14.0)
Requirement already satisfied: idna>=2.8 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.100.0->llama-cpp-python[server]) (3.4)
Requirement already satisfied: sniffio>=1.1 in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.100.0->llama-cpp-python[server]) (1.3.0)
Requirement already satisfied: exceptiongroup in ./miniconda3/envs/py3.9env/lib/python3.9/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.100.0->llama-cpp-python[server]) (1.2.0)
Collecting annotated-types>=0.4.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.100.0->llama-cpp-python[server])
Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.14.6 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.100.0->llama-cpp-python[server])
Using cached pydantic_core-2.14.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.5 kB)
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Using cached pydantic_settings-2.1.0-py3-none-any.whl (11 kB)
Using cached sse_starlette-2.0.0-py3-none-any.whl (9.0 kB)
Using cached pydantic-2.5.3-py3-none-any.whl (381 kB)
Using cached pydantic_core-2.14.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Building wheels for collected packages: llama-cpp-python
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [84 lines of output]
*** scikit-build-core 0.8.0 using CMake 3.22.1 (wheel)
*** Configuring CMake...
2024-01-26 06:46:33,859 - scikit_build_core - WARNING - libdir/ldlibrary: /home/stephan/miniconda3/envs/py3.9env/lib/libpython3.9.a is not a real file!
2024-01-26 06:46:33,859 - scikit_build_core - WARNING - Can't find a Python library, got libdir=/home/stephan/miniconda3/envs/py3.9env/lib, ldlibrary=libpython3.9.a, multiarch=x86_64-linux-gnu, masd=None
loading initial cache file /tmp/tmpeiyqjeee/build/CMakeInit.txt
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is Clang 17.0.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
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/hipcc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.34.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Warning at vendor/llama.cpp/CMakeLists.txt:416 (message):
Only LLVM is supported for HIP, hint: CC=/opt/rocm/llvm/bin/clang

-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Success
-- HIP and hipBLAS found
-- Warning: ccache not found - consider installing it or use LLAMA_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- x86 detected
INSTALL TARGETS - target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
INSTALL TARGETS - target llama has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmpeiyqjeee/build
*** Building project with Ninja...
[1/23] /usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-alloc.c
FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o
/usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-alloc.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-alloc.c
cc: error: unrecognized command-line option ‘-Wunreachable-code-break’; did you mean ‘-Wunreachable-code’?
cc: error: unrecognized command-line option ‘-Wunreachable-code-return’; did you mean ‘-Wunreachable-code’?
[2/23] /usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml.c
FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o
/usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml.c
cc: error: unrecognized command-line option ‘-Wunreachable-code-break’; did you mean ‘-Wunreachable-code’?
cc: error: unrecognized command-line option ‘-Wunreachable-code-return’; did you mean ‘-Wunreachable-code’?
[3/23] /usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-backend.c
FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o
/usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-backend.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-backend.c
cc: error: unrecognized command-line option ‘-Wunreachable-code-break’; did you mean ‘-Wunreachable-code’?
cc: error: unrecognized command-line option ‘-Wunreachable-code-return’; did you mean ‘-Wunreachable-code’?
[4/23] /usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-quants.c
FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o
/usr/bin/cc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -isystem /opt/rocm/include -isystem /opt/rocm-6.0.0/include -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -march=native -std=gnu11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -MF vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o.d -o vendor/llama.cpp/CMakeFiles/ggml.dir/ggml-quants.c.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-quants.c
cc: error: unrecognized command-line option ‘-Wunreachable-code-break’; did you mean ‘-Wunreachable-code’?
cc: error: unrecognized command-line option ‘-Wunreachable-code-return’; did you mean ‘-Wunreachable-code’?
[5/23] cd /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp && /usr/bin/cmake -DMSVC= -DCMAKE_C_COMPILER_VERSION=11.4.0 -DCMAKE_C_COMPILER_ID=GNU -DCMAKE_VS_PLATFORM_NAME= -DCMAKE_C_COMPILER=/usr/bin/cc -P /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/common/../scripts/gen-build-info-cpp.cmake
-- Found Git: /usr/bin/git (found version "2.34.1")
[6/23] /usr/bin/hipcc -DLLAMA_BUILD -DLLAMA_SHARED -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/. -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/../.. -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/../../common -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -O3 -DNDEBUG -fPIC -Wno-cast-qual -MD -MT vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o -MF vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o.d -o vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/llava.cpp
[7/23] /usr/bin/hipcc -DLLAMA_BUILD -DLLAMA_SHARED -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/. -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/../.. -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/../../common -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -O3 -DNDEBUG -fPIC -Wno-cast-qual -MD -MT vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o -MF vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o.d -o vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/examples/llava/clip.cpp
[8/23] /usr/bin/hipcc -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DLLAMA_BUILD -DLLAMA_SHARED -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -Dllama_EXPORTS -I/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/. -O3 -DNDEBUG -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wmissing-declarations -Wmissing-noreturn -Wunreachable-code-break -Wunreachable-code-return -Wmissing-prototypes -Wextra-semi -march=native -std=gnu++11 -MD -MT vendor/llama.cpp/CMakeFiles/llama.dir/llama.cpp.o -MF vendor/llama.cpp/CMakeFiles/llama.dir/llama.cpp.o.d -o vendor/llama.cpp/CMakeFiles/llama.dir/llama.cpp.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/llama.cpp
[9/23] /usr/bin/hipcc -DGGML_CUDA_DMMV_X=32 -DGGML_CUDA_MMV_Y=1 -DGGML_USE_CUBLAS -DGGML_USE_HIPBLAS -DK_QUANTS_PER_ITERATION=2 -DUSE_PROF_API=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -D__HIP_PLATFORM_AMD__=1 -O3 -DNDEBUG -fPIC -x hip -std=gnu++11 -MD -MT vendor/llama.cpp/CMakeFiles/ggml-rocm.dir/ggml-cuda.cu.o -MF vendor/llama.cpp/CMakeFiles/ggml-rocm.dir/ggml-cuda.cu.o.d -o vendor/llama.cpp/CMakeFiles/ggml-rocm.dir/ggml-cuda.cu.o -c /tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:605:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn]
}
^
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:5862:24: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
static __global__ void soft_max_f32(const float * x, const float * y, float * dst, const int ncols_par, const int nrows_y, const float scale) {
^
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:5862:24: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:5862:24: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:5862:24: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:5862:24: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:5862:24: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
7 warnings generated when compiling for gfx1103.
/tmp/pip-install-t7ru5meo/llama-cpp-python_65c2a8de38ba45a08fd6ed97f28c040b/vendor/llama.cpp/ggml-cuda.cu:605:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn]
}
^
1 warning generated when compiling for host.
ninja: build stopped: subcommand failed.

*** CMake build failed
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.