Closed aaaaargZombies closed 2 years ago
Seems to be related to this bug
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1928075
I changed to debian buster and now both arm/v7 and arm64 fail on go get
Thank you for opening this issue. I will check.
@supcik Thanks for your response, I think I have made some progress.
It looks like I had a slightly older version of qemu arm64 registered with docker, i needed to get the latest from here
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
I also needed to add --load
to the build command to make use of the image.
docker buildx build --platform linux/arm64 --tag ws2811-builder --file docker/app-builder/Dockerfile --load .
which now takes me to this point
> cd examples/swiss
> APP="swiss"
> docker run --rm -v "$PWD":/usr/src/$APP --platform linux/arm64 \ -w /usr/src/$APP ws2811-builder:latest go build -o "$APP-arm64" -v
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
Just following up in case someone else is in a similar situation.
I resolved the issue by running
go mod init example.com/m
go mod tidy
Before running
docker run --rm -v "$PWD":/usr/src/$APP --platform linux/arm64 \\n -w /usr/src/$APP ws2811-builder:latest go build -o "$APP-arm64" -v\n
scp swiss-arm64 ubuntu@pi4:ledTest/go
Maybe this is obvious to most but I'e not really used Go so followed the readme
to the letter.
I'm trying to compile for a rpi 4 but I'm getting stuck building the docker image.
When running
$docker buildx build --platform linux/arm64 --tag ws2811-builder --file docker/app-builder/Dockerfile .
I get the following.It seems to crash when trying any
apt-get install
so I thought that might be the issue but when I tried building forarm/v7
it makes it past this stage and I get the following.So perhaps qemu (segmentation fault) is the real issue?
Any suggestions about how to get it working would be greatly appreciated.