Building rclone on aarch64
Dmitri Goutnik
dmgk at freebsd.org
Fri Dec 13 21:38:11 UTC 2019
Hi,
You're probably running out of memory. I'm able to build lang/go-devel and
most Go ports (those that do build on arm64) with an additional 2G swap.
But in case of net/rsync, adding swap won't help much because this port is
currently broken on arm64 [1,2]. Support for freebsd/arm64 is not yet
officially released by the Go Project (it will be, in go1.14 which is due in
Feb 2020) and many apps still have older dependencies that do not build on
freebsd/arm64.
Looking at the rclone build log, its vendor/golang.org/x/sys likely needs to
be updated to at least 33540a1f6037 [3]. This can be done manually for one-off
build, but the port will probably stay broken until upstream updates vendored
dependencies.
Cross-compilation will also work with go built from the master branch.
[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242312
[2] http://thunderx1.nyi.freebsd.org/data/head-arm64-default/p518178_s355024/logs/errors/rclone-1.49.4_1.log
[3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242312#c2
On 19-12-13 15:16:05, Brian Bostwick wrote:
> Hi, I am trying to compile rclone on a RPI 3 B+ via ports because a bin
> does not exist on this platform, which looks normal as of now via rclone's
> website as they too don't provide one.
>
> My error:
>
> Killed
> *** Error code 137
>
> Stop.
> make[1]: stopped in /usr/ports/lang/go-devel
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/net/rclone
> root at generic:/usr/ports/net/rclone # go build cmd/compile/internal/ssa:
> /usr/ports/lang/go-devel/work/go-498eaee461/pkg/tool/freebsd_arm64/compile:
> signal: killed
>
> Pretty generic, not sure where I can find more detailed information on why
> it failed.
>
> Besides this, is it possible to run 32 bit arm bins on aarch64? I really
> would like to use this program for syncing some things to the cloud. I
> tried myself, but got an ELF error.
>
> Thank you for your time!
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
--
Dmitri Goutnik
dg at syrec.org / dmgk at FreeBSD.org
More information about the freebsd-arm
mailing list