From owner-freebsd-arm@freebsd.org Fri Dec 13 21:38:11 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 502321D78E5 for ; Fri, 13 Dec 2019 21:38:11 +0000 (UTC) (envelope-from dmgk@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47ZPD31QpLz4XjF for ; Fri, 13 Dec 2019 21:38:11 +0000 (UTC) (envelope-from dmgk@freebsd.org) Received: from mail.syrec.org (mail.syrec.org [165.227.215.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: dmgk/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 25B392358 for ; Fri, 13 Dec 2019 21:38:11 +0000 (UTC) (envelope-from dmgk@freebsd.org) Received: from xombo.localdomain (unknown [200.55.237.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.syrec.org (Postfix) with ESMTPSA id 402A828A20 for ; Fri, 13 Dec 2019 16:38:10 -0500 (-05) Date: Fri, 13 Dec 2019 16:38:07 -0500 From: Dmitri Goutnik To: freebsd-arm@freebsd.org Subject: Re: Building rclone on aarch64 Message-ID: <20191213213807.GB31132@xombo.localdomain> Mail-Followup-To: freebsd-arm@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2019 21:38:11 -0000 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