From owner-freebsd-questions@freebsd.org Mon Dec 9 14:34:46 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 6E49A1D8254 for ; Mon, 9 Dec 2019 14:34:46 +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 47Wm1D64skz3CKh for ; Mon, 9 Dec 2019 14:34:39 +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=1575902060; 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:in-reply-to:references:references; bh=vhUZ0GKLZvSJwMUiR/bMXvTDLVKvQsGDiIczfMnW8Zs=; b=nYb2TJFCFjxrADXzxrAqp/pPInAVNxB6cMxR6Yvs7K4LGccXUtxt4/zLLgJZbnfm0C57Pt hLUr22z33waSqRl+BQ5htSsuzMsrHC+439eyK+BrPxXLw5DhrHBcJPbubpfik0bzC3OKnP Ldxijin5yj9gBlPdCjxYW8F2wraHfJQ= 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 xB9EYGOB074871 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 10 Dec 2019 01:34:19 +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 xB9EYGZx030372 for ; Tue, 10 Dec 2019 01:34:16 +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 xB9EYFP9030346 for freebsd-questions@freebsd.org; Tue, 10 Dec 2019 01:34:15 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Date: Tue, 10 Dec 2019 01:34:15 +1100 From: Scott Aitken To: freebsd-questions@freebsd.org Subject: Re: freebsd-questions Digest, Vol 809, Issue 1 Message-ID: <20191209143415.GA22252@thismonkey.com> Mail-Followup-To: freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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]); Tue, 10 Dec 2019 01:34:23 +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]); Tue, 10 Dec 2019 01:34:23 +1100 (EST) X-Rspamd-Queue-Id: 47Wm1D64skz3CKh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=thismonkey.com header.s=dkim header.b=nYb2TJFC; 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 [-2.17 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; 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(-0.98)[-0.982,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(0.60)[asn: 10143(2.99), country: AU(0.01)]; DKIM_TRACE(0.00)[thismonkey.com:~]; DMARC_POLICY_ALLOW(-0.50)[thismonkey.com,none]; R_DKIM_PERMFAIL(0.00)[thismonkey.com:s=dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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: Mon, 09 Dec 2019 14:34:46 -0000 > Scott Aitken writes: > > >> 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 > >> > > Hi Carl, > > > > I had no luck as I said. I killed every daemon I could and simply saw the > > memory in top approach zero after about 3 minutes into the build, and then > > the core dump. > > > > Other than OS and compiler options (of which I'm using the default) I can't > > think of why you had success whereas I didn't. > > > > This is my dmesg - are you using the same platform? > > > > FreeBSD 12.0-RELEASE r341666 GENERIC arm > > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) > > VT: init without driver. > > CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) > > CPU Features: > > Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7, > > PXN, LPAE, Coherent Walk > > Optional instructions: > > SDIV/UDIV, UMULL, SMULL, SIMD(ext) > > LoUU:2 LoC:3 LoUIS:2 > > Cache level 1: > > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > > 32KB/32B 2-way instruction cache Read-Alloc > > Cache level 2: > > 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > > real memory = 0 (0 MB) > > avail memory = 957149184 (912 MB) > > No PSCI/SMCCC call function found > > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > > I am running 12.1-RELEASE instead of the 12.0-RELEASE that you are > running, so that used LLVM 8.0.1 instead of LLVM 6.0.1, but otherwise my > dmesg is the same. I had actually used pkg to install go14 instead of > building it, and my understanding is that go builds using go14. The > other possibility I can think of is that maybe you are using -j4 or > similar with make, but I didn't. You might want to try an explicit -j1 > when building go to see if that works. > > I just realized that I had about 1.8GB of swap, so you might need to > setup a swap file or partition. I doubt that I used anything close to > that 1.8GB, but I never looked to see how much. > > I hope that helps. > -- > Carl Johnson carlj@peak.org Unfortunately I'm using an SD image from the FreeBSD website which doesn't have a swap partition, and then chews up any free space with 'growfs' on first boot. (Something to remember for next time - add swap before growfs runs). So I don't have any swap. I had forgotten about that when I first posted. (I could plug in a USB stick for swap). Still if anyone has had success in cross-compiling in Go for arm I'd I'd love to know. Scott