From owner-freebsd-questions@freebsd.org Fri Dec 6 14:30:22 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 441011CD4F2 for ; Fri, 6 Dec 2019 14:30:22 +0000 (UTC) (envelope-from freebsd-lists-5@thismonkey.com) Received: from mail-01.thismonkey.com (mail-01.thismonkey.com [IPv6:2406:3400:35e:6602::a01:232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thismonkey.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Tw3d3Vpnz4TR0 for ; Fri, 6 Dec 2019 14:30:20 +0000 (UTC) (envelope-from freebsd-lists-5@thismonkey.com) X-TM-Via-MX: mail-01.thismonkey.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thismonkey.com; s=dkim; t=1575642617; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=aA4UoMC9j5jGSylPusNUTrZIbMUXNB+GSru4s75/BXA=; b=V12LwA7W52vS9YYJzbfAR2Ecb0u2NViYT4DVjLtdftVYqbq4MiPWJaHpgH1sRxM7V0VhK4 phEf1FGowkCYHaZk8Mdo0R9l0s3dZ2ojXKTas0xATLWQA78tN/0U8Fm+6GIlrcdC2mJX2W yZmOcx5W//FVHwAnrVTsR0GfDZL512Q= Received: from utility-01.thismonkey.com (utility-01.thismonkey.com [IPv6:2406:3400:35e:6601:0:0:a01:120]) by mail-01.thismonkey.com (8.15.2/8.15.2) with ESMTPS id xB6EUFbj014932 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 7 Dec 2019 01:30:17 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Received: from utility-01.thismonkey.com (localhost [127.0.0.1]) by utility-01.thismonkey.com (8.15.2/8.15.2) with ESMTP id xB6EUF4H099104 for ; Sat, 7 Dec 2019 01:30:15 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Received: (from root@localhost) by utility-01.thismonkey.com (8.15.2/8.15.2/Submit) id xB6EUEJH099103 for freebsd-questions@freebsd.org; Sat, 7 Dec 2019 01:30:14 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Date: Sat, 7 Dec 2019 01:30:14 +1100 From: Scott Aitken To: freebsd-questions@freebsd.org Subject: Cross-compiling with go for arm on amd64. Possible? Message-ID: <20191206143014.GB95975@thismonkey.com> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) X-Virus-Scanned: clamav-milter 0.101.4 at mail-01.thismonkey.com X-Virus-Status: Clean X-Greylist: inspected by milter-greylist-4.6.2 (mail-01.thismonkey.com [IPv6:2406:3400:35e:6602:0:0:a01:232]); Sat, 07 Dec 2019 01:30:17 +1100 (EST) for IP:'2406:3400:35e:6601::a01:120' DOMAIN:'utility-01.thismonkey.com' HELO:'utility-01.thismonkey.com' FROM:'freebsd-lists-5@thismonkey.com' RCPT:'' SPF:' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mail-01.thismonkey.com [IPv6:2406:3400:35e:6602:0:0:a01:232]); Sat, 07 Dec 2019 01:30:17 +1100 (EST) X-Rspamd-Queue-Id: 47Tw3d3Vpnz4TR0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=thismonkey.com header.s=dkim header.b=V12LwA7W; dmarc=pass (policy=none) header.from=thismonkey.com; spf=pass (mx1.freebsd.org: domain of freebsd-lists-5@thismonkey.com designates 2406:3400:35e:6602::a01:232 as permitted sender) smtp.mailfrom=freebsd-lists-5@thismonkey.com X-Spamd-Result: default: False [-0.95 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.914,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; 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(-0.85)[-0.853,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[thismonkey.com:~]; DMARC_POLICY_ALLOW(-0.50)[thismonkey.com,none]; R_DKIM_PERMFAIL(0.00)[thismonkey.com:s=dkim]; IP_SCORE(0.62)[asn: 10143(3.10), country: AU(0.01)]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:10143, ipnet:2406:3400:300::/40, country:AU]; MID_RHS_MATCH_FROM(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 14:30:22 -0000 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? Thanks, Scott