From owner-freebsd-ppc@freebsd.org Tue Dec 31 19:48:17 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 91FE41DC366 for ; Tue, 31 Dec 2019 19:48:17 +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 47nPww41T5z4cpX for ; Tue, 31 Dec 2019 19:48:16 +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 xBVJm9qM067989 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 31 Dec 2019 11:48:09 -0800 (PST) (envelope-from cam@neo-zeon.de) Subject: Re: Building for ELFv2 Cc: FreeBSD PowerPC ML References: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de> <7c9e00c8-17a1-bc20-7c52-2dc87069fca3@neo-zeon.de> <520F197C-DE4D-4C1E-8EFE-71ABDC6148CF@yahoo.com> From: Cameron Berkenpas Message-ID: Date: Tue, 31 Dec 2019 11:48:09 -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: <520F197C-DE4D-4C1E-8EFE-71ABDC6148CF@yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47nPww41T5z4cpX 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.53 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,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-ppc@freebsd.org]; DMARC_NA(0.00)[neo-zeon.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; IP_SCORE(-2.23)[ip: (-8.63), ipnet: 96.64.0.0/11(-1.89), asn: 7922(-0.59), country: US(-0.05)]; TO_DN_ALL(0.00)[]; MISSING_TO(2.00)[]; 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: Tue, 31 Dec 2019 19:48:17 -0000 Has anyone else had this problem building for ELFv2? What is the correct approach to get this to build? On 12/29/19 9:07 PM, Mark Millard wrote: > > On 2019-Dec-29, at 17:38, Cameron Berkenpas wrote: > >> 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, > One thing that I've noticed is that while > devel/llvm90 has an option to enable ELFv2 > as the default abi for powerpc64, > devel/llvm80 does not have such --and may > well not have all the updates required in > order to work well for generating ELFv2 > materials for all I know. > > Some ports are tied to llvm80 (not tracking > the default if set later). Thus, if such a > port is important to one's context, moving > to an ELFv2 context could be a problem for > now. > > (I'm still dealing with building various > ways. I've not yet tried installation or > operation of an ELFv2 context, or an official > system-clang based context for 32-bit > powerpc.) > > > Older material (because of some earlier > top-posting): > >> 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) > >