Open dimazig opened 2 months ago
with make GRPC_BACKENDS=backend-assets/grpc/llama-cpp build
I'm getting the same error. There is something wrong with Go lang code
tried to upgrade Go to 1.23 but getting the same error
CGO_LDFLAGS="-lcublas -lcudart -L/usr/local/cuda/lib64/" go build -ldflags "-s -w -X "github.com/mudler/LocalAI/internal.Version=v2.20.1-30-gbc684c25" -X "github.com/mudler/LocalAI/internal.Commit=bc684c259c5afb73e64bc6c145e2aa261562a468"" -tags "" -o local-ai ./
# github.com/mudler/LocalAI
too much data, last section SGOSTRING (2418459656, over 2e+09 bytes)
too much data, last section SGOFUNC (2420451420, over 2e+09 bytes)
too much data, last section SGCBITS (2420474736, over 2e+09 bytes)
too much data, last section SRODATA (2421160431, over 2e+09 bytes)
too much data, last section SFUNCTAB (2421160431, over 2e+09 bytes)
too much data, last section SELFROSECT (2421163896, over 2e+09 bytes)
too much data, last section STYPELINK (2421226020, over 2e+09 bytes)
too much data, last section SITABLINK (2421250096, over 2e+09 bytes)
.plt: pc-relative relocation address for .got.plt is too big: 0x911986e2
.plt: pc-relative relocation address for .got.plt is too big: 0x911986e4
.plt: pc-relative relocation address for .got.plt is too big: 0x911986e2
.plt: pc-relative relocation address for .got.plt is too big: 0x911986da
.plt: pc-relative relocation address for .got.plt is too big: 0x911986d2
.plt: pc-relative relocation address for .got.plt is too big: 0x911986ca
.plt: pc-relative relocation address for .got.plt is too big: 0x911986c2
.plt: pc-relative relocation address for .got.plt is too big: 0x911986ba
.plt: pc-relative relocation address for .got.plt is too big: 0x911986b2
.plt: pc-relative relocation address for .got.plt is too big: 0x911986aa
.plt: pc-relative relocation address for .got.plt is too big: 0x911986a2
.plt: pc-relative relocation address for .got.plt is too big: 0x9119869a
.plt: pc-relative relocation address for .got.plt is too big: 0x91198692
/usr/lib/go-1.23/pkg/tool/linux_amd64/link: too many errors
make: *** [Makefile:369: build] Error 1
something's exceeding 2Gb limit
https://go-review.googlesource.com/c/go/+/11715/6/src/cmd/link/internal/ld/data.go
If I use --trace then it shows a little more
too much data, last section SGOSTRING (2418459656, over 2e+09 bytes)
too much data, last section SGOFUNC (2420451420, over 2e+09 bytes)
too much data, last section SGCBITS (2420474736, over 2e+09 bytes)
too much data, last section SRODATA (2421160431, over 2e+09 bytes)
too much data, last section SFUNCTAB (2421160431, over 2e+09 bytes)
too much data, last section SELFROSECT (2421163896, over 2e+09 bytes)
too much data, last section STYPELINK (2421226020, over 2e+09 bytes)
too much data, last section SITABLINK (2421250096, over 2e+09 bytes)
reflect.TypeOf: pc-relative relocation address for go:itab.*reflect.rtype,reflect.Type is too big: 0x91735244
reflect.PtrTo: pc-relative relocation address for go:itab.*reflect.rtype,reflect.Type is too big: 0x91735211
reflect.PtrTo: pc-relative relocation address for go:itab.*reflect.rtype,reflect.Type is too big: 0x917351f9
reflect.PtrTo: pc-relative relocation address for go:itab.*reflect.rtype,reflect.Type is too big: 0x917351f4
reflect.implements: pc-relative relocation address for reflect.implements.jump53 is too big: 0x917128a7
reflect.MapOf: pc-relative relocation address for reflect.lookupCache is too big: 0x9259a69d
reflect.MapOf: pc-relative relocation address for reflect..typeAssert.2 is too big: 0x9254677c
reflect.MapOf: pc-relative relocation address for net..stmp_57 is too big: 0x916eddd1
reflect.MapOf: pc-relative relocation address for reflect.lookupCache is too big: 0x9259a56e
reflect.MapOf: pc-relative relocation address for reflect..typeAssert.3 is too big: 0x92546670
reflect.MapOf: pc-relative relocation address for runtime.writeBarrier is too big: 0x925c6962
reflect.MapOf: pc-relative relocation address for runtime.writeBarrier is too big: 0x925c6861
reflect.MapOf: pc-relative relocation address for runtime.writeBarrier is too big: 0x925c682e
/usr/lib/go-1.23/pkg/tool/linux_amd64/link: too many errors
make: *** [Makefile:369: build] Error 1
I have the same error with cuda 12.6 and go1.23.1 on debian 12, nvidia driver 560.35.03-1
``go build -ldflags "-s -w -X "github.com/mudler/LocalAI/internal.Version=v2.22.0-88-g32db7879" -X "github.com/mudler/LocalAI/internal.Commit=32db7879915a3910671872ac9e5245e44e9e032e"" -tags "stablediffusion,tts,p2p" -o backend-assets/grpc/piper ./backend/go/tts/
I local-ai build info:
I BUILD_TYPE: cublas
I GO_TAGS: stablediffusion,tts,p2p
I LD_FLAGS: -s -w -X "github.com/mudler/LocalAI/internal.Version=v2.22.0-88-g32db7879" -X "github.com/mudler/LocalAI/internal.Commit=32db7879915a3910671872ac9e5245e44e9e032e"
I UPX:
CGO_LDFLAGS="-lcublas -lcudart -L/usr/local/cuda/lib64/" go build -ldflags "-s -w -X "github.com/mudler/LocalAI/internal.Version=v2.22.0-88-g32db7879" -X "github.com/mudler/LocalAI/internal.Commit=32db7879915a3910671872ac9e5245e44e9e032e"" -tags "stablediffusion,tts,p2p" -o local-ai ./
# github.com/mudler/LocalAI
too much data, last section SGOSTRING (2091635592, over 2e+09 bytes)
too much data, last section SGOFUNC (2093749086, over 2e+09 bytes)
too much data, last section SGCBITS (2093773096, over 2e+09 bytes)
too much data, last section SRODATA (2094720599, over 2e+09 bytes)
too much data, last section SFUNCTAB (2094720599, over 2e+09 bytes)
too much data, last section SELFROSECT (2094724056, over 2e+09 bytes)
too much data, last section STYPELINK (2094790428, over 2e+09 bytes)
too much data, last section SITABLINK (2094816592, over 2e+09 bytes)
make: *** [Makefile:372: build] Error 1
``
My parameters in ulimit
`# ulimit -a
real-time non-blocking time (microseconds, -R) unlimited
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 67108864
cpu time (seconds, -t) unlimited
max user processes (-u) 513870
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
`
Same problem here. Anyone find a solution for this?
Same for me with CUDA 11.4 and driver 470.239.06.