[GH-ISSUE #3979] Debian RISCV Build Failed #2463

Closed
opened 2026-04-12 12:47:45 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @HougeLangley on GitHub (Apr 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3979

What is the issue?

# sipeed @ lpi4a in ~/ollama on git:main o [0:57:45] 
$ go build .
# github.com/chewxy/math32
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:3:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:57:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/sqrt.go:3:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/log.go:76:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/remainder.go:33:6: missing function body

Full Log

# sipeed @ lpi4a in ~ [0:40:28] 
$ gcc -v   
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/riscv64-linux-gnu/13/lto-wrapper
目标:riscv64-linux-gnu
配置为:../src/configure -v --with-pkgversion='Debian 13.2.0-4revyos3' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=riscv64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --disable-multilib --with-arch=rv64gc_zfh_xtheadba_xtheadbb_xtheadbs_xtheadcmo_xtheadcondmov_xtheadfmemidx_xtheadfmv_xtheadint_xtheadmac_xtheadmemidx_xtheadmempair_xtheadsync --with-abi=lp64d --enable-checking=release --build=riscv64-linux-gnu --host=riscv64-linux-gnu --target=riscv64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=32
线程模型:posix
支持的 LTO 压缩算法:zlib zstd
gcc 版本 13.2.0 (Debian 13.2.0-4revyos3) 

# sipeed @ lpi4a in ~ [0:40:31] 
$ cd ollama      

# sipeed @ lpi4a in ~/ollama on git:main o [0:40:36] 
$ go generate ./...
go: downloading go1.22.0 (linux/riscv64)
go: downloading github.com/spf13/cobra v1.7.0
go: downloading github.com/google/uuid v1.0.0
go: downloading golang.org/x/crypto v0.14.0
go: downloading github.com/containerd/console v1.0.3
go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading golang.org/x/term v0.13.0
go: downloading github.com/d4l3k/go-bfloat16 v0.0.0-20211005043715-690c3bdd05f1
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/nlpodyssey/gopickle v0.3.0
go: downloading github.com/pdevine/tensor v0.0.0-20240228013915-64ccaa8d9ca9
go: downloading github.com/x448/float16 v0.8.4
go: downloading google.golang.org/protobuf v1.30.0
go: downloading golang.org/x/sys v0.13.0
go: downloading golang.org/x/sync v0.3.0
go: downloading github.com/gin-gonic/gin v1.9.1
go: downloading github.com/emirpasic/gods v1.18.1
go: downloading github.com/gin-contrib/cors v1.4.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/apache/arrow/go/arrow v0.0.0-20201229220542-30ce2eb5d4dc
go: downloading github.com/chewxy/hm v1.0.0
go: downloading github.com/chewxy/math32 v1.0.8
go: downloading github.com/google/flatbuffers v1.12.0
go: downloading go4.org/unsafe/assume-no-moving-gc v0.0.0-20231121144256-b99613f794b6
go: downloading gonum.org/v1/gonum v0.8.2
go: downloading gorgonia.org/vecf32 v0.9.0
go: downloading gorgonia.org/vecf64 v0.9.0
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading golang.org/x/net v0.17.0
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading github.com/xtgo/set v1.0.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/golang/protobuf v1.5.0
go: downloading github.com/go-playground/validator/v10 v10.14.0
go: downloading github.com/pelletier/go-toml/v2 v2.0.8
go: downloading github.com/ugorji/go/codec v1.2.11
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/gabriel-vasile/mimetype v1.4.2
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.2.4
go: downloading github.com/go-playground/locales v0.14.1
+ set -o pipefail
+ echo 'Starting linux generate script'
Starting linux generate script
+ '[' -z '' ']'
+ '[' -x /usr/local/cuda/bin/nvcc ']'
++ command -v nvcc
+ export CUDACXX=
+ CUDACXX=
+ COMMON_CMAKE_DEFS='-DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off -DLLAMA_AVX=on -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off'
++ dirname ./gen_linux.sh
+ source ./gen_common.sh
+ init_vars
+ case "${GOARCH}" in
++ uname -m
++ sed -e s/aarch64/arm64/g
+ ARCH=riscv64
+ LLAMACPP_DIR=../llama.cpp
+ CMAKE_DEFS=
+ CMAKE_TARGETS='--target ollama_llama_server'
+ echo ''
+ grep -- -g
+ CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ case $(uname -s) in
++ uname -s
+ LIB_EXT=so
+ WHOLE_ARCHIVE=-Wl,--whole-archive
+ NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive
+ GCC_ARCH=
+ '[' -z '' ']'
+ CMAKE_CUDA_ARCHITECTURES='50;52;61;70;75;80'
+ git_module_setup
+ '[' -n '' ']'
+ '[' -d ../llama.cpp/gguf ']'
+ git submodule init
+ git submodule update --force ../llama.cpp
子模组路径 '../llama.cpp':检出 '46e12c4692a37bdd31a0432fc5153d7d22bc7f72'
+ apply_patches
+ grep ollama ../llama.cpp/CMakeLists.txt
+ echo 'add_subdirectory(../ext_server ext_server) # ollama'
++ ls -A ../patches/02-clip-log.diff ../patches/03-load_exception.diff ../patches/04-metal.diff
+ '[' -n '../patches/02-clip-log.diff
../patches/03-load_exception.diff
../patches/04-metal.diff' ']'
+ for patch in ../patches/*.diff
++ grep '^+++ ' ../patches/02-clip-log.diff
++ cut -f2 '-d '
++ cut -f2- -d/
+ for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/)
+ cd ../llama.cpp
+ git checkout examples/llava/clip.cpp
从索引区更新了 0 个路径
+ for patch in ../patches/*.diff
++ grep '^+++ ' ../patches/03-load_exception.diff
++ cut -f2 '-d '
++ cut -f2- -d/
+ for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/)
+ cd ../llama.cpp
+ git checkout llama.cpp
从索引区更新了 0 个路径
+ for patch in ../patches/*.diff
++ grep '^+++ ' ../patches/04-metal.diff
++ cut -f2 '-d '
++ cut -f2- -d/
+ for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/)
+ cd ../llama.cpp
+ git checkout ggml-metal.m
从索引区更新了 0 个路径
+ for patch in ../patches/*.diff
+ cd ../llama.cpp
+ git apply ../patches/02-clip-log.diff
+ for patch in ../patches/*.diff
+ cd ../llama.cpp
+ git apply ../patches/03-load_exception.diff
+ for patch in ../patches/*.diff
+ cd ../llama.cpp
+ git apply ../patches/04-metal.diff
+ init_vars
+ case "${GOARCH}" in
++ uname -m
++ sed -e s/aarch64/arm64/g
+ ARCH=riscv64
+ LLAMACPP_DIR=../llama.cpp
+ CMAKE_DEFS=
+ CMAKE_TARGETS='--target ollama_llama_server'
+ echo ''
+ grep -- -g
+ CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ case $(uname -s) in
++ uname -s
+ LIB_EXT=so
+ WHOLE_ARCHIVE=-Wl,--whole-archive
+ NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive
+ GCC_ARCH=
+ '[' -z '50;52;61;70;75;80' ']'
+ '[' -z '' -o '' = static ']'
+ init_vars
+ case "${GOARCH}" in
++ uname -m
++ sed -e s/aarch64/arm64/g
+ ARCH=riscv64
+ LLAMACPP_DIR=../llama.cpp
+ CMAKE_DEFS=
+ CMAKE_TARGETS='--target ollama_llama_server'
+ echo ''
+ grep -- -g
+ CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ case $(uname -s) in
++ uname -s
+ LIB_EXT=so
+ WHOLE_ARCHIVE=-Wl,--whole-archive
+ NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive
+ GCC_ARCH=
+ '[' -z '50;52;61;70;75;80' ']'
+ CMAKE_TARGETS='--target llama --target ggml'
+ CMAKE_DEFS='-DBUILD_SHARED_LIBS=off -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ BUILD_DIR=../build/linux/riscv64_static
+ echo 'Building static library'
Building static library
+ build
+ cmake -S ../llama.cpp -B ../build/linux/riscv64_static -DBUILD_SHARED_LIBS=off -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.40.1") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: riscv64
-- Unknown architecture
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sipeed/ollama/llm/build/linux/riscv64_static
+ cmake --build ../build/linux/riscv64_static --target llama --target ggml -j8
[  0%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o
[  0%] Building C object CMakeFiles/ggml.dir/ggml-quants.c.o
[ 20%] Building C object CMakeFiles/ggml.dir/ggml-backend.c.o
[ 40%] Building C object CMakeFiles/ggml.dir/ggml.c.o
[ 60%] Building CXX object CMakeFiles/ggml.dir/sgemm.cpp.o
[ 60%] Built target ggml
[100%] Building CXX object CMakeFiles/llama.dir/unicode.cpp.o
[100%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o
[100%] Building CXX object CMakeFiles/llama.dir/unicode-data.cpp.o
[100%] Linking CXX static library libllama.a
[100%] Built target llama
[100%] Built target ggml
+ init_vars
+ case "${GOARCH}" in
++ uname -m
++ sed -e s/aarch64/arm64/g
+ ARCH=riscv64
+ LLAMACPP_DIR=../llama.cpp
+ CMAKE_DEFS=
+ CMAKE_TARGETS='--target ollama_llama_server'
+ echo ''
+ grep -- -g
+ CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ case $(uname -s) in
++ uname -s
+ LIB_EXT=so
+ WHOLE_ARCHIVE=-Wl,--whole-archive
+ NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive
+ GCC_ARCH=
+ '[' -z '50;52;61;70;75;80' ']'
+ '[' -z '' ']'
+ '[' -n '' ']'
+ COMMON_CPU_DEFS='-DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off'
+ '[' -z '' -o '' = cpu ']'
+ init_vars
+ case "${GOARCH}" in
++ uname -m
++ sed -e s/aarch64/arm64/g
+ ARCH=riscv64
+ LLAMACPP_DIR=../llama.cpp
+ CMAKE_DEFS=
+ CMAKE_TARGETS='--target ollama_llama_server'
+ echo ''
+ grep -- -g
+ CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ case $(uname -s) in
++ uname -s
+ LIB_EXT=so
+ WHOLE_ARCHIVE=-Wl,--whole-archive
+ NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive
+ GCC_ARCH=
+ '[' -z '50;52;61;70;75;80' ']'
+ CMAKE_DEFS='-DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off '
+ BUILD_DIR=../build/linux/riscv64/cpu
+ echo 'Building LCD CPU'
Building LCD CPU
+ build
+ cmake -S ../llama.cpp -B ../build/linux/riscv64/cpu -DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.40.1") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: riscv64
-- Unknown architecture
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sipeed/ollama/llm/build/linux/riscv64/cpu
+ cmake --build ../build/linux/riscv64/cpu --target ollama_llama_server -j8
[  7%] Generating build details from Git
[ 14%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o
[ 14%] Building C object CMakeFiles/ggml.dir/ggml.c.o
[ 21%] Building C object CMakeFiles/ggml.dir/ggml-backend.c.o
-- Found Git: /usr/bin/git (found version "2.40.1") 
[ 28%] Building CXX object CMakeFiles/ggml.dir/sgemm.cpp.o
[ 28%] Building C object CMakeFiles/ggml.dir/ggml-quants.c.o
[ 28%] Building CXX object common/CMakeFiles/build_info.dir/build-info.cpp.o
[ 28%] Built target build_info
[ 28%] Built target ggml
[ 42%] Building CXX object CMakeFiles/llama.dir/unicode.cpp.o
[ 42%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o
[ 42%] Building CXX object CMakeFiles/llama.dir/unicode-data.cpp.o
[ 42%] Linking CXX static library libllama.a
[ 42%] Built target llama
[ 50%] Building CXX object examples/llava/CMakeFiles/llava.dir/llava.cpp.o
[ 57%] Building CXX object common/CMakeFiles/common.dir/common.cpp.o
[ 64%] Building CXX object examples/llava/CMakeFiles/llava.dir/clip.cpp.o
[ 64%] Building CXX object common/CMakeFiles/common.dir/sampling.cpp.o
[ 71%] Building CXX object common/CMakeFiles/common.dir/console.cpp.o
[ 78%] Building CXX object common/CMakeFiles/common.dir/json-schema-to-grammar.cpp.o
[ 78%] Building CXX object common/CMakeFiles/common.dir/grammar-parser.cpp.o
[ 85%] Building CXX object common/CMakeFiles/common.dir/train.cpp.o
[ 85%] Building CXX object common/CMakeFiles/common.dir/ngram-cache.cpp.o
[ 85%] Built target llava
[ 92%] Linking CXX static library libcommon.a
[ 92%] Built target common
[ 92%] Building CXX object ext_server/CMakeFiles/ollama_llama_server.dir/server.cpp.o
[100%] Linking CXX executable ../bin/ollama_llama_server
[100%] Built target ollama_llama_server
+ compress
+ echo 'Compressing payloads to reduce overall binary size...'
Compressing payloads to reduce overall binary size...
+ pids=
+ rm -rf '../build/linux/riscv64/cpu/bin/*.gz'
+ for f in ${BUILD_DIR}/bin/*
+ pids+=' 101756'
+ gzip -n --best -f ../build/linux/riscv64/cpu/bin/ollama_llama_server
+ '[' -d ../build/linux/riscv64/cpu/lib ']'
+ echo

+ for pid in ${pids}
+ wait 101756
+ echo 'Finished compression'
Finished compression
+ '[' riscv64 == x86_64 ']'
+ '[' -z '' ']'
+ '[' -d /usr/local/cuda/lib64 ']'
+ '[' -z '' ']'
+ '[' -d /opt/cuda/targets/x86_64-linux/lib ']'
+ '[' -z '' ']'
+ CUDART_LIB_DIR=
+ '[' -d '' ']'
+ '[' -z '' ']'
+ ROCM_PATH=/opt/rocm
+ '[' -z '' ']'
+ '[' -d /usr/lib/cmake/CLBlast ']'
+ '[' -d /opt/rocm ']'
+ cleanup
+ cd ../llama.cpp/
+ git checkout CMakeLists.txt
从索引区更新了 1 个路径
++ ls -A ../patches/02-clip-log.diff ../patches/03-load_exception.diff ../patches/04-metal.diff
+ '[' -n '../patches/02-clip-log.diff
../patches/03-load_exception.diff
../patches/04-metal.diff' ']'
+ for patch in ../patches/*.diff
++ grep '^+++ ' ../patches/02-clip-log.diff
++ cut -f2 '-d '
++ cut -f2- -d/
+ for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/)
+ cd ../llama.cpp
+ git checkout examples/llava/clip.cpp
从索引区更新了 1 个路径
+ for patch in ../patches/*.diff
++ grep '^+++ ' ../patches/03-load_exception.diff
++ cut -f2 '-d '
++ cut -f2- -d/
+ for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/)
+ cd ../llama.cpp
+ git checkout llama.cpp
从索引区更新了 1 个路径
+ for patch in ../patches/*.diff
++ grep '^+++ ' ../patches/04-metal.diff
++ cut -f2 '-d '
++ cut -f2- -d/
+ for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/)
+ cd ../llama.cpp
+ git checkout ggml-metal.m
从索引区更新了 1 个路径
++ cd ../build/linux/riscv64/cpu/..
++ echo cpu
+ echo 'go generate completed.  LLM runners: cpu'
go generate completed.  LLM runners: cpu

# sipeed @ lpi4a in ~/ollama on git:main o [0:57:45] 
$ go build .
# github.com/chewxy/math32
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:3:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:57:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/sqrt.go:3:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/log.go:76:6: missing function body
../go/pkg/mod/github.com/chewxy/math32@v1.0.8/remainder.go:33:6: missing function body

# sipeed @ lpi4a in ~/ollama on git:main o [0:58:52] C:1
$ ll
总计 148K
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 api
drwxr-xr-x  6 sipeed sipeed 4.0K  4月28日 00:10 app
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 auth
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 cmd
drwxr-xr-x  3 sipeed sipeed 4.0K  4月28日 00:10 convert
-rw-r--r--  1 sipeed sipeed 6.1K  4月28日 00:10 Dockerfile
drwxr-xr-x  3 sipeed sipeed 4.0K  4月28日 00:10 docs
drwxr-xr-x 26 sipeed sipeed 4.0K  4月28日 00:10 examples
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 format
-rw-r--r--  1 sipeed sipeed 2.9K  4月28日 00:10 go.mod
-rw-r--r--  1 sipeed sipeed  29K  4月28日 00:10 go.sum
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 gpu
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 integration
-rw-r--r--  1 sipeed sipeed 1.1K  4月28日 00:10 LICENSE
drwxr-xr-x  7 sipeed sipeed 4.0K  4月28日 00:42 llm
drwxr-xr-x  4 sipeed sipeed 4.0K  4月28日 00:10 macapp
-rw-r--r--  1 sipeed sipeed  179  4月28日 00:10 main.go
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 openai
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 parser
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 progress
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 readline
-rw-r--r--  1 sipeed sipeed  15K  4月28日 00:10 README.md
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 scripts
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 server
drwxr-xr-x  4 sipeed sipeed 4.0K  4月28日 00:10 types
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 00:10 version

OS

Linux

GPU

Other

CPU

Other

Ollama version

git version

Originally created by @HougeLangley on GitHub (Apr 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3979 ### What is the issue? ``` # sipeed @ lpi4a in ~/ollama on git:main o [0:57:45] $ go build . # github.com/chewxy/math32 ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:3:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:57:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/sqrt.go:3:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/log.go:76:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/remainder.go:33:6: missing function body ``` Full Log ``` # sipeed @ lpi4a in ~ [0:40:28] $ gcc -v 使用内建 specs。 COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/riscv64-linux-gnu/13/lto-wrapper 目标:riscv64-linux-gnu 配置为:../src/configure -v --with-pkgversion='Debian 13.2.0-4revyos3' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=riscv64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --disable-multilib --with-arch=rv64gc_zfh_xtheadba_xtheadbb_xtheadbs_xtheadcmo_xtheadcondmov_xtheadfmemidx_xtheadfmv_xtheadint_xtheadmac_xtheadmemidx_xtheadmempair_xtheadsync --with-abi=lp64d --enable-checking=release --build=riscv64-linux-gnu --host=riscv64-linux-gnu --target=riscv64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=32 线程模型:posix 支持的 LTO 压缩算法:zlib zstd gcc 版本 13.2.0 (Debian 13.2.0-4revyos3) # sipeed @ lpi4a in ~ [0:40:31] $ cd ollama # sipeed @ lpi4a in ~/ollama on git:main o [0:40:36] $ go generate ./... go: downloading go1.22.0 (linux/riscv64) go: downloading github.com/spf13/cobra v1.7.0 go: downloading github.com/google/uuid v1.0.0 go: downloading golang.org/x/crypto v0.14.0 go: downloading github.com/containerd/console v1.0.3 go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 go: downloading github.com/olekukonko/tablewriter v0.0.5 go: downloading golang.org/x/term v0.13.0 go: downloading github.com/d4l3k/go-bfloat16 v0.0.0-20211005043715-690c3bdd05f1 go: downloading github.com/mitchellh/mapstructure v1.5.0 go: downloading github.com/nlpodyssey/gopickle v0.3.0 go: downloading github.com/pdevine/tensor v0.0.0-20240228013915-64ccaa8d9ca9 go: downloading github.com/x448/float16 v0.8.4 go: downloading google.golang.org/protobuf v1.30.0 go: downloading golang.org/x/sys v0.13.0 go: downloading golang.org/x/sync v0.3.0 go: downloading github.com/gin-gonic/gin v1.9.1 go: downloading github.com/emirpasic/gods v1.18.1 go: downloading github.com/gin-contrib/cors v1.4.0 go: downloading github.com/spf13/pflag v1.0.5 go: downloading github.com/mattn/go-runewidth v0.0.14 go: downloading golang.org/x/text v0.14.0 go: downloading github.com/pkg/errors v0.9.1 go: downloading github.com/apache/arrow/go/arrow v0.0.0-20201229220542-30ce2eb5d4dc go: downloading github.com/chewxy/hm v1.0.0 go: downloading github.com/chewxy/math32 v1.0.8 go: downloading github.com/google/flatbuffers v1.12.0 go: downloading go4.org/unsafe/assume-no-moving-gc v0.0.0-20231121144256-b99613f794b6 go: downloading gonum.org/v1/gonum v0.8.2 go: downloading gorgonia.org/vecf32 v0.9.0 go: downloading gorgonia.org/vecf64 v0.9.0 go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading github.com/mattn/go-isatty v0.0.19 go: downloading golang.org/x/net v0.17.0 go: downloading github.com/rivo/uniseg v0.2.0 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 go: downloading github.com/xtgo/set v1.0.0 go: downloading github.com/gogo/protobuf v1.3.2 go: downloading github.com/golang/protobuf v1.5.0 go: downloading github.com/go-playground/validator/v10 v10.14.0 go: downloading github.com/pelletier/go-toml/v2 v2.0.8 go: downloading github.com/ugorji/go/codec v1.2.11 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/gabriel-vasile/mimetype v1.4.2 go: downloading github.com/go-playground/universal-translator v0.18.1 go: downloading github.com/leodido/go-urn v1.2.4 go: downloading github.com/go-playground/locales v0.14.1 + set -o pipefail + echo 'Starting linux generate script' Starting linux generate script + '[' -z '' ']' + '[' -x /usr/local/cuda/bin/nvcc ']' ++ command -v nvcc + export CUDACXX= + CUDACXX= + COMMON_CMAKE_DEFS='-DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off -DLLAMA_AVX=on -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off' ++ dirname ./gen_linux.sh + source ./gen_common.sh + init_vars + case "${GOARCH}" in ++ uname -m ++ sed -e s/aarch64/arm64/g + ARCH=riscv64 + LLAMACPP_DIR=../llama.cpp + CMAKE_DEFS= + CMAKE_TARGETS='--target ollama_llama_server' + echo '' + grep -- -g + CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + case $(uname -s) in ++ uname -s + LIB_EXT=so + WHOLE_ARCHIVE=-Wl,--whole-archive + NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive + GCC_ARCH= + '[' -z '' ']' + CMAKE_CUDA_ARCHITECTURES='50;52;61;70;75;80' + git_module_setup + '[' -n '' ']' + '[' -d ../llama.cpp/gguf ']' + git submodule init + git submodule update --force ../llama.cpp 子模组路径 '../llama.cpp':检出 '46e12c4692a37bdd31a0432fc5153d7d22bc7f72' + apply_patches + grep ollama ../llama.cpp/CMakeLists.txt + echo 'add_subdirectory(../ext_server ext_server) # ollama' ++ ls -A ../patches/02-clip-log.diff ../patches/03-load_exception.diff ../patches/04-metal.diff + '[' -n '../patches/02-clip-log.diff ../patches/03-load_exception.diff ../patches/04-metal.diff' ']' + for patch in ../patches/*.diff ++ grep '^+++ ' ../patches/02-clip-log.diff ++ cut -f2 '-d ' ++ cut -f2- -d/ + for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/) + cd ../llama.cpp + git checkout examples/llava/clip.cpp 从索引区更新了 0 个路径 + for patch in ../patches/*.diff ++ grep '^+++ ' ../patches/03-load_exception.diff ++ cut -f2 '-d ' ++ cut -f2- -d/ + for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/) + cd ../llama.cpp + git checkout llama.cpp 从索引区更新了 0 个路径 + for patch in ../patches/*.diff ++ grep '^+++ ' ../patches/04-metal.diff ++ cut -f2 '-d ' ++ cut -f2- -d/ + for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/) + cd ../llama.cpp + git checkout ggml-metal.m 从索引区更新了 0 个路径 + for patch in ../patches/*.diff + cd ../llama.cpp + git apply ../patches/02-clip-log.diff + for patch in ../patches/*.diff + cd ../llama.cpp + git apply ../patches/03-load_exception.diff + for patch in ../patches/*.diff + cd ../llama.cpp + git apply ../patches/04-metal.diff + init_vars + case "${GOARCH}" in ++ uname -m ++ sed -e s/aarch64/arm64/g + ARCH=riscv64 + LLAMACPP_DIR=../llama.cpp + CMAKE_DEFS= + CMAKE_TARGETS='--target ollama_llama_server' + echo '' + grep -- -g + CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + case $(uname -s) in ++ uname -s + LIB_EXT=so + WHOLE_ARCHIVE=-Wl,--whole-archive + NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive + GCC_ARCH= + '[' -z '50;52;61;70;75;80' ']' + '[' -z '' -o '' = static ']' + init_vars + case "${GOARCH}" in ++ uname -m ++ sed -e s/aarch64/arm64/g + ARCH=riscv64 + LLAMACPP_DIR=../llama.cpp + CMAKE_DEFS= + CMAKE_TARGETS='--target ollama_llama_server' + echo '' + grep -- -g + CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + case $(uname -s) in ++ uname -s + LIB_EXT=so + WHOLE_ARCHIVE=-Wl,--whole-archive + NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive + GCC_ARCH= + '[' -z '50;52;61;70;75;80' ']' + CMAKE_TARGETS='--target llama --target ggml' + CMAKE_DEFS='-DBUILD_SHARED_LIBS=off -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + BUILD_DIR=../build/linux/riscv64_static + echo 'Building static library' Building static library + build + cmake -S ../llama.cpp -B ../build/linux/riscv64_static -DBUILD_SHARED_LIBS=off -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.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/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.40.1") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF -- CMAKE_SYSTEM_PROCESSOR: riscv64 -- Unknown architecture -- Configuring done -- Generating done -- Build files have been written to: /home/sipeed/ollama/llm/build/linux/riscv64_static + cmake --build ../build/linux/riscv64_static --target llama --target ggml -j8 [ 0%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o [ 0%] Building C object CMakeFiles/ggml.dir/ggml-quants.c.o [ 20%] Building C object CMakeFiles/ggml.dir/ggml-backend.c.o [ 40%] Building C object CMakeFiles/ggml.dir/ggml.c.o [ 60%] Building CXX object CMakeFiles/ggml.dir/sgemm.cpp.o [ 60%] Built target ggml [100%] Building CXX object CMakeFiles/llama.dir/unicode.cpp.o [100%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o [100%] Building CXX object CMakeFiles/llama.dir/unicode-data.cpp.o [100%] Linking CXX static library libllama.a [100%] Built target llama [100%] Built target ggml + init_vars + case "${GOARCH}" in ++ uname -m ++ sed -e s/aarch64/arm64/g + ARCH=riscv64 + LLAMACPP_DIR=../llama.cpp + CMAKE_DEFS= + CMAKE_TARGETS='--target ollama_llama_server' + echo '' + grep -- -g + CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + case $(uname -s) in ++ uname -s + LIB_EXT=so + WHOLE_ARCHIVE=-Wl,--whole-archive + NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive + GCC_ARCH= + '[' -z '50;52;61;70;75;80' ']' + '[' -z '' ']' + '[' -n '' ']' + COMMON_CPU_DEFS='-DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off' + '[' -z '' -o '' = cpu ']' + init_vars + case "${GOARCH}" in ++ uname -m ++ sed -e s/aarch64/arm64/g + ARCH=riscv64 + LLAMACPP_DIR=../llama.cpp + CMAKE_DEFS= + CMAKE_TARGETS='--target ollama_llama_server' + echo '' + grep -- -g + CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + case $(uname -s) in ++ uname -s + LIB_EXT=so + WHOLE_ARCHIVE=-Wl,--whole-archive + NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive + GCC_ARCH= + '[' -z '50;52;61;70;75;80' ']' + CMAKE_DEFS='-DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off ' + BUILD_DIR=../build/linux/riscv64/cpu + echo 'Building LCD CPU' Building LCD CPU + build + cmake -S ../llama.cpp -B ../build/linux/riscv64/cpu -DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_NATIVE=off -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.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/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.40.1") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF -- CMAKE_SYSTEM_PROCESSOR: riscv64 -- Unknown architecture -- Configuring done -- Generating done -- Build files have been written to: /home/sipeed/ollama/llm/build/linux/riscv64/cpu + cmake --build ../build/linux/riscv64/cpu --target ollama_llama_server -j8 [ 7%] Generating build details from Git [ 14%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o [ 14%] Building C object CMakeFiles/ggml.dir/ggml.c.o [ 21%] Building C object CMakeFiles/ggml.dir/ggml-backend.c.o -- Found Git: /usr/bin/git (found version "2.40.1") [ 28%] Building CXX object CMakeFiles/ggml.dir/sgemm.cpp.o [ 28%] Building C object CMakeFiles/ggml.dir/ggml-quants.c.o [ 28%] Building CXX object common/CMakeFiles/build_info.dir/build-info.cpp.o [ 28%] Built target build_info [ 28%] Built target ggml [ 42%] Building CXX object CMakeFiles/llama.dir/unicode.cpp.o [ 42%] Building CXX object CMakeFiles/llama.dir/llama.cpp.o [ 42%] Building CXX object CMakeFiles/llama.dir/unicode-data.cpp.o [ 42%] Linking CXX static library libllama.a [ 42%] Built target llama [ 50%] Building CXX object examples/llava/CMakeFiles/llava.dir/llava.cpp.o [ 57%] Building CXX object common/CMakeFiles/common.dir/common.cpp.o [ 64%] Building CXX object examples/llava/CMakeFiles/llava.dir/clip.cpp.o [ 64%] Building CXX object common/CMakeFiles/common.dir/sampling.cpp.o [ 71%] Building CXX object common/CMakeFiles/common.dir/console.cpp.o [ 78%] Building CXX object common/CMakeFiles/common.dir/json-schema-to-grammar.cpp.o [ 78%] Building CXX object common/CMakeFiles/common.dir/grammar-parser.cpp.o [ 85%] Building CXX object common/CMakeFiles/common.dir/train.cpp.o [ 85%] Building CXX object common/CMakeFiles/common.dir/ngram-cache.cpp.o [ 85%] Built target llava [ 92%] Linking CXX static library libcommon.a [ 92%] Built target common [ 92%] Building CXX object ext_server/CMakeFiles/ollama_llama_server.dir/server.cpp.o [100%] Linking CXX executable ../bin/ollama_llama_server [100%] Built target ollama_llama_server + compress + echo 'Compressing payloads to reduce overall binary size...' Compressing payloads to reduce overall binary size... + pids= + rm -rf '../build/linux/riscv64/cpu/bin/*.gz' + for f in ${BUILD_DIR}/bin/* + pids+=' 101756' + gzip -n --best -f ../build/linux/riscv64/cpu/bin/ollama_llama_server + '[' -d ../build/linux/riscv64/cpu/lib ']' + echo + for pid in ${pids} + wait 101756 + echo 'Finished compression' Finished compression + '[' riscv64 == x86_64 ']' + '[' -z '' ']' + '[' -d /usr/local/cuda/lib64 ']' + '[' -z '' ']' + '[' -d /opt/cuda/targets/x86_64-linux/lib ']' + '[' -z '' ']' + CUDART_LIB_DIR= + '[' -d '' ']' + '[' -z '' ']' + ROCM_PATH=/opt/rocm + '[' -z '' ']' + '[' -d /usr/lib/cmake/CLBlast ']' + '[' -d /opt/rocm ']' + cleanup + cd ../llama.cpp/ + git checkout CMakeLists.txt 从索引区更新了 1 个路径 ++ ls -A ../patches/02-clip-log.diff ../patches/03-load_exception.diff ../patches/04-metal.diff + '[' -n '../patches/02-clip-log.diff ../patches/03-load_exception.diff ../patches/04-metal.diff' ']' + for patch in ../patches/*.diff ++ grep '^+++ ' ../patches/02-clip-log.diff ++ cut -f2 '-d ' ++ cut -f2- -d/ + for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/) + cd ../llama.cpp + git checkout examples/llava/clip.cpp 从索引区更新了 1 个路径 + for patch in ../patches/*.diff ++ grep '^+++ ' ../patches/03-load_exception.diff ++ cut -f2 '-d ' ++ cut -f2- -d/ + for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/) + cd ../llama.cpp + git checkout llama.cpp 从索引区更新了 1 个路径 + for patch in ../patches/*.diff ++ grep '^+++ ' ../patches/04-metal.diff ++ cut -f2 '-d ' ++ cut -f2- -d/ + for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/) + cd ../llama.cpp + git checkout ggml-metal.m 从索引区更新了 1 个路径 ++ cd ../build/linux/riscv64/cpu/.. ++ echo cpu + echo 'go generate completed. LLM runners: cpu' go generate completed. LLM runners: cpu # sipeed @ lpi4a in ~/ollama on git:main o [0:57:45] $ go build . # github.com/chewxy/math32 ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:3:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/exp.go:57:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/sqrt.go:3:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/log.go:76:6: missing function body ../go/pkg/mod/github.com/chewxy/math32@v1.0.8/remainder.go:33:6: missing function body # sipeed @ lpi4a in ~/ollama on git:main o [0:58:52] C:1 $ ll 总计 148K drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 api drwxr-xr-x 6 sipeed sipeed 4.0K 4月28日 00:10 app drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 auth drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 cmd drwxr-xr-x 3 sipeed sipeed 4.0K 4月28日 00:10 convert -rw-r--r-- 1 sipeed sipeed 6.1K 4月28日 00:10 Dockerfile drwxr-xr-x 3 sipeed sipeed 4.0K 4月28日 00:10 docs drwxr-xr-x 26 sipeed sipeed 4.0K 4月28日 00:10 examples drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 format -rw-r--r-- 1 sipeed sipeed 2.9K 4月28日 00:10 go.mod -rw-r--r-- 1 sipeed sipeed 29K 4月28日 00:10 go.sum drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 gpu drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 integration -rw-r--r-- 1 sipeed sipeed 1.1K 4月28日 00:10 LICENSE drwxr-xr-x 7 sipeed sipeed 4.0K 4月28日 00:42 llm drwxr-xr-x 4 sipeed sipeed 4.0K 4月28日 00:10 macapp -rw-r--r-- 1 sipeed sipeed 179 4月28日 00:10 main.go drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 openai drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 parser drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 progress drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 readline -rw-r--r-- 1 sipeed sipeed 15K 4月28日 00:10 README.md drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 scripts drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 server drwxr-xr-x 4 sipeed sipeed 4.0K 4月28日 00:10 types drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 00:10 version ``` ### OS Linux ### GPU Other ### CPU Other ### Ollama version git version
GiteaMirror added the bug label 2026-04-12 12:47:45 -05:00
Author
Owner

@HougeLangley commented on GitHub (Apr 27, 2024):

# sipeed @ lpi4a in ~/ollama on git:main o [1:53:03] 
$ go build .
go: downloading github.com/spf13/cobra v1.7.0
go: downloading github.com/containerd/console v1.0.3
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading golang.org/x/crypto v0.14.0
go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
go: downloading golang.org/x/term v0.13.0
go: downloading github.com/emirpasic/gods v1.18.1
go: downloading github.com/gin-contrib/cors v1.4.0
go: downloading github.com/gin-gonic/gin v1.9.1
go: downloading golang.org/x/sync v0.3.0
go: downloading github.com/d4l3k/go-bfloat16 v0.0.0-20211005043715-690c3bdd05f1
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/nlpodyssey/gopickle v0.3.0
go: downloading github.com/pdevine/tensor v0.0.0-20240228013915-64ccaa8d9ca9
go: downloading github.com/x448/float16 v0.8.4
go: downloading google.golang.org/protobuf v1.30.0
go: downloading golang.org/x/sys v0.13.0
main.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:11:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:12:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:26:2: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:28:2: GOPROXY list is not the empty string, but contains no entries
api/client.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:13:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
format/bytes.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
format/time.go:6:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
format/time.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:15:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:16:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:17:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:18:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:19:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/types.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/client.go:20:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
api/types.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
parser/parser.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
parser/parser.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
progress/bar.go:10:2: GOPROXY list is not the empty string, but contains no entries
progress/progress.go:6:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
readline/buffer.go:7:2: GOPROXY list is not the empty string, but contains no entries
readline/history.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
readline/readline.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
readline/term_linux.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/upload.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/auth.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/auth.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/routes.go:23:2: GOPROXY list is not the empty string, but contains no entries
server/routes.go:24:2: GOPROXY list is not the empty string, but contains no entries
auth/auth.go:14:2: GOPROXY list is not the empty string, but contains no entries
convert/convert.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
convert/convert.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
convert/gemma.go:11:2: GOPROXY list is not the empty string, but contains no entries
convert/safetensors.go:16:2: GOPROXY list is not the empty string, but contains no entries
convert/llama.go:12:2: GOPROXY list is not the empty string, but contains no entries
convert/torch.go:15:2: GOPROXY list is not the empty string, but contains no entries
convert/sentencepiece/sentencepiece_model.pb.go:24:2: GOPROXY list is not the empty string, but contains no entries
convert/sentencepiece/sentencepiece_model.pb.go:25:2: GOPROXY list is not the empty string, but contains no entries
llm/payload.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
llm/llm_linux.go:3:8: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
gpu/cpu_common.go:6:2: GOPROXY list is not the empty string, but contains no entries
package github.com/ollama/ollama
        imports github.com/ollama/ollama/cmd
        imports github.com/ollama/ollama/server
        imports github.com/ollama/ollama/convert
        imports github.com/ollama/ollama/llm
        imports github.com/ollama/ollama/gpu: cannot find package
llm/payload.go:15:2: GOPROXY list is not the empty string, but contains no entries
llm/payload.go:16:2: GOPROXY list is not the empty string, but contains no entries
llm/server.go:24:2: GOPROXY list is not the empty string, but contains no entries
llm/payload.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
llm/server.go:11:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
llm/server.go:13:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
llm/server.go:17:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
convert/gemma.go:12:2: GOPROXY list is not the empty string, but contains no entries
convert/gemma.go:13:2: GOPROXY list is not the empty string, but contains no entries
convert/llama.go:15:2: GOPROXY list is not the empty string, but contains no entries
convert/convert.go:14:2: GOPROXY list is not the empty string, but contains no entries
convert/llama.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/upload.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/routes.go:14:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/routes.go:16:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/sched.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/download.go:18:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/images.go:23:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
server/prompt.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries
cmd/cmd.go:29:2: GOPROXY list is not the empty string, but contains no entries

# sipeed @ lpi4a in ~/ollama on git:main o [1:54:04] C:1
$ ll
总计 148K
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 api
drwxr-xr-x  6 sipeed sipeed 4.0K  4月28日 01:35 app
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 auth
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 cmd
drwxr-xr-x  3 sipeed sipeed 4.0K  4月28日 01:35 convert
-rw-r--r--  1 sipeed sipeed 6.1K  4月28日 01:35 Dockerfile
drwxr-xr-x  3 sipeed sipeed 4.0K  4月28日 01:35 docs
drwxr-xr-x 26 sipeed sipeed 4.0K  4月28日 01:35 examples
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 format
-rw-r--r--  1 sipeed sipeed 2.9K  4月28日 01:35 go.mod
-rw-r--r--  1 sipeed sipeed  29K  4月28日 01:35 go.sum
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 gpu
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 integration
-rw-r--r--  1 sipeed sipeed 1.1K  4月28日 01:35 LICENSE
drwxr-xr-x  7 sipeed sipeed 4.0K  4月28日 01:37 llm
drwxr-xr-x  4 sipeed sipeed 4.0K  4月28日 01:35 macapp
-rw-r--r--  1 sipeed sipeed  179  4月28日 01:35 main.go
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 openai
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 parser
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 progress
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 readline
-rw-r--r--  1 sipeed sipeed  15K  4月28日 01:35 README.md
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 scripts
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 server
drwxr-xr-x  4 sipeed sipeed 4.0K  4月28日 01:35 types
drwxr-xr-x  2 sipeed sipeed 4.0K  4月28日 01:35 version

# sipeed @ lpi4a in ~/ollama on git:main o [1:54:45] 
$ go version
go version go1.22.2 linux/riscv64
<!-- gh-comment-id:2081114400 --> @HougeLangley commented on GitHub (Apr 27, 2024): ``` # sipeed @ lpi4a in ~/ollama on git:main o [1:53:03] $ go build . go: downloading github.com/spf13/cobra v1.7.0 go: downloading github.com/containerd/console v1.0.3 go: downloading github.com/olekukonko/tablewriter v0.0.5 go: downloading golang.org/x/crypto v0.14.0 go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 go: downloading golang.org/x/term v0.13.0 go: downloading github.com/emirpasic/gods v1.18.1 go: downloading github.com/gin-contrib/cors v1.4.0 go: downloading github.com/gin-gonic/gin v1.9.1 go: downloading golang.org/x/sync v0.3.0 go: downloading github.com/d4l3k/go-bfloat16 v0.0.0-20211005043715-690c3bdd05f1 go: downloading github.com/mitchellh/mapstructure v1.5.0 go: downloading github.com/nlpodyssey/gopickle v0.3.0 go: downloading github.com/pdevine/tensor v0.0.0-20240228013915-64ccaa8d9ca9 go: downloading github.com/x448/float16 v0.8.4 go: downloading google.golang.org/protobuf v1.30.0 go: downloading golang.org/x/sys v0.13.0 main.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:11:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:12:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:26:2: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:28:2: GOPROXY list is not the empty string, but contains no entries api/client.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:13:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries format/bytes.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries format/time.go:6:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries format/time.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:15:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:16:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:17:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:18:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:19:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/types.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/client.go:20:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries api/types.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries parser/parser.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries parser/parser.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries progress/bar.go:10:2: GOPROXY list is not the empty string, but contains no entries progress/progress.go:6:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries readline/buffer.go:7:2: GOPROXY list is not the empty string, but contains no entries readline/history.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries readline/readline.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries readline/term_linux.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/upload.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/auth.go:7:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/auth.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/routes.go:23:2: GOPROXY list is not the empty string, but contains no entries server/routes.go:24:2: GOPROXY list is not the empty string, but contains no entries auth/auth.go:14:2: GOPROXY list is not the empty string, but contains no entries convert/convert.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries convert/convert.go:5:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries convert/gemma.go:11:2: GOPROXY list is not the empty string, but contains no entries convert/safetensors.go:16:2: GOPROXY list is not the empty string, but contains no entries convert/llama.go:12:2: GOPROXY list is not the empty string, but contains no entries convert/torch.go:15:2: GOPROXY list is not the empty string, but contains no entries convert/sentencepiece/sentencepiece_model.pb.go:24:2: GOPROXY list is not the empty string, but contains no entries convert/sentencepiece/sentencepiece_model.pb.go:25:2: GOPROXY list is not the empty string, but contains no entries llm/payload.go:4:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries llm/llm_linux.go:3:8: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries gpu/cpu_common.go:6:2: GOPROXY list is not the empty string, but contains no entries package github.com/ollama/ollama imports github.com/ollama/ollama/cmd imports github.com/ollama/ollama/server imports github.com/ollama/ollama/convert imports github.com/ollama/ollama/llm imports github.com/ollama/ollama/gpu: cannot find package llm/payload.go:15:2: GOPROXY list is not the empty string, but contains no entries llm/payload.go:16:2: GOPROXY list is not the empty string, but contains no entries llm/server.go:24:2: GOPROXY list is not the empty string, but contains no entries llm/payload.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries llm/server.go:11:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries llm/server.go:13:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries llm/server.go:17:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries convert/gemma.go:12:2: GOPROXY list is not the empty string, but contains no entries convert/gemma.go:13:2: GOPROXY list is not the empty string, but contains no entries convert/llama.go:15:2: GOPROXY list is not the empty string, but contains no entries convert/convert.go:14:2: GOPROXY list is not the empty string, but contains no entries convert/llama.go:9:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/upload.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/routes.go:14:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/routes.go:16:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/sched.go:10:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/download.go:18:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/images.go:23:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries server/prompt.go:8:2: github.com/apache/arrow/go/arrow@v0.0.0-20201229220542-30ce2eb5d4dc: GOPROXY list is not the empty string, but contains no entries cmd/cmd.go:29:2: GOPROXY list is not the empty string, but contains no entries # sipeed @ lpi4a in ~/ollama on git:main o [1:54:04] C:1 $ ll 总计 148K drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 api drwxr-xr-x 6 sipeed sipeed 4.0K 4月28日 01:35 app drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 auth drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 cmd drwxr-xr-x 3 sipeed sipeed 4.0K 4月28日 01:35 convert -rw-r--r-- 1 sipeed sipeed 6.1K 4月28日 01:35 Dockerfile drwxr-xr-x 3 sipeed sipeed 4.0K 4月28日 01:35 docs drwxr-xr-x 26 sipeed sipeed 4.0K 4月28日 01:35 examples drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 format -rw-r--r-- 1 sipeed sipeed 2.9K 4月28日 01:35 go.mod -rw-r--r-- 1 sipeed sipeed 29K 4月28日 01:35 go.sum drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 gpu drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 integration -rw-r--r-- 1 sipeed sipeed 1.1K 4月28日 01:35 LICENSE drwxr-xr-x 7 sipeed sipeed 4.0K 4月28日 01:37 llm drwxr-xr-x 4 sipeed sipeed 4.0K 4月28日 01:35 macapp -rw-r--r-- 1 sipeed sipeed 179 4月28日 01:35 main.go drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 openai drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 parser drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 progress drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 readline -rw-r--r-- 1 sipeed sipeed 15K 4月28日 01:35 README.md drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 scripts drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 server drwxr-xr-x 4 sipeed sipeed 4.0K 4月28日 01:35 types drwxr-xr-x 2 sipeed sipeed 4.0K 4月28日 01:35 version # sipeed @ lpi4a in ~/ollama on git:main o [1:54:45] $ go version go version go1.22.2 linux/riscv64 ```
Author
Owner

@helium729 commented on GitHub (Apr 28, 2024):

看起来你遇到了一个与Go语言的代理设置相关的问题。在Go语言中,GOPROXY是一个环境变量,用于指定Go模块代理的URL。这通常用于在私有网络或防火墙后面工作时,通过代理服务器访问Go模块。

如果你的GOPROXY环境变量不是空字符串,但也没有包含任何有效的代理条目,那么Go工具可能无法正确地解析和下载依赖项。

以下是一些可能的解决步骤:

检查GOPROXY的值:确保GOPROXY环境变量设置正确。你可以在终端中使用以下命令来查看当前的GOPROXY值:

echo $GOPROXY

设置正确的代理:如果你需要通过代理访问Go模块,确保GOPROXY环境变量指向一个有效的代理服务器。例如:

export GOPROXY=https://proxy.example.com

清除Go缓存:有时候,清除Go的缓存可以解决问题。你可以使用以下命令:

go clean -modcache

直接设置代理:在不更改环境变量的情况下,你也可以在运行Go命令时直接指定代理:

GOPROXY=https://proxy.example.com go get

无代理连接:如果你不需要代理,可以将GOPROXY设置为空:

export GOPROXY=

检查防火墙和网络设置:确保你的网络设置允许你的计算机访问Go模块代理。

如果问题依旧存在,可能需要进一步检查你的网络环境和Go配置。如果你有更详细的错误信息或上下文,我可能能够提供更具体的帮助。

<!-- gh-comment-id:2081511207 --> @helium729 commented on GitHub (Apr 28, 2024): 看起来你遇到了一个与Go语言的代理设置相关的问题。在Go语言中,GOPROXY是一个环境变量,用于指定Go模块代理的URL。这通常用于在私有网络或防火墙后面工作时,通过代理服务器访问Go模块。 如果你的GOPROXY环境变量不是空字符串,但也没有包含任何有效的代理条目,那么Go工具可能无法正确地解析和下载依赖项。 以下是一些可能的解决步骤: 检查GOPROXY的值:确保GOPROXY环境变量设置正确。你可以在终端中使用以下命令来查看当前的GOPROXY值: echo $GOPROXY 设置正确的代理:如果你需要通过代理访问Go模块,确保GOPROXY环境变量指向一个有效的代理服务器。例如: export GOPROXY=https://proxy.example.com 清除Go缓存:有时候,清除Go的缓存可以解决问题。你可以使用以下命令: go clean -modcache 直接设置代理:在不更改环境变量的情况下,你也可以在运行Go命令时直接指定代理: GOPROXY=https://proxy.example.com go get <module> 无代理连接:如果你不需要代理,可以将GOPROXY设置为空: export GOPROXY= 检查防火墙和网络设置:确保你的网络设置允许你的计算机访问Go模块代理。 如果问题依旧存在,可能需要进一步检查你的网络环境和Go配置。如果你有更详细的错误信息或上下文,我可能能够提供更具体的帮助。
Author
Owner

@HougeLangley commented on GitHub (Apr 28, 2024):

好哒,我回去试试

<!-- gh-comment-id:2081705470 --> @HougeLangley commented on GitHub (Apr 28, 2024): 好哒,我回去试试
Author
Owner

@HougeLangley commented on GitHub (Apr 30, 2024):

我先关掉,昨晚没来得及试

<!-- gh-comment-id:2084288765 --> @HougeLangley commented on GitHub (Apr 30, 2024): 我先关掉,昨晚没来得及试
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2463