@dreieck this solution produce errors on cleanup stage with removing GO packages
Search Criteria
Package Details: ollama-rocm-git 0.1.30.gc2712b55-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/ollama-rocm-git.git (read-only, click to copy) |
---|---|
Package Base: | ollama-rocm-git |
Description: | Create, run and share large language models (LLMs) with ROCm |
Upstream URL: | https://github.com/jmorganca/ollama |
Licenses: | MIT |
Conflicts: | ollama, ollama-cuda |
Provides: | ollama |
Submitter: | sr.team |
Maintainer: | sr.team |
Last Packager: | sr.team |
Votes: | 1 |
Popularity: | 0.43 |
First Submitted: | 2024-02-28 00:40 (UTC) |
Last Updated: | 2024-03-25 23:09 (UTC) |
Dependencies (6)
- clblast (clblast-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR) (make)
- go (go-gitAUR, gcc-go-gitAUR, gcc-go) (make)
- hipblas (opencl-amd-devAUR) (make)
- rocblas (opencl-amd-devAUR) (make)
Required by (10)
- alpaka-git (requires ollama)
- chatd (requires ollama)
- chatd-bin (requires ollama)
- litellm (requires ollama) (optional)
- litellm-ollama (requires ollama)
- ollamamodelupdater (requires ollama) (optional)
- ollamamodelupdater-bin (requires ollama) (optional)
- python-ollama (requires ollama)
- python-ollama-git (requires ollama)
- tlm (requires ollama) (optional)
Sources (4)
sr.team commented on 2024-04-18 02:08 (UTC)
dreieck commented on 2024-04-17 12:45 (UTC)
In prepare()
:
export GOPATH="${srcdir}/go"
go get
In build()
:
export GOPATH="${srcdir}/go"
sr.team commented on 2024-03-25 23:12 (UTC)
@dreieck I don't know how to make it in 'go'
dreieck commented on 2024-03-25 23:01 (UTC)
Can you please move the go
download stuff out of build()
and into prepare()
, so that build()
can take place in an offline environment?:
==> Starting build()...
go: downloading github.com/pdevine/tensor v0.0.0-20240228013915-64ccaa8d9ca9
go: downloading github.com/x448/float16 v0.8.4
go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
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/gin-gonic/gin v1.9.1
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
[...]
Regards and thanks for maintaining!
dreieck commented on 2024-03-25 23:00 (UTC)
pkgver()
needs fixes:
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: 0.1.30-rc1.gc2712b55
(I added | tr '-' '.'
to fix this.)
Regards and thanks for maintaining!
sr.team commented on 2024-03-22 13:00 (UTC)
@intersectRaven thank you for bringing this to your attention. I override CFLAGS
and CXXFLAGS
now
intersectRaven commented on 2024-03-22 11:09 (UTC)
A recent pacman update added new arguments to CFLAGS so directly putting a '#' on the line will cause errors. Maybe we should override the CFLAGS in the PKGBUILD itself so this can be better avoided in the future?
sr.team commented on 2024-03-16 15:57 (UTC)
@agilob it's a '-git' package. Version updates automatically during installation process
kyngs commented on 2024-03-08 16:51 (UTC)
Hi, I cannot build this package due to the following error:
error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
192 warnings and 2 errors generated when compiling for gfx1010.
make[3]: *** [CMakeFiles/ggml.dir/build.make:132: CMakeFiles/ggml.dir/ggml-cuda.cu.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/Makefile2:742: CMakeFiles/ggml.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2906: examples/server/CMakeFiles/ext_server.dir/rule] Error 2
make: *** [Makefile:1193: ext_server] Error 2
llm/generate/generate_linux.go:3: running "bash": exit status 2
==> ERROR: A failure occurred in build().
Lindenk commented on 2024-03-07 03:50 (UTC)
Even with the pinned changes, the build is failing for me with:
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/lindenk/.cache/yay/ollama-rocm-git/src/ollama/llm/llama.cpp/build/linux/x86_64/cpu/CMakeFiles/CMakeScratch/TryCompile-den2H4'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_5cbab/fast
/usr/bin/make -f CMakeFiles/cmTC_5cbab.dir/build.make CMakeFiles/cmTC_5cbab.dir/build
make[1]: Entering directory '/home/lindenk/.cache/yay/ollama-rocm-git/src/ollama/llm/llama.cpp/build/linux/x86_64/cpu/CMakeFiles/CMakeScratch/TryCompile-den2H4'
Building C object CMakeFiles/cmTC_5cbab.dir/testCCompiler.c.o
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security # -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/lindenk/.cache/yay/ollama-rocm-git/src=/usr/src/debug/ollama-rocm-git -flto=auto -fPIE -o CMakeFiles/cmTC_5cbab.dir/testCCompiler.c.o -c /home/lindenk/.cache/yay/ollama-rocm-git/src/ollama/llm/llama.cpp/build/linux/x86_64/cpu/CMakeFiles/CMakeScratch/TryCompile-den2H4/testCCompiler.c
cc: fatal error: no input files
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_5cbab.dir/build.make:78: CMakeFiles/cmTC_5cbab.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory '/home/lindenk/.cache/yay/ollama-rocm-git/src/ollama/llm/llama.cpp/build/linux/x86_64/cpu/CMakeFiles/CMakeScratch/TryCompile-den2H4'
make: *** [Makefile:127: cmTC_5cbab/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
Pinned Comments
bullet92 commented on 2024-03-02 13:00 (UTC) (edited on 2024-03-02 15:50 (UTC) by bullet92)
Hi, without the package hipblas it does not install with the following compilation error:
Suggestion: add hipblas as dependencies
In any case compile fail, so I have to modify my /etc/makepkg.conf and commented out this line:
After starting ollama with systemctl and checking the output with status I obtained:
level=INFO source=routes.go:1044 msg="no GPU detected"
So I edited the service adding "HSA_OVERRIDE_GFX_VERSION=10.3.0" to the current environment in ollama.service
sudo systemctl edit ollama.service
and installed some dependencies:
( in my case rocm-hip-sdk rocm-opencl-sdk were missings ) And that gives me "Radeon GPU detected"