From owner-freebsd-ppc@freebsd.org Sun Dec 29 02:39:27 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 73A731D12E7 for ; Sun, 29 Dec 2019 02:39:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47llBk1xqDz41Yn for ; Sun, 29 Dec 2019 02:39:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 3fx2mXcVM1nlk96JVHQbZ12WAIgW6UDP8cd1VCyRDY1_BB3nTebIHtLc_ISVz6Z ubQj8qHWov9a9SQ4nQOt7oT91xR9HcttpJ6Nxzb5qG4e_4yyUv6g3IpQHuqkCtO9x5z75.9CPEMi B60IkTqh5hCIwVwS2a9qKKU4pS36gR.3Cmx4DsVMnn61o3H1Mw8i7dWXPk.PjSLn2B.YtA8g5tbr oyzeHk6L14SJ73uhpvuZY0.UsT834q1ayPRqrDZjCHUyXxcA5luIavGPd0Kd2xzv2iQ9X7Mjyq8w nsNJ1Wxks5RJOjjMj2GwwJ97Xqk33LkHU2oIEqJ_WjfrcDxy8F.bllQMWWcNUik7kjejKaOhj5zC 0VQtbv7XK4A8FEZyTIL.RajkSAJM.oE_cly4nafdZDYlFsrnMIdjQ2QS60T1hQ9QDjXB79lc1QIc GlxcU_PgdVTIkORJIM5P.ZZXM4aa967y.79h4Zjoe0bBY8LMhhpd3vLBY5AAfXnLl0ytzaGPxPKv lkOcc0GHX0UaGw_3.2HOPSXUEap6q1GDbuhXXc5DjWxmK0k_Wz1Ei6Qo4qwbvwB_.lXsAhL3hYRL ZAhKHyedBWHx1WRlityKM_tOVtt0IMBND5zYpCSSf7apL6QDRkJt6JzHRWfSF4rXNGm8VCf471zf PDQ7SHWXiMrPcZDeqBQWN.lRS45.WFE41l.RvZLh_kTPUh8AsFSHpPjlE92cyFC1c0xFlLxggdRU ByEOQUduogNaGPT9uZ8b_ZJO27OMq8N7m4BwZ4ULWHHJDoXbe2x97_ptovdgvdsJ_LxFMSgXZeZk wokE9gqWRR0SmDF4jmrmQbPR1q.QgCaePtXascvS2mCA1cUO3FRewyHpSTrwiPyvWGRoJ9WWJKSC IZHq94bGEcVwYXll7wJftDtDyAw3JBm0i4.94rLuT0wzXe9cZYVwCK66q1upC7vthQgm.uU0TU_h PqJHOPMYqpccRC69.HkQiYb_FQzSOJCXElzvjV980o_9ckNh3K_jMjNpoOjY0vWPJFtWnql9EZXH dtBiroiZDN7htApNRh8Um1ibwOcU2cAXzEy3p5SduvszxX4PIYOlIJNCMTt_Z_gRmQugSuQne2Q9 JGMBY4Q1U1mHmPOlrt.hW_TkpmNENv86Ci_Q5pDeyImLH9DFtIk6WPOaJ700HeJU3jNLVQPWPI6s 3QZsUEwjVjH_mYNDE4cO648s558ERLwivc7qNV7PIswTszF0UTC2MNcQNIMV3QQQfZi7Yz8uIPL3 4YqJXXfQ6C9_M6Q8skT.LncTNBztvGELbZWPC63MuAT8lP.HcaYS3dTDXtDvSDX8PKw3nhNdr5XJ wlqw0kEO7lnfudm_EIHEIomFXwt4knlEmvi4UktcvmOqFWE7.MZTEkkIbDxO6hcC09TVbJku9Zw4 dc8kU7DBynJWVHpT7z2wA4nnit.qJNPy6ifxyYiI- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 02:39:22 +0000 Received: by smtp413.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1c11a764c687067e47be8767d3d0bd6f; Sun, 29 Dec 2019 02:39:18 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Building for ELFv2 From: Mark Millard In-Reply-To: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de> Date: Sat, 28 Dec 2019 18:39:17 -0800 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de> To: Cameron Berkenpas X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47llBk1xqDz41Yn X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.28 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.81)[-0.806,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.98)[-0.979,0]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[84.65.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (2.09), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] 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: Sun, 29 Dec 2019 02:39:27 -0000 On 2019-Dec-28, at 15:28, Cameron Berkenpas wrote: > Hello, >=20 > How can one build FreeBSD 13.0-CURRENT for ELFv2 support? >=20 > I've installed xtoolchain-llvm90, and I run: > CROSS_TOOLCHAIN=3Dllvm90 make buildenv >=20 > =46rom here buildworld fails pretty early on with: > /usr/src/sys/contrib/libnv/nvpair.c:33:10: fatal error: 'sys/cdefs.h' = file not found >=20 > 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. >=20 > 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. >=20 > I've done some searching and haven't really found anything too = helpful. But perhaps I just don't know what to look for. >=20 > Thanks! >=20 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. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)