From owner-freebsd-toolchain@freebsd.org Tue Nov 8 04:36:17 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5AED6C35DBF for ; Tue, 8 Nov 2016 04:36:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-55.reflexion.net [208.70.210.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08267103D for ; Tue, 8 Nov 2016 04:36:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 13500 invoked from network); 8 Nov 2016 04:36:57 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 8 Nov 2016 04:36:57 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Mon, 07 Nov 2016 23:36:03 -0500 (EST) Received: (qmail 12026 invoked from network); 8 Nov 2016 04:36:03 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 8 Nov 2016 04:36:03 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 18674EC7888; Mon, 7 Nov 2016 20:35:58 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)? From: Mark Millard In-Reply-To: <20161107211641.GI34174@corpmail.liquidneon.com> Date: Mon, 7 Nov 2016 20:35:57 -0800 Cc: freebsd-arm , FreeBSD-STABLE Mailing List , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <26573287-17D4-4B1C-A6A0-79B9DD03A18B@dsl-only.net> References: <65D8A8E5-07F0-4E0F-A412-C2CDE2D9982A@dsl-only.net> <20161107211641.GI34174@corpmail.liquidneon.com> To: Brad Davis , FreeBSD Toolchain X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 04:36:17 -0000 On 2016-Nov-7, at 1:16 PM, Brad Davis wrote: > On Mon, Nov 07, 2016 at 12:19:24PM -0800, Mark Millard wrote: >> It looks like http://pkg.freebsd.org is still back as of head being = 11-CURRENT: http://pkg.freebsd.org shows only >=20 > Correct. I wrote up some details on how to use the 11 packages here: >=20 > http://www.raspbsd.org/raspberrypi.html >=20 >=20 > Regards, > Brad Davis Thanks. That helped me get to the next issue to figure out. I eventually found that https://wiki.freebsd.org/arm64/rpi3 has a = "Package Repo" section with the alternate ABI information for pkg and = also how to get port builds going (putting an ld in place) --as if the = material was RPI3 specific. https://wiki.freebsd.org/arm64/rpi3 says: > There is no package repo for 12-CURRENT, but the package repo for 11 = can be used on 12-CURRENT by telling pkg to use the FreeBSD 11 aarch64 = ABI:=20 >=20 > env ABI=3DFreeBSD:11:aarch64 pkg bootstrap >=20 > Once pkg is bootstrapped, you can add this to /usr/local/etc/pkg.conf:=20= >=20 > ABI =3D "FreeBSD:11:aarch64"; >=20 > If you want to build your own ports or packages, you'll need to = install the aarch64-binutils package and link /usr/bin/ld to = /usr/local/bin/aarch64-freebsd-ld:=20 >=20 > # pkg install aarch64-binutils > # ln /usr/local/bin/aarch64-freebsd-ld /usr/bin/ld >=20 > Note that if you're building directly on the RPI3, you will definitely = want to use either USB storage or NFS. Building on the sdcard will = likely wear the sdcard out.=20 (I have the root filesystem on a USB SSD.) My context is a Pine64+ 2GB --which https://wiki.freebsd.org/arm64 does = not even mention as covered by TARGET_ARCH=3Daarch64 . But crochet is = set up for pine64's and uses TARGET_ARCH=3Daarch64 style builds. =3D=3D=3D Mark Millard markmi at dsl-only.net