-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix arm rclone build #68
Conversation
The problem does not occur in your drone build before merge because of this Lines 19 to 22 in 641778f
|
@escoand Could you please merge the latest master? I adjusted the drone configuration so it will try to build images for PRs like this as well. Then we can see if everything is working. |
OK, build seems to work but there is no way to pull this containers. Not a problem but something I recognized. |
Okay, I thought about this and changed it so that now an image is built for every PR. Just merge master again and we can try it out directly ;) |
Hmm.. This seems to be broken somehow ;-/ $ docker run -it --rm --entrypoint sh mazzolino/restic-test:pr-68-arm64
/ # rclone
Segmentation fault (core dumped) Same with the arm32 image ( |
I can verify the problem on arm as well, but... $ docker run -it --rm --entrypoint rclone mazzolino/restic-test:pr-68-arm version
standard_init_linux.go:207: exec user process caused "exec format error"
$ docker build -qt mytest https://github.com/escoand/resticker.git#patch-1 && docker run -it --rm --entrypoint rclone mytest version
rclone v1.53.3-DEV
- os/arch: linux/arm
- go version: go 1.15.6 I've compared the previous build for arm https://ci.strahlungsfrei.de/djmaze/resticker/141/2/2
with the last not working build https://ci.strahlungsfrei.de/djmaze/resticker/160/2/2:
As you can see the |
For arm64 I can't find a problem, but I have no hardware to test the build in general. |
Well, it is a bit embarassing, but the drone configuration was still not correct. I fixed it in #71. Could you please merge master again? Then the arm build should at least be generally working. |
I just built rclone manually inside the docker image on my arm64 machine. I still got the segfault when compiling with However, if I do a static build, it works! Maybe we should just change it? CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' . |
Both arm and arm64 work for me now. Great, thanks for your patience! :) |
Also thanks to you! |
Fix arm rclone build
Fix the rclone build on arm.
Reference: nodejs/node#4212 (comment)