From owner-freebsd-questions@freebsd.org Fri Dec 6 17:06:06 2019 Return-Path: Delivered-To: freebsd-questions@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 4C42A1B0B45 for ; Fri, 6 Dec 2019 17:06:06 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter02.peak.org (filter02.peak.org [207.55.16.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47TzWK34vBz4dP1 for ; Fri, 6 Dec 2019 17:06:04 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta01.peak.org ([207.55.16.111]) by filter02.peak.org ({c0e096ac-ab76-477d-8a9d-eab3e47a6d30}) via TCP (outbound) with ESMTPS id 20191206170558727_0000 for ; Fri, 06 Dec 2019 09:05:58 -0800 X-RC-FROM: X-RC-RCPT: Received: from localhost (localhost [127.0.0.1]) by zmail-mta01.peak.org (Postfix) with ESMTP id 66CDC985BB for ; Fri, 6 Dec 2019 09:05:58 -0800 (PST) Received: from zmail-mta01.peak.org ([127.0.0.1]) by localhost (zmail-mta01.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YWJvNTF6ZYpR for ; Fri, 6 Dec 2019 09:05:58 -0800 (PST) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta01.peak.org (Postfix) with ESMTP id 39F9898193 for ; Fri, 6 Dec 2019 09:05:58 -0800 (PST) Received: from localhost.localnet ([127.0.0.1] helo=elm.localnet) by elm.localnet with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1idH3F-000Koq-A5 for freebsd-questions@freebsd.org; Fri, 06 Dec 2019 09:05:57 -0800 Received: (from carlj@localhost) by elm.localnet (8.15.2/8.15.2/Submit) id xB6H5u4N080031; Fri, 6 Dec 2019 09:05:56 -0800 (PST) (envelope-from carlj) From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: Cross-compiling with go for arm on amd64. Possible? References: <20191206143014.GB95975@thismonkey.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 06 Dec 2019 09:05:56 -0800 In-Reply-To: <20191206143014.GB95975@thismonkey.com> (Scott Aitken's message of "Sat, 7 Dec 2019 01:30:14 +1100") Message-ID: <86d0d1crkb.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-Rspamd-Queue-Id: 47TzWK34vBz4dP1 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 207.55.16.93 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-1.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_TLS_LAST(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; IP_SCORE(-0.00)[asn: 13868(0.03), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[93.16.55.207.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13868, ipnet:207.55.0.0/17, country:US]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2019 17:06:06 -0000 Scott Aitken writes: > Hi, > > So I wanted to install dns/dnscrypt-proxy2 on my Raspberry Pi running FreeBSD > 12.0-RELEASE r341666 GENERIC arm. > > There's no package version, so I tried compiling. Unfortunately that didn't > work as the Go dependency ran out of RAM compiling. And there's no package > for Go... > > So I fired up a VM and installed ports-mgmt/poudriere. Set it all up and > added dns/dnscrypt-proxy2 to my shopping list... > > Unfortunately it skipped lang/go: > > Code: > [00:01:14] [01] [00:00:00] Building lang/go | go-1.13.4,1 > [00:01:16] [01] [00:00:02] Finished lang/go | go-1.13.4,1: Ignored: fails to > build with qemu-user-static > [00:01:16] [01] [00:00:02] Skipping dns/dnscrypt-proxy2 | > dnscrypt-proxy2-2.0.31_1: Dependent port lang/go | go-1.13.4,1 ignored > > Apparently Go 1.3 won't compile under the emulator (see PR 221297 for some > background. > > Is it possible for go to cross-compile for arm on amd64? I don't know about cross-compiling, but I have built go from source on a Raspberry Pi 2. In my case I was running 12.1-RELEASE, and I built go-1.13.1,1 about 2 weeks ago. My typescript file doesn't show any errors, and time showed a 28 minute build time and another 15 minutes to create a binary package. That was after installing the go14 binary package. -- Carl Johnson carlj@peak.org