Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported architecture: armv7l #66

Open
azat385 opened this issue Nov 28, 2024 · 4 comments
Open

Unsupported architecture: armv7l #66

azat385 opened this issue Nov 28, 2024 · 4 comments
Labels
question Further information is requested

Comments

@azat385
Copy link

azat385 commented Nov 28, 2024

How to compile for arm7l? (Raspbian 32bit)

Thank you.

@PeterOsinski
Copy link
Contributor

Can you try GOARCH=arm GOARM=7 GOOS=linux go build after downloading logdy-core repository? Then try to run the output binary on Raspberry, if it will work I'll give you additional directions on how to embed a UI too

@azat385
Copy link
Author

azat385 commented Nov 29, 2024

go version
go version go1.19.8 linux/arm

GOARCH=arm GOARM=7 GOOS=linux go build
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/spf13/cobra v1.8.0
go: downloading github.com/gorilla/websocket v1.5.1
go: downloading github.com/brianvoe/gofakeit/v6 v6.28.0
go: downloading github.com/cheggaaa/pb/v3 v3.1.5
go: downloading github.com/nxadm/tail v1.4.11
go: downloading github.com/valyala/fastjson v1.6.4
go: downloading github.com/brianvoe/gofakeit v3.18.0+incompatible
go: downloading golang.org/x/sys v0.16.0
go: downloading golang.org/x/net v0.20.0
go: downloading github.com/VividCortex/ewma v1.2.0
go: downloading github.com/fatih/color v1.15.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/rivo/uniseg v0.2.0
github.com/logdyhq/logdy-core/http
http/middleware_api_key.go:31:20: undefined: strings.CutPrefix
note: module requires Go 1.23

im sorry, im newbie to golang.

@azat385
Copy link
Author

azat385 commented Nov 29, 2024

sudo /usr/local/go/bin/go version
go version go1.23.3 linux/arm

sudo GOARCH=arm GOARM=7 GOOS=linux /usr/local/go/bin/go run main.go
/usr/local/go/src/internal/abi/abi.go:9:2: package unsafe is not in std (/usr/local/go/src/unsafe)
/usr/local/go/src/context/context.go:59:2: package sync is not in std (/usr/local/go/src/sync)
/usr/local/go/src/context/context.go:60:2: package sync/atomic is not in std (/usr/local/go/src/sync/atomic)
/usr/local/go/src/context/context.go:61:2: package time is not in std (/usr/local/go/src/time)
/usr/local/go/src/reflect/type.go:21:2: package strconv is not in std (/usr/local/go/src/strconv)
/usr/local/go/src/reflect/type.go:23:2: package unicode is not in std (/usr/local/go/src/unicode)
/usr/local/go/src/reflect/type.go:24:2: package unicode/utf8 is not in std (/usr/local/go/src/unicode/utf8)
/usr/local/go/src/internal/fmtsort/sort.go:14:2: package slices is not in std (/usr/local/go/src/slices)
/usr/local/go/src/internal/syscall/unix/at.go:10:2: package syscall is not in std (/usr/local/go/src/syscall)
/usr/local/go/src/encoding/json/decode.go:16:2: package strings is not in std (/usr/local/go/src/strings)
/usr/local/go/src/encoding/json/decode.go:18:2: package unicode/utf16 is not in std (/usr/local/go/src/unicode/utf16)
/usr/local/go/src/compress/flate/huffman_code.go:10:2: package sort is not in std (/usr/local/go/src/sort)
/usr/local/go/src/crypto/ecdsa/ecdsa.go:45:2: missing go.sum entry for module providing package golang.org/x/crypto/cryptobyte (imported by crypto/tls); to add:
go get crypto/tls
/usr/local/go/src/crypto/ecdsa/ecdsa.go:46:2: missing go.sum entry for module providing package golang.org/x/crypto/cryptobyte/asn1 (imported by crypto/ecdsa); to add:
go get crypto/ecdsa
/usr/local/go/src/crypto/internal/hpke/hpke.go:17:2: missing go.sum entry for module providing package golang.org/x/crypto/chacha20poly1305 (imported by crypto/tls); to add:
go get crypto/tls
/usr/local/go/src/crypto/internal/hpke/hpke.go:18:2: missing go.sum entry for module providing package golang.org/x/crypto/hkdf (imported by crypto/tls); to add:
go get crypto/tls
/usr/local/go/src/crypto/internal/mlkem768/mlkem768.go:36:2: missing go.sum entry for module providing package golang.org/x/crypto/sha3 (imported by crypto/tls); to add:
go get crypto/tls
/usr/local/go/src/net/netip/netip.go:22:2: package unique is not in std (/usr/local/go/src/unique)
/root/go/pkg/mod/golang.org/x/net@v0.20.0/idna/idna10.0.0.go:25:2: missing go.sum entry for module providing package golang.org/x/text/secure/bidirule (imported by golang.org/x/net/idna); to add:
go get golang.org/x/net/idna@v0.20.0
/root/go/pkg/mod/golang.org/x/net@v0.20.0/idna/idna10.0.0.go:26:2: missing go.sum entry for module providing package golang.org/x/text/unicode/bidi (imported by golang.org/x/net/idna); to add:
go get golang.org/x/net/idna@v0.20.0
/root/go/pkg/mod/golang.org/x/net@v0.20.0/idna/idna10.0.0.go:27:2: missing go.sum entry for module providing package golang.org/x/text/unicode/norm (imported by golang.org/x/net/idna); to add:
go get golang.org/x/net/idna@v0.20.0
/root/go/pkg/mod/github.com/brianvoe/gofakeit/v6@v6.28.0/template.go:12:2: package text/template is not in std (/usr/local/go/src/text/template)

I have no idea what im doing )

@PeterOsinski
Copy link
Contributor

@azat385, I don't have raspberry pi to experiment with, thus I'm not able to fully support you with this. Did you find a solution?

@PeterOsinski PeterOsinski added the question Further information is requested label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants