Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2019 16:38:07 -0500
From:      Dmitri Goutnik <dmgk@freebsd.org>
To:        freebsd-arm@freebsd.org
Subject:   Re: Building rclone on aarch64
Message-ID:  <20191213213807.GB31132@xombo.localdomain>
In-Reply-To: <CAM9he-VNQAyepvqnWVDLurVfbf-gguG7n5Dzp9P-FTY9FunuFw@mail.gmail.com>
References:  <CAM9he-VNQAyepvqnWVDLurVfbf-gguG7n5Dzp9P-FTY9FunuFw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"

-- 
Dmitri Goutnik
dg@syrec.org / dmgk@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191213213807.GB31132>