Supports Raspberry Pi with arm32v7
SidneySun opened this issue · 11 comments
Can raspberry pi with arm32v7 use this project?
build stuck, working on it
I successfully compiled this project a year ago, but currently, I also got errors with my raspberry pi using arm32v7 during the local build.
......
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
/go/pkg/mod/github.com/denisenkom/go-mssqldb@v0.11.0/ntlm.go:18:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.0.0/client_certificate_credential.go:24:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
auditor/provider.go:4:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
upstream/database/handler.go:11:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
The command '/bin/sh -c CGO_ENABLED=0 go build -ldflags "-X main.version=$VER" -o /sshpiperd' returned a non-zero code: 1
I will try to fix it.
checkout submodule
not sure why gh action stuck
I can't build the docker image on amd64 either. Can you build successfully now? @tg123
for sure, what was the err btw
The error on amd64 is the same as arm32v7.
......
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
/go/pkg/mod/github.com/denisenkom/go-mssqldb@v0.11.0/ntlm.go:18:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.0.0/client_certificate_credential.go:24:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
auditor/provider.go:4:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
upstream/database/handler.go:11:2: golang.org/x/crypto@v0.0.0-20220511200225-c6db032c6c88 (replaced by ./crypto): reading ../crypto/go.mod: open /src/crypto/go.mod: no such file or directory
The command '/bin/sh -c CGO_ENABLED=0 go build -ldflags "-X main.version=$VER" -o /sshpiperd' returned a non-zero code: 1
git submodule update --init --recursive
Thanks.
I successfully built the image on my Pi and it took 30 minutes. Did you cancel the action too early?
Step 13/13 : CMD ["/sshpiperd", "daemon"]
---> Running in 84a70fcb367f
Removing intermediate container 84a70fcb367f
---> 304e4d497c24
Successfully built 304e4d497c24
Successfully tagged sid/sshpiper:latest
sudo docker build . -t sid/sshpiper --build-arg --build-arg 1.97s user 1.61s system 0% cpu 34:01.94 total
https://github.com/tg123/sshpiper/actions/runs/2490194773/attempts/2
cancel after 1h
omg, i should trim dependencies
Congrats.
OMG took 3h to finish
Thanks see https://hub.docker.com/r/farmer1992/sshpiperd/tags