From owner-freebsd-ppc@freebsd.org Mon Dec 30 01:38:32 2019 Return-Path: Delivered-To: freebsd-ppc@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 42BA11D0F3A for ; Mon, 30 Dec 2019 01:38:32 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from neo-zeon.de (neo-zeon.de [96.90.244.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.neo-zeon.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mKnz2rMHz4Mnh for ; Mon, 30 Dec 2019 01:38:31 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from [192.168.0.55] (ukyo.nerv.lan [192.168.0.55]) (authenticated bits=0) by neo-zeon.de (8.15.2/8.15.2) with ESMTPSA id xBU1cNur001616 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 29 Dec 2019 17:38:23 -0800 (PST) (envelope-from cam@neo-zeon.de) Subject: Re: Building for ELFv2 To: Mark Millard Cc: FreeBSD PowerPC ML References: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de> From: Cameron Berkenpas Message-ID: <7c9e00c8-17a1-bc20-7c52-2dc87069fca3@neo-zeon.de> Date: Sun, 29 Dec 2019 17:38:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47mKnz2rMHz4Mnh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cam@neo-zeon.de designates 96.90.244.226 as permitted sender) smtp.mailfrom=cam@neo-zeon.de X-Spamd-Result: default: False [-2.79 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[neo-zeon.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-0.50)[ipnet: 96.64.0.0/11(-1.86), asn: 7922(-0.56), country: US(-0.05)]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 01:38:32 -0000 I'm building on the system I wish to update. The system itself is 13.0-CURRENT (r356092) and based on gcc 4.2.1. I was going to initially try a live update, but I wasn't sure how successful that would be (but this is a VM so I'd be able to rollback without difficulty). If that didn't work out, I was going to try and create some bootable media and install a new instance from that. I have currently allocated 32GB of memory and there appears to be about 3G of swap and 32 threads. The physical host is a Talos II (so POWER9) running Linux/KVM/libvirt. Thanks, On 12/28/19 6:39 PM, Mark Millard wrote: > > On 2019-Dec-28, at 15:28, Cameron Berkenpas wrote: > >> Hello, >> >> How can one build FreeBSD 13.0-CURRENT for ELFv2 support? >> >> I've installed xtoolchain-llvm90, and I run: >> CROSS_TOOLCHAIN=llvm90 make buildenv >> >> From here buildworld fails pretty early on with: >> /usr/src/sys/contrib/libnv/nvpair.c:33:10: fatal error: 'sys/cdefs.h' file not found >> >> I can add "-I/usr/include" and so on to /etc/src.conf to hack around this, it just goes a bit further and finds other headers missing. >> >> As far as I can tell, $SYSROOT (/usr/obj/usr/src/powerpc.powerpc64/tmp) isn't being properly setup properly which is resulting in missing headers. >> >> I've done some searching and haven't really found anything too helpful. But perhaps I just don't know what to look for. >> >> Thanks! >> > You may want to specify what type of context(s) you > can try to bootstrap into ELFv2 from. For example: > cross-build? self-hosted only? system version starting > from on the machine doing the build? gcc 4.2.1 based > starting point? single boot media vs. able to have > an old context produce separate/new boot media? > the amount of RAM and swap/page space? (You may be > able to come up with more things to identify that > might contribute to how to progress.) > > I'm working towards updating, but I'll likely be > cross building and producing new media from a > bootable backup of the old media. (Helps avoid > potential live-update issues.) So what I end > up doing may well not match what you would do. > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > >