llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Compile bug: charconv: No such file or directory

Open Tiaonmmn opened this issue 2 weeks ago • 0 comments

Git commit

b9ab0a4d0b2ed19effec130921d05fb5c30b68c5

Operating systems

Linux

GGML backends

CUDA

Problem description & steps to reproduce

I'm trying to compile llama.cpp with CUDA 12.1 support on openSUSE 15.6 and get error "fatal error: charconv: No such file or directory". I'm using clang-19 to compile. Here's the nvcc output:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0

First Bad Commit

cae9fb4361138b937464524eed907328731b81f6

Compile command

cmake -B build -D GGML_CUDA=ON
cmake --build build --config Release -v

Relevant log output

Consolidate compiler generated dependencies of target ggml-cuda
gmake[2]: Leaving directory '/home/hello/llama.cpp/build'
/usr/bin/gmake  -f ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/build.make ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/build
gmake[2]: Entering directory '/home/hello/llama.cpp/build'
[  3%] Building CUDA object ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/ggml-cuda.cu.o
cd /home/hello/llama.cpp/build/ggml/src/ggml-cuda && /usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DGGML_BACKEND_BUILD -DGGML_BACKEND_SHARED -DGGML_CUDA_PEER_MAX_BATCH_SIZE=128 -DGGML_CUDA_USE_GRAPHS -DGGML_SCHED_MAX_COPIES=4 -DGGML_SHARED -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -Dggml_cuda_EXPORTS --options-file CMakeFiles/ggml-cuda.dir/includes_CUDA.rsp -O3 -DNDEBUG -std=c++17 -arch=native -Xcompiler=-fPIC -use_fast_math -Xcompiler "-Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-pedantic" -MD -MT ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/ggml-cuda.cu.o -MF CMakeFiles/ggml-cuda.dir/ggml-cuda.cu.o.d -x cu -c /home/hello/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu -o CMakeFiles/ggml-cuda.dir/ggml-cuda.cu.o
/home/hello/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:46:10: fatal error: charconv: No such file or directory
 #include <charconv>
          ^~~~~~~~~~
compilation terminated.
gmake[2]: *** [ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/build.make:347: ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/ggml-cuda.cu.o] Error 1
gmake[2]: Leaving directory '/home/hello/llama.cpp/build'
gmake[1]: *** [CMakeFiles/Makefile2:1788: ggml/src/ggml-cuda/CMakeFiles/ggml-cuda.dir/all] Error 2
gmake[1]: Leaving directory '/home/hello/llama.cpp/build'
gmake: *** [Makefile:146: all] Error 2

Tiaonmmn avatar Feb 11 '25 10:02 Tiaonmmn