From owner-freebsd-ppc@freebsd.org Sun Dec 29 00:21: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 208C71CCBA0 for ; Sun, 29 Dec 2019 00:21:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47lh7c06sRz3PbH for ; Sun, 29 Dec 2019 00:21:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id D80CB1DEBF; Sun, 29 Dec 2019 00:21:31 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id D55591DEBE for ; Sun, 29 Dec 2019 00:21:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47lh7b4ZNKz3PbC for ; Sun, 29 Dec 2019 00:21:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9874E925D for ; Sun, 29 Dec 2019 00:21:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBT0LVaZ073776 for ; Sun, 29 Dec 2019 00:21:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBT0LVwA073770 for powerpc@FreeBSD.org; Sun, 29 Dec 2019 00:21:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 239372] r350207 panic on ppc64 (G5Quad) in moea64_pvo_remove_from_page Date: Sun, 29 Dec 2019 00:21:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tuexen@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: powerpc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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 00:21:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239372 Michael Tuexen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tuexen@freebsd.org Resolution|--- |FIXED Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= 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) From owner-freebsd-ppc@freebsd.org Sun Dec 29 14:09:30 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 6B7061E0B7B for ; Sun, 29 Dec 2019 14:09:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47m2Vy2Gt0z4f1j for ; Sun, 29 Dec 2019 14:09:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 2AB8A816B; Sun, 29 Dec 2019 14:09:30 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 27D96816A for ; Sun, 29 Dec 2019 14:09:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47m2Vx6KnQz4f1d for ; Sun, 29 Dec 2019 14:09:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D052F1A93A for ; Sun, 29 Dec 2019 14:09:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBTE9TUM046024 for ; Sun, 29 Dec 2019 14:09:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBTE9TOL046023 for powerpc@FreeBSD.org; Sun, 29 Dec 2019 14:09:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242742] [PowerPC] www/qt5-webengine fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: lib/qt5/bin/qwebengine_convert_dict:No such file or directory Date: Sun, 29 Dec 2019 14:09:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: canardo909@gmx.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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 14:09:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242742 --- Comment #3 from canardo --- (In reply to Piotr Kubaj from comment #2) O, I understand. I guess it would be a nice improvement to display a message like "not avail= able for powerpc but only for ..." (I've already seen such message, but I don't remember the exact sentence). Should/could this ticket be turned into an improvement request ? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sun Dec 29 17:44: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 91B711E531F for ; Sun, 29 Dec 2019 17:44:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47m7H43QM1z3PpW for ; Sun, 29 Dec 2019 17:44:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 6EDABC141; Sun, 29 Dec 2019 17:44:32 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 62135C140 for ; Sun, 29 Dec 2019 17:44:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47m7H419vxz3PpV for ; Sun, 29 Dec 2019 17:44:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23E381D11B for ; Sun, 29 Dec 2019 17:44:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBTHiWOh007711 for ; Sun, 29 Dec 2019 17:44:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBTHiW6n007707 for powerpc@FreeBSD.org; Sun, 29 Dec 2019 17:44:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242965] java/openjdk8: add bootstrap and fix compilation for powerpc64 elfv2 Date: Sun, 29 Dec 2019 17:44:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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 17:44:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242965 Bug ID: 242965 Summary: java/openjdk8: add bootstrap and fix compilation for powerpc64 elfv2 Product: Ports & Packages Version: Latest Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: pkubaj@FreeBSD.org CC: powerpc@FreeBSD.org CC: powerpc@FreeBSD.org Flags: maintainer-feedback?(java@FreeBSD.org) Assignee: java@FreeBSD.org Created attachment 210308 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210308&action= =3Dedit patch Original patch by Mikael Urankar. Bootstrap available at https://anongoth.pl/openjdk8-ppc64-r501298.tar.xz --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sun Dec 29 17:44:53 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 98C891E5396 for ; Sun, 29 Dec 2019 17:44:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47m7HT3dH2z3Ps3 for ; Sun, 29 Dec 2019 17:44:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 75E7FC18F; Sun, 29 Dec 2019 17:44:53 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 718FEC18E for ; Sun, 29 Dec 2019 17:44:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47m7HT1gHFz3Ps0 for ; Sun, 29 Dec 2019 17:44:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 342911D11D for ; Sun, 29 Dec 2019 17:44:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBTHirfJ008165 for ; Sun, 29 Dec 2019 17:44:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBTHirh6008164 for powerpc@FreeBSD.org; Sun, 29 Dec 2019 17:44:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242965] java/openjdk8: add bootstrap and fix compilation for powerpc64 elfv2 Date: Sun, 29 Dec 2019 17:44:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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 17:44:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242965 Piotr Kubaj changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |java@FreeBSD.org Attachment #210308| |maintainer-approval?(java@F Flags| |reeBSD.org) --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sun Dec 29 21:53:49 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 8C3AC1EB6AC for ; Sun, 29 Dec 2019 21:53:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (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 47mDph1P0wz49Fy for ; Sun, 29 Dec 2019 21:53:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: NuT6VIAVM1lkr0K..FNo7kSONnfOQXoG7Lwh13cY.WJuLxC.vq3rT6pnWwaRecR JwCF0WGv0BI00vmqLyu_Nbi2cofiQPsbEwZCm4jDHzxPNqsd9oKIoSFknx2WUBwUgc9sHqsmEzMF OsfJmYz0dX3qQSkLb.YGCy6N16IaIjhcm5_kui9OxTRi3j8vawT1Aw6dEJiVoetxFlS9IWJRvEjR q2vmzs1pmcZoZd8Rx39nHkNwmCht7SkHnOUGDhX2gveitHmswkOfY3b.PP0L7aUFswDi9m6xpOVP zI.tVm8XoA._4uG5G8mJRilP3mFIvMznEZzSrr2yDyGJZZMBzrFBq4.tJSoCIaTiXu3GXOEN_cnn X5hxBFrtlFvjdPklhZUNYylYLifgHueqiatl32xwcGcTrE9rRHwv7I0ub4LZQpTpJZm5xHNK0Yd2 xXZS4pX4GLXGFIZLnTLlukQjhLvy.9vaNk7dCyXBa7Z4OM2Gn2Bcwt12RmXIoiSLL5whvZlkOcvs Owqs1dwKdwHCYzvM3ZPh2J7myyK.qDD5FI8mmsLy5EgZyw1arsfJj6r5yBmtlZznqc694uxdw3hu 3kESEQCfINpOSeA84V95ZQdpO31Sc1aB8zSwM35ZyMHcW6jd_TpxEOa_uSU0D9qWSVzKKnKFkVz3 r.hTiFkNlCL.lAIW_z0sqMjGke.9u0b7RBNKsmixMe_tGccD.QbenVKKTaVG1KYMPrVFm7chq2qb mKRxYKZb0hL37uuVojgaeYGKYXTxrRhrNsKU803kz1F63HBLMUlkjzSxaqoXoqs60p9wGLFX3N1A pzGvKWVW7EtsccGSVinI8IdxbBqIC1hHQiyUXlYNNIO0uj8sktofuqyIVQoLuYHw2RPq1xsWkqE3 wgrPf8Hr7I_UxlkQ9YzCZzmtYa20m5YoB.yiEWRsFTV7qGT7PdcMc510xCSg7KT4TjVvDPYB6hqK b1GK9MhE1MIFI6MxUOkARn3HLJO3AmJYrYXbao0xxqCGhrl6nnVQ9fhAszFi5hXTSZMRn3ObDJN4 HBfpyX5vW2XA9IAUgiuMbXNESuejuxb7NfNg2jznCre9VksizYrKuaoCQazjmsQ4im4AK0QHbwUM uOXaRf.grOvJJQRu8gcT1iE8RjTcajTBUGFg_Ol8UF77RfS3.KVEjNUd5Bzz.M3qwpuH4hTqPxNe YKaIUjTxxfcQpSpM983I.YjXQhjYAFWngvkb.4GRh11omhR5fuzGvxRFlElkVc6_CfCbaB9Wqn9o Z1IQnMvjqWsMx3qWyKTP59DZvKcpIK8PrP461canjYiCnKEw.oqQqKZaXl13SOGqRxi_xmYx8hVK f20Y_oEjhZsOKZYaAkx2GIV3VA9I4YqDnDNI1iaoZ4FkB2gReVgGbXq4VN2ReXSRFFcwposdkleR qgay3zWsOAbyIZeWH2kHewD3wQwjAKls1mQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 21:53:45 +0000 Received: by smtp402.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID fc63e35a929149add8784bf4660eb341; Sun, 29 Dec 2019 21:53:44 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc Message-Id: <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> Date: Sun, 29 Dec 2019 13:53:42 -0800 To: FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> X-Rspamd-Queue-Id: 47mDph1P0wz49Fy X-Spamd-Bar: - X-Spamd-Result: default: False [-1.77 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.40)[-0.399,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.87)[-0.867,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (5.15), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[205.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[205.69.137.98.rep.mailspike.net : 127.0.0.17]; 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: Sun, 29 Dec 2019 21:53:49 -0000 The kernel here is from expanding: = https://artifact.ci.freebsd.org/snapshot/head/r356109/powerpc/powerpc/kern= el*.txz (So: not my kernel build.) This is, of course, a debug kernel. World is my build (via system-clang, not gcc 4.2.1) Hand copied from an image of the crash information (no input possible at the db> prompt) . . . . . . Root mount waiting for: CAM usbus0 usbus1 ugen1.2: at usbus1 uhub4 on uhub0 uhub4: on ubus1 Memory modified after free 0x1e4d180(28) val=3D1e5a9c0 0 0x1e4d190 panic: Most recently used by bus-sc cpuid =3D 0 time =3D 2 KDB: stack backtrace: 0xd2630390: at kdb_backtrace+0x5c 0xd2630400: at vpanic+0x1f8 0xd2630470: at panic+0x68 0xd26304c0: at mtrash_ctor+0x9c 0xd26304e0: at item_ctor+0xb4 0xd2630510: at uma_zalloc_arg+0x1b4 0xd2630540: at malloc+0xfc 0xd2630580: at alloc_bounce_pages+0x7c 0xd26305c0: at bus_dmamap_create+0x1e8 0xd26305f0: at bus_dmamem_alloc+0x64 0xd2630620: at usb_pc_alloc_mem+0xbc 0xd2630660: at usbd_transfer_setup_sub_malloc+0x28c 0xd26306c0: at ohci_xfer_setup+0x1e4 0xd2630720: at usbd_trasnfer_setup+0x494 0xd26307a0: at usbd_ctrl_trasnfer_setup+0x184 0xd26307f0: at usbd_do_request_flags+0x300 0xd2630870: at usbd_req_set_address+0xdc 0xd26308b0: at usb_alloc_device+0x3cc 0xd2630940: at uhub_explore+0x678 0xd26309b0: at usb_bus_explore+0x128 0xd26309d0: at usb_process+0x128 0xd2630a10: at fork_exit+0xc0 0xd2630a40: at fork_trampoline+0xc KDB: enter: panic [ thread pid 15 tid 100040 ] Stopped at kdb_enter +0x70: addi r0,r0,0x0 db>=20 Unfortunately, I have no control at that point so this is all the information available about the PowerMac's state. I can report the that following sequences do boot (so far): boot -s then exit at the shell prompt boot -v (I've also seen a Rock64 Cortex-A53 board with boot crashes, where boot -v happened to boot, but only a personal non-debug kernel build was tried at the time.) The PowerMac is a 2-processor G4 model, with FW800. 2 GiBytes of RAM. Note: Historically I've experimented with system-clang and more modern gcc builds for 32-bit powerpc and powerpc64. The above is from me getting ready to jump over to the official system-clang context (and ELFv2 for powerpc64). I wanted to know some of the status of things that I'd see just before those changes so I'd have some clue what might be new vs. old when I switch over. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Sun Dec 29 22:05:08 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 703061EBED5; Sun, 29 Dec 2019 22:05:08 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mF3l3Dbgz4B17; Sun, 29 Dec 2019 22:05:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D60762605BE; Sun, 29 Dec 2019 23:04:58 +0100 (CET) Subject: Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc To: Mark Millard , FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> From: Hans Petter Selasky Message-ID: <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> Date: Sun, 29 Dec 2019 23:04:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47mF3l3Dbgz4B17 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.94 / 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)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.64)[ip: (-9.19), ipnet: 2a01:4f8::/29(-2.43), asn: 24940(-1.54), country: DE(-0.02)]; 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:24940, ipnet:2a01:4f8::/29, country:DE]; 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: Sun, 29 Dec 2019 22:05:08 -0000 On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote: > 0xd2630510: at uma_zalloc_arg+0x1b4 > 0xd2630540: at malloc+0xfc > 0xd2630580: at alloc_bounce_pages+0x7c > 0xd26305c0: at bus_dmamap_create+0x1e8 Do you know what drivers are using bounce pages? --HPS From owner-freebsd-ppc@freebsd.org Sun Dec 29 22:18:05 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 13CD71EC701 for ; Sun, 29 Dec 2019 22:18:05 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mFLh4k9gz4Btq for ; Sun, 29 Dec 2019 22:18:04 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1577657882; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=NEExqKe5LzZ6zs/DWyGL0uaMF6Ih7V878XjuCf7Ou2SyyIY+cfmKZicfEwwhhW09Z22yKUFox1mRK v+fOB++a+gbX+lgRA3t0JEY7uW/J3ZBaRuOY7oz/fLDy/gkr5IXhJyo3kfh7t65lp2dU8vCEhUY5RP HtKdMgT1Ni2q7c77+Meyrb56871x8vkkz4j8FNDqi5VDf5XG3llsy9Dfwet6nOwG7zxM2eBL/EkRSk fsE0FOeY+2GWx/kuT8oERehOb9jiZfOMBvI4J9DMtc6H+DzvWCB1TLrxh+N3KdV04Ni8mIRZjyqtJe v0irfoUngttYUhs6cEWGP0qwpnSkgLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=toCG9VxpbGq2eDSiy5Yj2NLeWr4rHpiQLyKUQALsdQ0=; b=mR0y9e6l2vZAwHu/tqjnye4QLn2Gi8IYiTuZVa+8PIazw5qmFdYU21zoR/9wFq6WQKohItJ15YBnk VDZO8UB9dFqSx2J1KmixQvwNxF+/RotiZoH6Ny6puF98BBYZb5yhpaoXqGUIhkCdUXL4TMFkme8V2B 08D/dFM6xxQOMQc6qwW4w+u8Rn12mwsg0WYRZyuEWG9BdFW6MbnDFx+N9xoeDt1KgLOnT4mXsiCL1z zNFKsp0g8qtiU+H+/47iODrfwA5fsFaXwWtepL/81OMPqvI/O+QRQEjNO200KxCKckBvUo29gvwRUv U8n48dj+Fq/W1MPDYG1Ek4LNdROekZQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=toCG9VxpbGq2eDSiy5Yj2NLeWr4rHpiQLyKUQALsdQ0=; b=TKQLbBEXFq5Vo+oYpOTYKwSoyScJBCaOvbeV4qRiFU7xJb6lIxNud4FpG0oS/1w3UPnqwwP80B1XW fU+9U/jk7KlZPlprKS6Z+Rbuxihcq6u2c+s+8/H0qLaLJ8S+5rxcuOjiJkVJJlrrG11xzqKFOLzxZN xBar5jzy12Mnf5Dfasn0nudCr2wvPL/we9QSRNDSHhGcR5GL096fdxaX+K9AZt7d3WyC64D9zKQTdB V/3hmOs0KM37PSUrRDBQf1wb82PFnTgkKgkwiSGNWUzqABUntRU0Vp95qVqAQdkMym6mlDXDRuiKZS yDaXTB9QvMsPQ2q7cRvaUe4NG9mrWCA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 12246c86-2a89-11ea-829f-79a40d15cccd X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 12246c86-2a89-11ea-829f-79a40d15cccd; Sun, 29 Dec 2019 22:18:01 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id xBTMHwdM098783; Sun, 29 Dec 2019 15:17:59 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc From: Ian Lepore To: Hans Petter Selasky , Mark Millard , FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML Date: Sun, 29 Dec 2019 15:17:58 -0700 In-Reply-To: <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47mFLh4k9gz4Btq X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.969,0]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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 22:18:05 -0000 On Sun, 2019-12-29 at 23:04 +0100, Hans Petter Selasky wrote: > On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote: > > 0xd2630510: at uma_zalloc_arg+0x1b4 > > 0xd2630540: at malloc+0xfc > > 0xd2630580: at alloc_bounce_pages+0x7c > > 0xd26305c0: at bus_dmamap_create+0x1e8 > > Do you know what drivers are using bounce pages? > > busdma isn't the culprit here. It was trying to allocate memory and the uma code found a block that was free and checked it before handing it out, and discovered that it had been modified after being freed. Before being freed, the memory was last used as the softc for some device (perhaps only during probing of a device that never attached). That device would most likely be the culprit (or a wild-pointer write hit that block). -- Ian From owner-freebsd-ppc@freebsd.org Sun Dec 29 22:38:30 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 927751ED014 for ; Sun, 29 Dec 2019 22:38:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (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 47mFpF3Z7Xz4Cyp for ; Sun, 29 Dec 2019 22:38:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: OtHDFYwVM1nw4x2hTs7fVbQ6U63BeCIVWSGrRh5_K8m.ue3qkGoYswLbZhsXeNL PIgdYI41NWvwlWRT78LcKxkz82gS66GpICVtKo5h_.JUAb_JpA0MaEHF8OPACyfoRo9Zuq2UHMSV 7VS_4E4w1HESherZ.KzRvekRhzlRb.rIAVL41lpqGnIB6gDVFTaas5Rav9TeOgXfB6eEQe6hvXJS 0J81MYF4W5mjOrXzd8ke8184RMxkufOMA.xeNYO4aHdXlDLhd_L7tfzU5dxPxszwN24V.bc0Tmp2 VnugUPQ4Cst2_Jg6jZBIuobPXvxsEFZ_NZbEjhp0Xu8QhTWzJ4Y_FO6_zh7XCcnPf8oWuQ6oaZ9g 2vOnBVmEJjgbe9W5QTWz4N.wn5aUL5DbOXmIVju.92lBTQ5yMPWuTX8pTev1R62XYvBu2M2rxkcv f7idn4U8YDu9up1hArqb40hNd9eYIhe0sKia5T0BXcSZ5OCriSetP48Y5RSXPQ7ceJycnZsIyBc8 ZpA02aLiEx.z7WCVSgN9QMe5VL9.hv0U0nm.DRfy5CnJbKNb5ViVlC0yh5DB_cMl35TQq7HkozvH 7bc1OA693vylfroiSPs36M4tPtmfsr6A5GWWqGjDARSOAJfcieJu1b8pwjQoFV6MSF_Wk7GhoSww YR.0JQquCMibEOZq_bhrz2YGKiMapcg9CCiObRhLsabpF5PSVa0PVJRbN7MuUkwM0QpqaVzhp0A2 yFEWlmmaakNwmunmB22eP3sRLzWWNQ84Pu1f_rx5nI3yqbAOkrK2VQg4qXFyVmYT3MLyEnm2C86Y rGOzbqLQFJXE.LCHPVjyFU0dVyDqaYVPDNvWShVlwSi0T6L5wIx8KnfxruFX_JYK4STiGbWr.Vq. 8tjF_Avv7A.repsTn8hMkxpLT4l98IVvbDMURsJX6mYh7rpMXhC86MhSw3.qRTg2cCctZxmzHAJe KHLR9jinvHm6CWGPlRD4ohLfOPXfYu5YWPAr71wiIHR5DgFQ9JJv2We7oh8RmDZUDpJ7.O97_e6Y gvpFJ7Sw40iZhxPPHjFF9a5HpQlWds4fCphZ27J11VbLXIRwM5K6fak.Sb6wMydVpuB.bFjvKmG_ 3ihlQv6d4bjOldytRgDthDxDV.by1wi1ipMd5p_QI5VRYSk2IYRwOZw77rAOmZSoUT5wiKbjwt3H KqNDzweLEIh7kaMKjTYl2vqls8ZZ5BLkfO7VektpVOp1fGwl065ET.Bo4nBW2t8.51gZ5kAB_qZx X0332seBT7GFl6d51suGLYVodyD7CUQPtIgwlYXI4RHhVmqKWBlqGgizniygxHuHZlnFx02Ooh.P CRZULHglbMn46Qyg3MHOMyx3PnZRnonijPCGvnID4w0P5pMTOIFEN._5azZaqEMbmIaCj4CQdyIS 5yYJvPWqukhJXeD1V6eJD1ZiqOdXOjxa1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 22:38:26 +0000 Received: by smtp415.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3437fd782ca164bedfbfac2ffe024092; Sun, 29 Dec 2019 22:38:22 +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: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc From: Mark Millard In-Reply-To: <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> Date: Sun, 29 Dec 2019 14:38:20 -0800 Cc: FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <558A986F-B0C9-447A-A569-4D90A2B44C58@yahoo.com> References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47mFpF3Z7Xz4Cyp X-Spamd-Bar: - X-Spamd-Result: default: False [-1.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.57)[-0.569,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; 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.92)[-0.924,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[148.64.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; 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: (4.35), 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 22:38:30 -0000 On 2019-Dec-29, at 14:04, Hans Petter Selasky = wrote: > On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote: >> 0xd2630510: at uma_zalloc_arg+0x1b4 >> 0xd2630540: at malloc+0xfc >> 0xd2630580: at alloc_bounce_pages+0x7c >> 0xd26305c0: at bus_dmamap_create+0x1e8 >=20 > Do you know what drivers are using bounce pages? No clue. Looking around a bit I see that there is: if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem) && newtag->iommu = =3D=3D NULL) newtag->flags |=3D BUS_DMA_COULD_BOUNCE; if (newtag->alignment > 1) newtag->flags |=3D BUS_DMA_COULD_BOUNCE; in bus_dma_tag_create (in sys/powerpc/powerpc/busdma_machdep.c ). But that does not indicate what all specifically might have met one of those 2 conditions for some tag creation. (The material is not familiar.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Sun Dec 29 22:45:03 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 871541ED4EA for ; Sun, 29 Dec 2019 22:45:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mFxq34mCz4DWG for ; Sun, 29 Dec 2019 22:45:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 610EC103DC; Sun, 29 Dec 2019 22:45:03 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 423D2103DB for ; Sun, 29 Dec 2019 22:45:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mFxq0GNLz4DW9 for ; Sun, 29 Dec 2019 22:45:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 04272207DE for ; Sun, 29 Dec 2019 22:45:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBTMj2JH026551 for ; Sun, 29 Dec 2019 22:45:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBTMj2Um026550 for powerpc@FreeBSD.org; Sun, 29 Dec 2019 22:45:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242630] [PowerPC] lang/ruby26 build fails on rb_mjit_min_header-2.6.5.h (FreeBSD 12.1-RELEASE-p1) Date: Sun, 29 Dec 2019 22:45:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tibikuera@yahoo.ca X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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 22:45:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242630 --- Comment #7 from Tibikuera --- (In reply to Tibikuera from comment #3) I ended up trying the following (as suggested in the web page http://www.bitwizard.nl/sig11/) and since after the "dd" command it did sto= p at the same place, this is not supposed to be a hardware issue: "First lets make sure it is the hardware that is causing your trouble. When= the "make" stops, simply type "make" again. If it compiles a few more files bef= ore stopping, it must be hardware that is causing you troubles. If it immediate= ly stops again (i.e. scans a few directories with "nothing to be done for xxxx" before bombing at exactly the same place), try dd if=3D/dev/HARD_DISK of=3D/dev/null bs=3D1024k count=3DMEGS Change HARD_DISK to "hda" to the name of your harddisk (e.g. hda or sda. Or= use "df ."). Change the MEGS to the number of megabytes of main memory that you have. This will cause the first several megabytes of your harddisk to be re= ad from disk, forcing the C source files and the gcc binary to be reread from = disk the next time you run it. Now type make again. If it still stops in the same place I'm starting to wonder if you're reading the right FAQ, as it is star= ting to look like a software problem after all.... Take a peek at the "what are = the other possibilities" question..... If without this "dd" command the compiler keeps on stopping at the same place, but moves to another place after you u= se the "dd" you definitely have a disk->ram transfer problem." --=20 You are receiving this mail because: You are on the CC list for the bug.= 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) > > From owner-freebsd-ppc@freebsd.org Mon Dec 30 02:24:21 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 EC40C1D20B2 for ; Mon, 30 Dec 2019 02:24:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (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 47mLpr2TWcz4Q87 for ; Mon, 30 Dec 2019 02:24:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: yW7ABooVM1n65OhkbE.Qe8_Q93Yuk5BzkVOeWVXtVWhmkbPCzHmTEqBQ.lev2IH UeMY8.alsHG.hEIRX.JbswMEJon9ldmrNlrq3ShlVHrOHAE1e4RiQMva7HhblO8CjKckwq4PIYji 1ML2QeZ0vO98VIoeIAGfqqQCqije7h3PGye3yfqNEdT_TgxqvK6MRtQDIWnJ4U0.jfQ1POkRN5_r c2_wQL1pgTM5DsAq6YesRiyzIZxT4EPKbbvVI3btK5ROAkVzwGQ5yTqHW2vSCQAvS8eQznL7g6JQ mS1H7QPp1eeTlMJyUfop5XKTHyx3dVWLGtCxi248dNzYBWGOrgpp6TwWqvEkpaI7wXL2RDa2Srl. 3Ai97b2DVFGbkZnJxG7ww1bo5Boztwl5S4YN47T4wnaFnfpWVoqCWOmfbJh1pvsfNfjMC5YwH39t PmAjz7dBPYlFNgahmZR_Ff4lW.Ig1cHk2QLbYru7FhG.tKLyx7vXdjgdMGVpb8VY5L7WHa_ZfB3X sMKs32ZF7tV4bEvOQNu2b4_YS5eYN71LVDSDTrMTlWIv17pe6dHNKujDpP9vqJ1nVR1OnRaGDr4n 06iTkYGKwu9XxLqNd903TSZ0Z1eW.kyegsEjqefMGqM97MbHkZhXPgzVaYi6i8GVD.WYScxFWccQ Kx7HAnpoYb9t0BG.izuy7.EB9WBUyQCETY6vQVNrZYTOulUVggGfoRiPJAqLlZNeKw6m5XVLuiRW ShBQ3axcZZmVFxNVnG9F4vF9geI0OsMF4krdpLbAd1S7Xtf.6cD5eF9FkBKAO2WfKJ_qxcmOrKDk .u3sgBaEuNC26Q09kfJtL9JY9Eq0Z97kBsmBAScedRfF69ZYGuYLHVRiP2167W79Y0wRHhvV_q7j 5HqpUqx_WFi3OmJfIwqHNJdeJctzPNGCISuhD1h28A30YyeDW0DxRD31_sSKQgfauVqApzpIZAfO rhtnIc9jLczoPy1.CP.7F7WIzCVX8umHJwv7IR040aDd4Pd3mdqnziAK88p_QYS76TS8bl.73uRU LlMlJkQ_dmeTFxUSTJCO7izRrFxHW_9bm2LgzUlvAeF2JFWdPU_pzr66YHR1jVcbR3A_MY2W6_2g roZ7imjAIVWPNNwSDnG7foFedX4PKVRJUh9__S75izcS39Z_e3OYUOqf1r1n0sRyDFDcpc7CQjuy JLpf3TMBj7xupQaVWclGdqbc.CL9j0Jz65PFgoGqY.kTYWWdJYCKnzbBBJnhNxguyiATqjEIVgZ4 AOqoHK6p2kz6_ndlmamXbmv_MSm967W4IBGZWs8HrTua4OGlFXJig1KncvniuE1T71G8eKYCz71q vpvWW2xlgscPBP51onTsMkz0SM2f.4yQix724zjsdy6a2Eq8EhQbbEK4p95EtPA_6Bx83bppwJGL WxB6pFrl5J9DgYhARke.qqqcPxpcrQimUOA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Mon, 30 Dec 2019 02:24:18 +0000 Received: by smtp414.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID d4f26c8e8bfbbc1debc21f4047c899d2; Mon, 30 Dec 2019 02:24:17 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: LDFLAGS.lld+= vs. 32-bit powerpc related use of ld.bfd in a powerpc64 overall build (head -r356187) Message-Id: <772FE77D-BF4D-4C45-979A-BBE72435103C@yahoo.com> Date: Sun, 29 Dec 2019 18:24:16 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <772FE77D-BF4D-4C45-979A-BBE72435103C.ref@yahoo.com> X-Rspamd-Queue-Id: 47mLpr2TWcz4Q87 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.25 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.78)[-0.778,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.971,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (2.27), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[206.68.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[206.68.137.98.rep.mailspike.net : 127.0.0.17]; 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 02:24:22 -0000 I have historically used the likes of: # grep -r no-threads /etc/ /etc/make.conf:LDFLAGS.lld+=3D -Wl,--no-threads But in trying to build for powerpc64 there is some 32-bit linking as well and it gets the above involved despite the .lld in the notation. LDFLAGS.lld being involved at all for a non-lld based link is the important point, not that I happened to use --no-threads . The first error report in the attempted build was: --- boot1.elf --- = /usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.powerpc64/t= mp/usr/bin/ld.bfd: unrecognized option '--no-threads' = /usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.powerpc64/t= mp/usr/bin/ld.bfd: use the --help option for usage information cc: error: linker command failed with exit code 1 (use -v to see = invocation) *** [boot1.elf] Error code 1 make[5]: stopped in /usr/src/stand/powerpc/boot1.chrp .ERROR_TARGET=3D'boot1.elf' = .ERROR_META_FILE=3D'/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src= /powerpc.powerpc64/stand/powerpc/boot1.chrp/boot1.elf.meta' .MAKE.LEVEL=3D'5' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'cc -target powerpc64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc= .powerpc64/tmp = -B/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.powerpc64= /tmp/usr/bin -O2 -pipe -nostdinc = -I/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.powerpc64= /stand/libsa -I/usr/src/stand/libsa -D_STANDALONE -I/usr/src/sys = -Ddouble=3Djagged-little-pill -Dfloat=3Dfloaty-mcfloatface = -DLOADER_DISK_SUPPORT -m32 -mcpu=3Dpowerpc = -fuse-ld=3D/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.= powerpc64/tmp/usr/bin/ld.bfd -ffreestanding -msoft-float -I. -Iinclude = -I/usr/src/stand/common -std=3Dgnu99 -Wno-format-zero-length = -Wsystem-headers -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value = -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion = -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch = -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses = -Qunused-arguments -nostdlib -static -Wl,-N -Wl,--no-threads -o = boot1.elf boot1.o qdivrem.o udivdi3.o ashldi3.o syncicache.o ;' .CURDIR=3D'/usr/src/stand/powerpc/boot1.chrp' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.= powerpc64/stand/powerpc/boot1.chrp' .TARGETS=3D'all' = DESTDIR=3D'/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.= powerpc64/tmp' LD_LIBRARY_PATH=3D'' MACHINE=3D'powerpc' MACHINE_ARCH=3D'powerpc64' MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20181221' = PATH=3D'/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.pow= erpc64/tmp/usr/sbin:/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src= /powerpc.powerpc64/tmp/usr/bin:/usr/obj/powerpc64vtsc_clang/powerpc.powerp= c64/usr/src/powerpc.powerpc64/tmp/legacy/usr/sbin:/usr/obj/powerpc64vtsc_c= lang/powerpc.powerpc64/usr/src/powerpc.powerpc64/tmp/legacy/usr/bin:/usr/o= bj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.powerpc64/tmp/leg= acy/bin::/sbin:/bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/powerpc64vtsc_clang/powerpc.powerpc64/usr/src/powerpc.p= owerpc64' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.powerpc64-clang-bootstrap.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null = /usr/src/stand/powerpc/boot1.chrp/Makefile /usr/src/share/mk/bsd.init.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk = /usr/src/stand/powerpc/boot1.chrp/../Makefile.inc = /usr/src/stand/powerpc/boot1.chrp/../../Makefile.inc = /usr/src/stand/powerpc/boot1.chrp/../../defs.mk = /usr/src/share/mk/src.opts.mk /usr/src/share/mk/bsd.own.mk = /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk = /usr/src/stand/powerpc/boot1.chrp/Makefile.hfs = /usr/src/share/mk/bsd.prog.mk /usr/src/share/mk/bsd.libnames.mk = /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/bsd.nls.mk = /usr/src/share/mk/bsd.confs.mk /usr/src/share/mk/bsd.files.mk = /usr/src/share/mk/bsd.dirs.mk /usr/src/share/mk/bsd.incs.mk = /usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.man.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/share/mk/bsd.sys.mk' .PATH=3D'. /usr/src/stand/powerpc/boot1.chrp /usr/src/sys/libkern = /usr/src/lib/libc/powerpc/gen /usr/src/stand/powerpc/boot1.chrp' 1 error =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Mon Dec 30 03:08:28 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 750FB1D2E82 for ; Mon, 30 Dec 2019 03:08:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-8.consmr.mail.gq1.yahoo.com (sonic308-8.consmr.mail.gq1.yahoo.com [98.137.68.32]) (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 47mMnl0WRxz4SD7 for ; Mon, 30 Dec 2019 03:08:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: UI7aGdEVM1n.yT8jkvQu1YGddL9AGeJkJFUIQ_ChxUF_ZLHUXYJQn8HzJ7pgnlG MCsr6SHZB5ZhFnhx1lkj0gAuxqQqTajfmhxdErAYueiB..cntOIuutI3xp405aqHya8LMEjz.ZB1 SRl0C9xXhtc8DGZ0THYIqXkahu_nr9uZG9B.danJRFWm1LxGQvvFMwLI4ctquhEhx4Z0kdSt1WV3 IIxw.4xK6KAEd58.KsQGO20cPTOcxksp.3D6ReD7va9hREccFSz3X8RD9.W_ILBRBu1HusyVvefk DaleX4BO8RS8KG8lGzXf1rXJY8FCNZQzCByW4nJt_9.DJUTnXWazYOxarTjQZ4VWjc4mx4StLtG5 4k6OLApZE2KZlHTkole4n.50M2Hw0H2ECgTBaCjd.PIGgCGllIU1zsbOvJIEbSpTVIXZ.VoqW4jR t5Gf1BkqHYUOyGWkRf1CkgRaB3RbIAIAqt0ypTVYw26XZI.AUVvCaAaQ_89INCq7fNEgb874bI1Z 88wY0.T5FnWIdD5eqdm2549pMQ_xVo3Zmn9Fl1t8oofQxCJZymZimLp2WdHKsFyOOhxCwMH_wfYc yGHI0.19mZHpI3eAdcAcaNm9PyGYPbuLVtymTM1Dc4uYbucECVa2KNVqyWXPvQ6B5_Wx45BnmDKD AgdgvEsW_3oogar_1qr7cLZwwhryxHytXQR6ypgKIykX2yGY_LR7yEYs7kz0RFpfauaybCqDJh3s dGrG9vzL1neSd1v5bzbeisXxDnOS4QmUtwhAQl4XHXnCWDw9RdZPMct6vC4jRdp_STRgpCmeyZEG xeC1KQ_lZtU.d7Iue8JDTDgco9fs7KiqNU3yq3QvJU9Gov.KYPvUmdnLwoooK12p2skMOS1TWfW4 wXy_8BYm2BRcPoztHu4_rOXwJTjSZS2_SBgN7Fq5dUxTQ.XjuEET4NtGW73NHzeA2m_tWAGlqUuK yUWyWnaJywIsKSSeJUWOfppamhYa.M3JwxLuGLwQ3BQsJu2hpwSnc2PXUWMfbLgN14oimZO0tXxb XGlGegqC1Rd6dbwx8GJPd1lZ_BmSxLKOU5R_8URcMUkB0ECrc8_eOeWnFPYW3_dT4Eh7eh8Beved m5hxnF224r2elBc1KU5PvUVco3JhZPS9mJtgJGA9u3G2xv.xNkx8dREKee6ZnkWv7h9.bO.gyXD7 tOoStYEUPabk2wt5zALQNdfBrl_oMRqwHzCGZ1kr0TW9qHMA6EfRRvLXl.xtUqkayhZuUDjoskv. oHth2TQO4FKgK391rv1M_oiYAV8Vc.2N_SZfWMH8AzD5SJa8pXOgs2NA8Z9_kBh2aEqbexwakmyS MNI2YWH2X4gLjXouTzjgeKBqqhBrndU3SNAXFEvvErikXu5dCbZ8saOhNi7oW_g06q70TDfu0B2C dk92mSFeYqtVyt2mr_w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Mon, 30 Dec 2019 03:08:25 +0000 Received: by smtp408.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9e1f4033dd77b87b5313c8fc3456e41f; Mon, 30 Dec 2019 03:08:20 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Attempt to build 32-bit powerpc head -r356187 failed: ld: acl_nfs4.kld(.text+0x234): R_PPC_PLTREL24 reloc against local symbol Message-Id: <62D3753A-A31B-4D56-B059-FC92A317953A@yahoo.com> Date: Sun, 29 Dec 2019 19:08:18 -0800 To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <62D3753A-A31B-4D56-B059-FC92A317953A.ref@yahoo.com> X-Rspamd-Queue-Id: 47mMnl0WRxz4SD7 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.29 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.81)[-0.808,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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.987,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[32.68.137.98.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (1.37), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; 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)[]; 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: Mon, 30 Dec 2019 03:08:28 -0000 --- acl_nfs4.ko.full --- ld: acl_nfs4.kld(.text+0x234): R_PPC_PLTREL24 reloc against local symbol acl_nfs4.kld: could not read symbols: Bad value *** [acl_nfs4.ko.full] Error code 1 make[4]: stopped in /usr/src/sys/modules/acl_nfs4 .ERROR_TARGET=3D'acl_nfs4.ko.full' = .ERROR_META_FILE=3D'/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/pow= erpc.powerpc/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/acl_nfs4/ac= l_nfs4.ko.full.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'ld -m elf32ppc_fbsd -Bshareable -znotext -znorelro = --secure-plt -d -warn-common -o acl_nfs4.ko.full acl_nfs4.kld;' .CURDIR=3D'/usr/src/sys/modules/acl_nfs4' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.powe= rpc/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/acl_nfs4' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'powerpc' MACHINE_ARCH=3D'powerpc' = MAKEOBJDIRPREFIX=3D'/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/pow= erpc.powerpc/sys/GENERICvtsc-NODBG/modules' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20181221' = PATH=3D'/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.powerpc= /tmp/usr/sbin:/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.p= owerpc/tmp/usr/bin:/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powe= rpc.powerpc/tmp/legacy/usr/sbin:/usr/obj/powerpcvtsc_clang/powerpc.powerpc= /usr/src/powerpc.powerpc/tmp/legacy/usr/bin:/usr/obj/powerpcvtsc_clang/pow= erpc.powerpc/usr/src/powerpc.powerpc/tmp/legacy/bin::/sbin:/bin:/usr/sbin:= /usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.power= pc/sys/GENERICvtsc-NODBG/modules/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.powerpc-clang-bootstrap.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null = /usr/src/sys/modules/acl_nfs4/Makefile /usr/src/share/mk/bsd.kmod.mk = /usr/src/share/mk/bsd.sysdir.mk /usr/src/sys/conf/kmod.mk = /usr/src/sys/conf/kmod.opts.mk /usr/src/share/mk/bsd.init.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk = /usr/src/sys/modules/acl_nfs4/../Makefile.inc = /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk = /usr/src/share/mk/bsd.linker.mk /usr/src/sys/conf/kern.opts.mk = /usr/src/sys/conf/config.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/sys/conf/kern.mk' .PATH=3D'. /usr/src/sys/modules/acl_nfs4 /usr/src/sys/kern = /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.powerpc/sys/GEN= ERICvtsc-NODBG' 1 error =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Mon Dec 30 05:07:37 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 A7CC91D5A30 for ; Mon, 30 Dec 2019 05:07:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-20.consmr.mail.gq1.yahoo.com (sonic301-20.consmr.mail.gq1.yahoo.com [98.137.64.146]) (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 47mQRD44Bpz4Zyx for ; Mon, 30 Dec 2019 05:07:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: bxDDhCwVM1k50rnOr0R4FIyH7ocHCGoF2_OJ9vsehX7f0pW0sfMnuul.LGmsFC6 whT3kuVfpMyInxEW.H8m64IMFSwxfk_8DCybJXskvMpU6rgF49DgyyShgw4_tZegIf17nFcybBr1 gfufwRRcpD965fJkdgicHTyAUgori7XEj.cqMAmbNtirTkIYCDL9V.UXdaviZ0fE6OkxekjrnEDk OfYFZLmbC1MuJiWM1osRg7ve_rdDZ4djzd88OA_QAUnhJNplfj.37DkjSDqVd7koPFsxYl3kbafu OtwVxIB8SZupsv.HrYGl_OXCZymOpbZgy5yvYlmVMGFkqiYjGNjnp_6G7t_9ziTRAjB3cu_HCpy_ 0zejuNOXJRB.34UOAm72xdN6lQDmG25YPf393obMgIz7uWTL6.pfflZx_srtMNt8ZLwHqjNG1Dlu ThLdazm5_38Sc4yC7b6vEE2Rpp0X.AGWfPGMAKqY85Mfkiy1AYs1xm3gxoSqR8cxCszAiQ7gBHj6 6raWFmH8T9HSnmIs9DuZItSHvV8yBBd60iX0luYiI.ZIQSRkLi125O9Q5onAQS4JbyeoBC_VG_1I JliyRg4KFf2Ptxp0njCynsqGIfoZ2glTOmk1E0wU0QL2oHoxCqX8RgK17NXz.E10yzjoHbXq9GIj tx4IKmagxE3uKT1GlTqds_oEoCjExXYbSaAUEd.s.9TZIFW_wpMKoMcAHXqUm2dZN6So8Qn.LudF pZ_ibTp51azCWOmwGvHXBWBnrhOGTWPjkeCSVb28J8zzfxxO2eUpRz2RBXfrSdUf21xBJjENRs0q SusDk.7NUQLBQR522KSCVay5FbN5DnDRZERxy5Hypc9hOvyvDly7nulIWwDiea00192FWur.2dZo WJpiCFQQxcqqCZ6B.FmhilexhHs5YybaVarvqOAjFzTHpQyXytB86SzUqLln8TF5DGbfTEDXr1uv YSsY9uup.YNfpyQDhGjWJsR6oDquBb8r8V2hR__psKQLihX7x5Vk38efQQNN8SmgXMjJmG39KPek wd1dg0Gra6RBwzkg61Yf4CMKxNJJeLPyGli6bWTneF7in62opPSLG2VIkjTKNtGQzw9nrPy27GHT 36WlYrsy2bQEnAG6igmkfxc_cN2nlVWDo0y9cQtw6AElNLOyYmXKjLWK9tR0WHNpTP0hGtNxXlFL aYjoFfJ8vl6_FrIm5j4ILtfOZrlmJPjX9xV2J.QidXsYzFG8Icb1e5LQ4W0jAM8KlKfXlcKbfhqd 6B.1VOAUAVfauel7kyyqRxdxNaxHazqwEJzkNHYB_Y82hLZsJ3zAxmakTlX7z_dVv6_hc8X.yzt_ AexvHzhUoNSzCacQC6MAFxZerWO_67nW3kbIFPUo6MHLZDJ184Y532n4srvxY5h6o7n4DaSTF_aS vQBrITXezPoRUmJTOMhnuNvQBzWVfJ_s9XZg4Ag-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Mon, 30 Dec 2019 05:07:34 +0000 Received: by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9b0a8e3dd38050fd0eaafe1c18804feb; Mon, 30 Dec 2019 05:07:31 +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: <7c9e00c8-17a1-bc20-7c52-2dc87069fca3@neo-zeon.de> Date: Sun, 29 Dec 2019 21:07:30 -0800 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <520F197C-DE4D-4C1E-8EFE-71ABDC6148CF@yahoo.com> References: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de> <7c9e00c8-17a1-bc20-7c52-2dc87069fca3@neo-zeon.de> To: Cameron Berkenpas X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47mQRD44Bpz4Zyx X-Spamd-Bar: - X-Spamd-Result: default: False [-1.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.49)[-0.492,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.91)[-0.908,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)[146.64.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: (3.96), 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: Mon, 30 Dec 2019 05:07:37 -0000 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. >=20 > I have currently allocated 32GB of memory and there appears to be = about 3G of swap and 32 threads. >=20 > The physical host is a Talos II (so POWER9) running Linux/KVM/libvirt. >=20 > 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: >>=20 >> On 2019-Dec-28, at 15:28, Cameron Berkenpas = wrote: >>=20 >>> 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.) >>=20 >> 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. >=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Mon Dec 30 17:34:07 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 536011E5333 for ; Mon, 30 Dec 2019 17:34:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-20.consmr.mail.gq1.yahoo.com (sonic313-20.consmr.mail.gq1.yahoo.com [98.137.65.83]) (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 47ml0Z0kqyz4Gys for ; Mon, 30 Dec 2019 17:34:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: E_mb3tEVM1lyz9fqYqm060OdxwRryHZJq3Dwv0AsefCX3HND0XpnesM_og69okk jTayQ4iZ3PykwQqJCV1zaTXa2ksY.BVvf_wRcIWnYM0juZ1cWq8bG0TMuES_aaZnXmv3cpts7mfe hd3QB5iDOmV4bJeLBYCiqIqHxjy6dMSt.7.CAhyRjaNgB11_FkPogKYPQl4aV739d2erdZ.gwghJ KeQVASE2rE6MTmuE7CVATlrH2ALDk58RLiKRkRnnsTT25D_Sjd9KIIiEPmVUDukDECOCH.6JCiQT V.Gc_RmbureqKICe3PC9Renl4Z65Nyjtx9CVOo1sXMGMGbCpg4JLeEU.kBLqxWE5hph0kC6Z4la2 TMYcNeNjygGuZLfE98GEDgeK8x.lFDRkFzYG_UbMo2HSaHbvwxx6oiP2XGLac_0lC0UquUEI2WBt HCFVvYVgpNuUlw1SFPTLgT2X3lrhgkkEyGo4nU_zdiIc.jIbLgv_iA3CGJR778wcXwsYeT34oCeB 2HKDXNh.NsbNElBy3J8l_P5.AcUSwAOhnl.h7hAfUaRcBpNSpE1CaWF3_HH.I8J_Y_qgnFW2YDxb MNzJWDYwDXWiSDYrmxZ04halJuvJAz0x3aF2XfutIftJp_po8rv.BtBVV2XTiJ0cMiZ8edrWDIT8 2u2hPk7ZZoDJeX49f2i5l7pUZRVPXcPXer637XeJ5Yl9N0vxd.kQYyI5CqdH.O_OI1O9P63SKz0C iYgZL3xYHJd1iTty0fjYx_um6Pn0MxIhE3y_IpLh0Bl8DZSdo8V.vJusYXdZ34MCs00BNNY91APK 7MwoJCAhPq2kA2_I.0dgKHK3X_ZjkISKRhOhah4eEN4kxIvHF8k6QH79YhIfP.tPWF0FQVtC2JVO 1wDiXuLUPumPytViqYe5fM.t8mRzYcXXdxxUEDElT6wXM5GkYhV.VZ0nyISIyMGEUU9owBsWbA3K d3XjGw46SVEMKhSMMvDFurc1mkt2s_mcXGTRbXdlhUXxTWUg8yzrz89WdbuuDbFXgeO2.asyRjFP O3737w.navUrOK4ftDBOGgfIzQ7nPYb4hCoat7kiR7SP431i8AUBFKdWcUirNZXML2IDpst.vX05 vRcj5jBbrGBsRj_lNi6RltuhiARP89mfiFK0neYaEvRzOLrAjY4lB7_HrWNSR1KvSFSqoBJDtPxe lds3XG6QnjttXtZIv_zdKxBmLvb7pnGcEUiE.jtfvR5D_ZpLpDsiRtLmEQgG3ymXhax5FsFulKMX 3A.jYIe0biVBJvOZa4L3ysj59nD7BWfQM2q9WPQPs0RV4OlZc9zSfZGKQ8UL3V5URmM7YsFGGwnf M0I9AmYFbz7a.dsN_UTA2yIPgyV_6IbPTC.2OMQ208KE5Mb1t4tOqRbeKLwf5YuuB_1xfXSRk2go mjPBGa_Ng4my4ebTCod20pPcSTEZDtxDy Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Mon, 30 Dec 2019 17:34:04 +0000 Received: by smtp432.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 49b1b93ced353c3513b83c00a3cf9930; Mon, 30 Dec 2019 17:33:58 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Building head -r356187 for powerpc64 via devel/freebsd-gcc9 fails: powerpc64-unknown-freebsd13.0-ld: over 480 cpu minutes on ThreadRipper 1950X Message-Id: <7CAD1629-A16F-4D7E-898A-5C06CAC4E0AF@yahoo.com> Date: Mon, 30 Dec 2019 09:33:56 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <7CAD1629-A16F-4D7E-898A-5C06CAC4E0AF.ref@yahoo.com> X-Rspamd-Queue-Id: 47ml0Z0kqyz4Gys X-Spamd-Bar: - X-Spamd-Result: default: False [-1.74 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.34)[-0.339,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.91)[-0.905,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)[83.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: (3.96), 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: Mon, 30 Dec 2019 17:34:07 -0000 There are two nearly 100% cpu usage instances of powerpc64-unknown-freebsd13.0-ld , each with over 480 cpu minutes, one for clang.full and one for lld.full . (amd64->powerpc64 cross build.) The below shows the file system view of the status after all that time: 0 size .full files. # ls -ldTt = /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.po= werpc64/usr.bin/clang/clang/clang.full* | head -rw-r--r-- 1 root wheel 3071 Dec 30 00:30:02 2019 = /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.po= werpc64/usr.bin/clang/clang/clang.full.meta -rw-r--r-- 1 root wheel 0 Dec 30 00:29:32 2019 = /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.po= werpc64/usr.bin/clang/clang/clang.full # ls -ldTt = /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.po= werpc64/usr.bin/clang/clang/clang.full* | head -rw-r--r-- 1 root wheel 3071 Dec 30 00:30:02 2019 = /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.po= werpc64/usr.bin/clang/clang/clang.full.meta -rw-r--r-- 1 root wheel 0 Dec 30 00:29:32 2019 = /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.po= werpc64/usr.bin/clang/clang/clang.full Attaching to one of them with gdb shows (I build ports optimized but with symbols generally): (gdb) bt #0 0x000000000035431d in ppc64_elf_inline_plt (info=3D) = at elf64-ppc.c:7473 #1 0x000000000032acb0 in ppc_before_allocation () at = eelf64ppc_fbsd.c:370 #2 0x0000000000319651 in lang_process () at ldlang.c:7678 #3 0x00000000003208d8 in main (argc=3D, argv=3D) at ./ldmain.c:441 ppc64_elf_inline_plt does not return (finish does not stop on its own). Using step shows: (gdb) step 7471 in elf64-ppc.c (gdb)=20 7473 in elf64-ppc.c (gdb)=20 7471 in elf64-ppc.c (gdb)=20 7473 in elf64-ppc.c . . . Looking at the instruction level: (gdb) display/i $pc 1: x/i $pc =3D> 0x35431d : jne 0x354310 = (gdb) nexti 7471 in elf64-ppc.c 1: x/i $pc =3D> 0x354310 : mov 0x8(%r13),%r12 (gdb)=20 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x354314 : mov %r12d,%eax (gdb)=20 0x0000000000354317 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x354317 : or $0x2,%eax (gdb)=20 0x000000000035431a 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x35431a : cmp $0x7a,%eax (gdb)=20 0x000000000035431d 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x35431d : jne 0x354310 = (gdb)=20 7471 in elf64-ppc.c 1: x/i $pc =3D> 0x354310 : mov 0x8(%r13),%r12 (gdb)=20 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x354314 : mov %r12d,%eax (gdb)=20 0x0000000000354317 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x354317 : or $0x2,%eax (gdb)=20 0x000000000035431a 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x35431a : cmp $0x7a,%eax (gdb)=20 0x000000000035431d 7473 in elf64-ppc.c 1: x/i $pc =3D> 0x35431d : jne 0x354310 = . . . To do the experiment I built devel/freebsd-gcc9 based on: ( ports at -r520539 ) # svnlite diff /usr/ports/devel/freebsd-gcc9/ Index: /usr/ports/devel/freebsd-gcc9/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/devel/freebsd-gcc9/Makefile (revision 520539) +++ /usr/ports/devel/freebsd-gcc9/Makefile (working copy) @@ -53,6 +53,10 @@ --with-as=3D${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=3D${LOCALBASE}/bin/${BU_PREFIX}-ld =20 +.if ${TARGETARCH} =3D=3D powerpc64 +CONFIGURE_ARGS+=3D --with-abi=3Delfv2 +.endif + ALL_TARGET=3D all-gcc INSTALL_TARGET=3D install-gcc =20 (So I forced elfv2 for powerpc64.) I'm also using WITHOUT_LIB32 to avoid the the forced bss-plt that ends up involved: It stops the build: # svnlite diff /usr/src/share/mk/bsd.cpu.mk=20 Index: /usr/src/share/mk/bsd.cpu.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/share/mk/bsd.cpu.mk (revision 356187) +++ /usr/src/share/mk/bsd.cpu.mk (working copy) @@ -421,7 +421,7 @@ # normal builds works when CROSS_BINUTILS_PREFIX and could be removed # when LLD PowerPC 32 bit support is completed .if defined(CROSS_BINUTILS_PREFIX) -LD_BFD=3D${LOCALBASE}/bin/${CROSS_BINUTILS_PREFIX}-ld.bfd +LD_BFD=3D${CROSS_BINUTILS_PREFIX}ld.bfd .else LD_BFD=3D${OBJTOP}/tmp/usr/bin/ld.bfd .endif (The above change used a working file path.) I used: # more ~/src.configs/src.conf.powerpc64-xtoolchain-gcc.amd64-host=20 GCCVERSION=3D9 TO_TYPE=3Dpowerpc64 TOOLS_TO_TYPE=3D${TO_TYPE} VERSION_CONTEXT=3D13.0 # KERNCONF=3DGENERIC64vtsc-NODBG TARGET=3Dpowerpc .if ${.MAKE.LEVEL} =3D=3D 0 TARGET_ARCH=3D${TO_TYPE} .export TARGET_ARCH .endif # WITHOUT_CROSS_COMPILER=3D WITHOUT_SYSTEM_COMPILER=3D WITHOUT_SYSTEM_LINKER=3D # WITH_LLVM_LIBUNWIND=3D WITH_LIBCPLUSPLUS=3D WITHOUT_LLD_BOOTSTRAP=3D WITHOUT_BINUTILS_BOOTSTRAP=3D WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=3D WITHOUT_LLVM_TARGET_ALL=3D WITHOUT_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D WITH_CLANG_FULL=3D WITH_CLANG_EXTRAS=3D WITH_LLD=3D WITH_LLD_IS_LD=3D WITHOUT_BINUTILS=3D #WITH_PORT_BASE_BINUTILS=3D # Note: LLDB fails to build (link). WITHOUT_LLDB=3D # WITH_BOOT=3D # # Fails to build because of forced bss-plt use. WITHOUT_LIB32=3D # LOADER_DEFAULT_INTERP=3D4th # WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GCC_IS_CC=3D WITHOUT_GNUCXX=3D # NO_WERROR=3D # #WERROR=3D MALLOC_PRODUCTION=3D # # Avoid stripping but do not control host -g status as well: DEBUG_FLAGS+=3D # WITH_REPRODUCIBLE_BUILD=3D WITH_DEBUG_FILES=3D # #XCFLAGS+=3D -gdwarf-2 # # For TO (so-called "cross") stages . . . # So-called-cross via freebsd-gcc${GCCVERSION}@${TO_TYPE} # TOOLS_TO_TYPE based on freebsd-gcc${GCCVERSION}@${TO_TYPE} related = binutils. . . # CROSS_TOOLCHAIN=3D${TO_TYPE}-gcc${GCCVERSION} X_COMPILER_TYPE=3Dgcc = CROSS_BINUTILS_PREFIX=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSI= ON_CONTEXT}/bin/ .if ${.MAKE.LEVEL} =3D=3D 0 = XCC=3D/usr/local/bin/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}-gc= c${GCCVERSION} = XCXX=3D/usr/local/bin/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}-g= ++${GCCVERSION} = XCPP=3D/usr/local/bin/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}-c= pp${GCCVERSION} .export XCC .export XCXX .export XCPP XAS=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/bin/as= XAR=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/bin/ar= XLD=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/bin/ld= XNM=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/bin/nm= = XOBJCOPY=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/b= in/objcopy = XOBJDUMP=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/b= in/objdump = XRANLIB=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/bi= n/ranlib = XSIZE=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/bin/= size #NO-SUCH: = XSTRINGS=3D/usr/local/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEXT}/b= in/strings = XSTRINGS=3D/usr/local/bin/${TOOLS_TO_TYPE}-unknown-freebsd${VERSION_CONTEX= T}-strings .export XAS .export XAR .export XLD .export XNM .export XOBJCOPY .export XOBJDUMP .export XRANLIB .export XSIZE .export XSTRINGS .endif # # # =46rom based on clang (via system). . . # .if ${.MAKE.LEVEL} =3D=3D 0 CC=3D/usr/bin/clang CXX=3D/usr/bin/clang++ CPP=3D/usr/bin/clang-cpp .export CC .export CXX .export CPP .endif By contrast, cross-building powerpc64 using system-clang and devel/binutils@powerpc64 ran to completion, as did the default system-clang/lld use. Using ELFv2 for devel/freebsd-gcc9 did avoid the internal plt template error report that I got earlier when targeting a ELFv1 context. 32-bit powerpc side note: For 32-bit powerpc, the only combination to complete buildworld buildkernel was system-clang with devel/binutils@powerpc . The default system linker failed with acl_nfs4.kld(.text+0x234): R_PPC_PLTREL24=20 reloc against local symbol. Using devel/freebsd-gcc9@powerpc with devel/binutils@powerpc resulted in forced bss-plt use stopping the build. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Tue Dec 31 00:39:35 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 F299F1EE373 for ; Tue, 31 Dec 2019 00:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mwRW6FMZz4fkh for ; Tue, 31 Dec 2019 00:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id B59153510; Tue, 31 Dec 2019 00:39:35 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id B2CBB350F for ; Tue, 31 Dec 2019 00:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mwRW3MMSz4fkc for ; Tue, 31 Dec 2019 00:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6EC56A188 for ; Tue, 31 Dec 2019 00:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBV0dYB0070071 for ; Tue, 31 Dec 2019 00:39:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBV0dYne070054 for powerpc@FreeBSD.org; Tue, 31 Dec 2019 00:39:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242630] [PowerPC] lang/ruby26 build fails on rb_mjit_min_header-2.6.5.h (FreeBSD 12.1-RELEASE-p1) Date: Tue, 31 Dec 2019 00:39:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nunovasconcellos@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Tue, 31 Dec 2019 00:39:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242630 Nuno Vasconcellos changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nunovasconcellos@gmail.com --- Comment #8 from Nuno Vasconcellos --- cd /usr/ports/lang/ruby26 make clean make USE_GCC=3D4.2 install I hope this helps. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Tue Dec 31 02:14:18 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 EB41A1F05EE for ; Tue, 31 Dec 2019 02:14:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.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 47myXp02Dxz3GGY for ; Tue, 31 Dec 2019 02:14:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: FwTzk4UVM1lBpjReXYIeVsSKaSChfQz..aTY3RApPMw7Rc0JEJ1JLZOcghp1ZH2 kgvJIWk9SO_eQUXZlKD7eEsWF0RG9xpsgq7vo_809RY.Uq.jsjSSR80BoliMOzBa.znGF3k1QJPq O3ilye4T.NGxtIIQFdijch.HGe.H2uFnkPltU5ihtpFFzvWmru1hdf079YlB0v_deHXfnNTXZkVr LwDf8HRbmvD.A6VbdwKU0yEKLJcRciEv7NqvWqQ5HmPaMFsmtnWHSdfd2QX4kAvNQT8I4qnvGAHQ FkIFr176hvD.2IJDdXZ1Gr9dxw0tmD_ksuZwR07qeTB1vVGe9AhFA1PhQU3JY0ElWXYCIRvsmLtF STYjlTMa68ltWx0pkRAFcb4l6AzFoRmkHy6bbl9Gc1FNo2669Wv56nwfyZSGEtNSDVdJHhPF_AlU pVXqxHkELG33LUq0.pmOGsHAB0mCp58b4bDqhGMV3qn2hYpCFXOUGQc_GIQXtVjm0gltcbT7qbNV B44aQiXPYek2IXGGCiKac8tc2cuFMhR3huj8INauTZB0hhk6jMfssOUTCuqBOEWYl_TiayXcanCb jrCqyFG_ldEDVYSQsa_4uknk5qsECEn8LQQcWWkq9n7FahIIZ84eb71qQWjBjiPCNL9D7FmoZBi3 pXvOcsGBAOfsa1PrZdTlQkWMXrsjgeaHqK5OAxJOHYOG5c.pSExFDQlEXlj7p2I6A9Tg0ncuClxl p1wfyPz4sfzUftu7W4pDmoeVoLBKXaisf9gbKFyrDnWAuAqLBDeZnVRP9idTz84rUlIxIWBJXX62 dTPOc7o..28X7jrYjhdTThZlAv_n.OtL_bISUzFdxEltoSyJ6SgzVKlK_SRS9b27NmzuFy7ggK4x 7I_SnA.WttCHxfGk5QKlsku5ldibz2autPQytPcrPWzdX6ZusbYiPidfbG.iTbG1GSVg1mELOefk F4Qhr8DLe0uOZzrET9tiVevLdIOc7VBwRJ2QdP_qJHnLgZ4IJQflJvu237ILF_m.HUlBC21mCf1i KiYvfcVbyT5MNwwmfWr9s7Q012x9Cy0praeXpFMWaWZL.rq4wi3bzcETxr75uqy02N1puCAtmews 0M9Zgh8v43QN8ZPOVwbCLuY4C0irwA5SfYx4mNfVOJNS52rxdpqLB.1rcolD3ZI.2ykrlzFTT8M0 e0PSqHlH5Gf_PD1Wfqp3drIoHVNk.6Q53q1n4vt8LeGtELkgpjQbPAqn2xtH28CsqCRDn8SWeec_ F6aOfke_45oZgNs8v3.dMHE0Icn5Mpa0RqAzsx6xUL3hn5L2kbdvpDUoN.sb.lQT5JNUThN.PlTM tjXvGyNQfxd4UT4lmMc65yOLtxFvOpjTlB2SSneQrhrSnIhjU.kHozXGH7wmTVA9Ug2jokfELauu NSztdtwDgNi0_W7FE3GK.fRaomNbOqUN_yGI08vc- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Tue, 31 Dec 2019 02:14:15 +0000 Received: by smtp413.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 8d6b92f5a30b13dee2cb553bf60a4039; Tue, 31 Dec 2019 02:14:11 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: system-clang (elfv2) and devel/binutil@powerpc (32-bit): booting fail very early on PowerMac3,6 example ; also build problem why I tried this Message-Id: Date: Mon, 30 Dec 2019 18:14:09 -0800 To: Justin Hibbits , FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3608.40.2.2.4) References: X-Rspamd-Queue-Id: 47myXp02Dxz3GGY X-Spamd-Bar: - X-Spamd-Result: default: False [-1.69 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; SH_EMAIL_ZRD(0.00)[0.0.0.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.35)[-0.348,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0]; NEURAL_HAM_LONG(-0.84)[-0.843,0]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[84.69.137.98.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (5.34), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.71), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[84.69.137.98.rep.mailspike.net : 127.0.0.17]; 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 02:14:19 -0000 (There are later notes below with build failure information that lead me to try devel/binutils@powerpc .) Because of the (cross-)build failure (from amd64): --- acl_nfs4.ko.full --- ld: acl_nfs4.kld(.text+0x234): R_PPC_PLTREL24 reloc against local symbol acl_nfs4.kld: could not read symbols: Bad value *** [acl_nfs4.ko.full] Error code 1 when using the default ld for 32-bit powerpc, I tried using devel/binutil@powerpc for which buildworld buildkernel at least ran to completion. The build was of a non-debug kernel (and world), but with symbols. But the result failed to boot, stopping very early: (typed from a image) . . . Booted from: /pci@f4000000/ata-6@d/disk@0 Loading /boot/defaults/loader.conf /boot/kernel/kernel data=3D0xd97874+0x2ebdd4 = syms=3D[0x4+0x97740+0x4+0xc34d2] Invalid memory access at %SRR0: 04C00000 %SRR1: c0000000 Apple PowerMac3,6 4.6.0f1 BootROM built on 02/20/03 at 13:52:27 . . . As for the build failure . . . # Meta data file = /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.powerpc/sys/GEN= ERICvtsc-NODBG/modules/usr/src/sys/modules/acl_nfs4/acl_nfs4.kld.meta CMD ld -m elf32ppc_fbsd --secure-plt -d -warn-common -r -d -o = acl_nfs4.kld subr_acl_nfs4.o CMD ctfmerge -L VERSION -g -o acl_nfs4.kld subr_acl_nfs4.o CMD :> export_syms CMD awk -f /usr/src/sys/conf/kmod_syms.awk acl_nfs4.kld export_syms | = xargs -J% objcopy % acl_nfs4.kld CWD = /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/powerpc.powerpc/sys/GEN= ERICvtsc-NODBG/modules/usr/src/sys/modules/acl_nfs4 TARGET acl_nfs4.kld . . . =46rom readelf -a for the subr_acl_nfs4.o : (acl_nfs4_sync_mode_from_acl is GLOBAL here) . . . Relocation section with addend (.rela.text): r_offset r_info r_type st_value st_name + r_addend 00000076 000014fc 00000000 .got2 + 8022 0000007a 000014fa 00000000 .got2 + 8026 000001ac 00003112 R_PPC_PLTREL24 00000000 groupmember + 8000 00000234 00003012 R_PPC_PLTREL24 00000458 = acl_nfs4_sync_mode_from_acl + 8000 000002c4 00003312 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 000002f4 00003312 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 0000032c 00003312 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 00000360 00003312 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 0000038c 00003312 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 000007c6 000014fc 00000000 .got2 + 800a 000007ca 000014fa 00000000 .got2 + 800e 00001026 000014fc 00000000 .got2 + 8006 0000102a 000014fa 00000000 .got2 + 800a 00001676 000014fc 00000000 .got2 + 800a 0000167a 000014fa 00000000 .got2 + 800e 00001698 00002a12 R_PPC_PLTREL24 00000000 acl_alloc + 8000 000016a8 00003012 R_PPC_PLTREL24 00000458 = acl_nfs4_sync_mode_from_acl + 8000 00001748 00002b12 R_PPC_PLTREL24 00000000 acl_free + 8000 000017e8 00002b12 R_PPC_PLTREL24 00000000 acl_free + 8000 0000183a 000014fc 00000000 .got2 + 800a 0000183e 000014fa 00000000 .got2 + 800e . . . Relocation section with addend (.rela.text): r_offset r_info r_type st_value st_name + r_addend . . . 47: 00000000000007a0 128 FUNC GLOBAL DEFAULT 2 = acl_nfs4_sync_acl_from_mode 48: 0000000000000458 840 FUNC GLOBAL DEFAULT 2 = acl_nfs4_sync_mode_from_acl 49: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND groupmember . . . But after: CMD ld -m elf32ppc_fbsd --secure-plt -d -warn-common -r -d -o = acl_nfs4.kld subr_acl_nfs4.o CMD ctfmerge -L VERSION -g -o acl_nfs4.kld subr_acl_nfs4.o CMD :> export_syms CMD awk -f /usr/src/sys/conf/kmod_syms.awk acl_nfs4.kld export_syms | = xargs -J% objcopy % acl_nfs4.kld =46rom readelf -a for the acl_nfs4.kld : (acl_nfs4_sync_mode_from_acl is LOCAL here) . . . Relocation section with addend (.rela.text): r_offset r_info r_type st_value st_name + r_addend . . . 00000076 000004fc 00000000 .got2 + 8022 0000007a 000004fa 00000000 .got2 + 8026 000001ac 00003012 R_PPC_PLTREL24 00000000 groupmember + 8000 00000234 00002c12 R_PPC_PLTREL24 00000458 = acl_nfs4_sync_mode_from_acl + 8000 000002c4 00003212 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 000002f4 00003212 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 0000032c 00003212 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 00000360 00003212 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 0000038c 00003212 R_PPC_PLTREL24 00000000 priv_check_cred + 8000 000007c6 000004fc 00000000 .got2 + 800a 000007ca 000004fa 00000000 .got2 + 800e 00001026 000004fc 00000000 .got2 + 8006 0000102a 000004fa 00000000 .got2 + 800a 00001676 000004fc 00000000 .got2 + 800a 0000167a 000004fa 00000000 .got2 + 800e 00001698 00003c12 R_PPC_PLTREL24 00000000 acl_alloc + 8000 000016a8 00002c12 R_PPC_PLTREL24 00000458 = acl_nfs4_sync_mode_from_acl + 8000 00001748 00003912 R_PPC_PLTREL24 00000000 acl_free + 8000 000017e8 00003912 R_PPC_PLTREL24 00000000 acl_free + 8000 0000183a 000004fc 00000000 .got2 + 800a 0000183e 000004fa 00000000 .got2 + 800e . . . Symbol table (.symtab) contains 62 entries: Num: Value Size Type Bind Vis Ndx Name . . . 43: 0000000000000000 1112 FUNC LOCAL DEFAULT 1 = vaccess_acl_nfs4 44: 0000000000000458 840 FUNC LOCAL DEFAULT 1 = acl_nfs4_sync_mode_from_acl 45: 000000000000181c 248 FUNC LOCAL DEFAULT 1 = acl_nfs4_check =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Tue Dec 31 07:56:29 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 47E411F60B9 for ; Tue, 31 Dec 2019 07:56:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-54.consmr.mail.gq1.yahoo.com (sonic308-54.consmr.mail.gq1.yahoo.com [98.137.68.30]) (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 47n67b6PQJz41nS for ; Tue, 31 Dec 2019 07:56:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: elHRtHYVM1nu8EHgyM6zkqqaNc1ExhdQq2fY6OUkGnoR0U44LQDEKmeA2RuE44i CgY0UDmihK0qPjsxFBhNd4uAWNpqbnE7ejJcEeAxHVYaf.ATlp49X_qGGVC_LT6JXRRj_CczplKF oIFe0pvaFkxeU3Uw0_RL7JPIRgeYMRwnLyVyIE3Mqqq2Wg31JlxNKxZOz6MClIAgjNBdPgc3c.tu a1pP4Sy8J2ErZwkcRkrG9hXybcEgTpOfUAVa4nbJCf_EQEuKFdp_PdcTr9A7zssUnAlzLqVcsPJv wo8S9Mb_MPaxAsygAt4Bfy6dRXL9Gbl8s4HjdgpYEw0x2tNpTB4rIzbWsN5aRmKuEzEn7xLN5lEw 8SBg597GHvglg4OnQnfZUcGs9bjqgKjchd30Gsdai4hnVs3hzQtyX3ZlotYpT4ZBn_fiqbP_8AHI TDcNQyjAfxxJTShrABDn64.LpTPeimx8nnfWaLwRDwlQ.GkQyz6OVviMRm2RSOQtZXKgIBvgPPVv 3yB309ry0Ik_ST6uo_g05E8_Q7jRkoClU9cDCg2wIjuRPwCVVT0Po7z8guD9NaUHl195lwTIDhWR CdQ.nb4TwTnhKbL8jbhZAxlCnQ4PPIA0YU_B9B9GNTa.OmpMkFxE9jlqzUyzlxGnVuogA4pJirlu 2YSjW3svggJr782cdTTkkkFTM7ibA2stnRorMFCKEVXFMcILnSDihGqqCRaHsRzYci73sF0qwJ6z DMVa8aSeT.jglJj31cz3ogL.CPwTJNBwnbQ0uBwWZYsV2ADExDMmjNofTYVSJO5zo1Pa__JrnjR4 w15JFQS5Der7a_z62Yao4NA.B5iehzEp9GT3nyhTcl7n3qx4nuJhMe1_5NrFjt2oxsjfEAmdpcRE Rg16nsSvr8X1oYaL.cKiX8gON5WJWDo4RW77UhkCtdvTKtnb9CrxM9c2nLdHYfMQ0UnhxxB9hhsw 9ZNfRuzDrbYbXT45kpK8CfsOFVeSMb1s9.fAeFb1L6rBvsIxZ.XLV8BlSzRUE8g5pT0iS27mgP6L Y28zVQ8itXCjvb0dc4VHgo1cwnkwjZoTYrTqxXYCk2eaIMJojMjBvwqefrCNrm3GFwylzASAS24_ rj0.vKRoafMGSrvbnt5IJ95307nBB71YaGzMVO2snCtT4iqgPQCuWx1wFkgdKXvWrLToVQ_1npIq RsNCJ04dVqf.oESjUSd.4Vy5nJ3XiQ7Sv3nMIJestMShyTSRtQSi.qN33cJHV7BWwQgkp_KJj3lo Nscy_aF2iicxVeTsDopOjI0MXFTh8XiaQ3EF3YkxdIJ1LWPaOWuMSOdl4Ma9iOK2vLRzgzJ1DPnQ vSR4KNeyqc9T1.IhNBUpdf9XIPELaTRiNborz_2LJpeaK7rcDC9Cov.D2hyfp8TXclEPjNB6ECA3 UvV4ou2rRtOyXR2kBOOJ_V.F4FBAz4JH4VQ_FpPY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Tue, 31 Dec 2019 07:56:26 +0000 Received: by smtp410.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID a8dff368a7cac2bfc154fbddb001f8b4; Tue, 31 Dec 2019 07:56:21 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: system-clang (elfv2) and devel/binutil@powerpc (32-bit): booting fail very early on PowerMac3,6 example ; also build problem why I tried this Date: Mon, 30 Dec 2019 23:56:20 -0800 References: To: Justin Hibbits , FreeBSD PowerPC ML , FreeBSD Toolchain In-Reply-To: Message-Id: <958E918A-CBC2-4A5C-85C2-23DEAD1EDA53@yahoo.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47n67b6PQJz41nS X-Spamd-Bar: - X-Spamd-Result: default: False [-1.62 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.25)[-0.251,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.87)[-0.870,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (4.89), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.71), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[30.68.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[30.68.137.98.rep.mailspike.net : 127.0.0.17]; 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 07:56:29 -0000 On 2019-Dec-30, at 18:14, Mark Millard wrote: > Because of the (cross-)build failure (from amd64): > > --- acl_nfs4.ko.full --- > ld: acl_nfs4.kld(.text+0x234): R_PPC_PLTREL24 reloc against local symbol > acl_nfs4.kld: could not read symbols: Bad value > *** [acl_nfs4.ko.full] Error code 1 I found something from my old experimental clang build environment for 32-bit powerpc that I'd missed undoing when I tried to put things back to normal. It turned out to be the reason that R_PPC_PLTREL24 was being generated: -mlongcall was missing in my build. (There was a time that clang did not have it but gcc did, so I had it conditional in my old, experimental environment.) With -mlongcall back in place as normal (not just for gcc), system-clang with old ld (cross build) completes buildworld buildkernel . The old 32-bit PowerMac is running an official modern-compiler-based system at last! Cool. Thanks. Sorry for the noise. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Tue Dec 31 09:00:23 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 8F42F1F76D9 for ; Tue, 31 Dec 2019 09:00:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-20.consmr.mail.gq1.yahoo.com (sonic309-20.consmr.mail.gq1.yahoo.com [98.137.65.146]) (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 47n7YL3PqHz443j for ; Tue, 31 Dec 2019 09:00:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Zv0ti80VM1leMHs1DLa23kJwLdodVdCLZrLIXhiBGc8p6kOkmV4UIw9ayEQYoBK Eq7EK5lLe_jTz5ENEH8Vfb7KPC5ZF8QW7Durg0aBI7hneMq5V0pt9ifT7hfW5ec3m_GGfND2G5Bx XcOJTADB_a5BzRYCJA6hxMbfhvy0QFRJPJ2xqCtbyo0EJjsON7FOVh8Zqj7W3AG2Ct0ynMBDE0nT lb3vo0WA9M0CP4rFOSColsBV.AdBiB5YKzsS5muqhESvNVAaE_3oAT3oflWwjVRZ1hkl0g9Cb2GR pyMVjJJQKpVeof18kVPgaYDfpI6N90x4mUG0GpfauznBZmVqb62HRfjetkzQ3DTzzaUkppfn3Zu1 GyFuHTzR760RiPrKA6as2e1_KAck3QSMP4sr7h1HlbsElMOSuyciV5ztlkfkGS30zQagtQWcfxZE 0A.Y5o4RoEiG8fw5abq.2g.BDkOcqALbPN8_KYmFf2cKQo36dAqx1bZHO0nTAsitS7t0yWaze4EW YIqXkqp8.Dwt_efznk_fKkNubCgJ2gMFD0l3CtN8xX.i3q5Iji3gHjJd.4mKQ_SbW6uFFttVwvZS eH8wujR7TSWXkBkuHTHiGHiMP6OhZ7jHk39RhYuzfUI33zqNsdAqiefS6wo6a3EfRJ3rmgEwZcT1 w0AUNJW1Qqq25Sck5BMYV8EgQ7FBiFUuXVp0BhW9jsPbmFJAmbMFGMQ.MT6uAjeKow4.7vSrlakG KD8alEu3oPnGQtrTy7HFHxV9iLRZcfEHiaLkzE3uXVQ2ivpmInvH.PFhI0cuXLEYeUlNjOZHpHFd TwrCNImXJIDEc0I50ayGDUy8I3_kAgCYhQN4vA3zA.OBmXttqS0a3E680Tz_vPo80Weh2GCdjBb_ HDYxMBSq5DUcTrZUXRNtaeJUz9wW8VBsUtICcnd2ctPIPEPuFQYtbtK_SE7Jp6stUixDkJBWCpRK Z2CgFw5C5gd5z9B_gdS6mAYIOpdB1OtHhcIiC3sQo16hq0KNQ_Y1DLUU1e8csgAl2_urH6w24CXd PQov961MC88gnex7A6ouPENW7w0Ta8Vc3lGLgjb5SdI2dD7FNH6J31L4xIZ5xA3NGo1l8nUC3XXf d8.JCVUhDM.peJWyUNLwvsfTgrHvr_bAz3Bee.qPVwYTpqrCU8dP8tGVVXrWXmIUSrY.w6xs.7LY l6J.dVNW5bZ.VPqQ3Ug3NPPD8nsokOznMoa1jUgSaZnRGW6SkqUGwOFty.KekPpS5nkEd7Scpmqy UnUY6GilDBki9SOOOEQBBUlPUFEuLIQzg_EA.uLHdKedNG3O0_MMoPozo3Ozd9I1gYjtcUL1UU21 .yejb7x5CB47V1eTcJ1usCUkthXastvI5pqVvh42q7cuSEisWFg3ArMDsCHGxKAWqUawRhMyRPGd 710HzyAU4xmhuLnqOSc807.iBJ_xAeXNiK68uYUY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Tue, 31 Dec 2019 09:00:20 +0000 Received: by smtp411.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ac8603420c63711fef4aea8cbf1ed437; Tue, 31 Dec 2019 09:00:17 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Old PowerMac3,6 and Giant locking: List of what its boot reports as warnings Message-Id: <1525B89C-CAA3-4113-BE44-3363B5003FB1@yahoo.com> Date: Tue, 31 Dec 2019 01:00:17 -0800 To: FreeBSD Current , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <1525B89C-CAA3-4113-BE44-3363B5003FB1.ref@yahoo.com> X-Rspamd-Queue-Id: 47n7YL3PqHz443j X-Spamd-Bar: - X-Spamd-Result: default: False [-1.14 / 15.00]; ARC_NA(0.00)[]; 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.72)[-0.721,0]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.08)[0.084,0]; 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)[146.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: (7.51), ipnet: 98.137.64.0/21(0.88), 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: Tue, 31 Dec 2019 09:00:23 -0000 Booting head -r356187 on an old G4 PowerMac3,6 shows the following Giant warnings: # dmesg -a | grep Giant WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD = 13.0. WARNING: Device "openfirm" is Giant locked and may be deleted before = FreeBSD 13.0. WARNING: Device "powermac_nvram" is Giant locked and may be deleted = before FreeBSD 13.0. WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD = 13.0. WARNING: Device "consolectl" is Giant locked and may be deleted before = FreeBSD 13.0. ( This was booted with kern.vty=3Dsc , mostly because on some other hardware kern.vty=3Dvt historically did not handle the 2560x1440 screen [crashing during boot] but sc worked fine. ) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) 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) > > From owner-freebsd-ppc@freebsd.org Tue Dec 31 20:34:15 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 E670A1DD001 for ; Tue, 31 Dec 2019 20:34:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (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 47nQxx6CYQz4g5D for ; Tue, 31 Dec 2019 20:34:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: ufXB0.8VM1k5XmUdq3NXP5N6zLCAQjggAWncGYIH3QUSUaoHcYLEJPmdv1uOMkq zJv5drTO90dnULHf3bdRZctJIdKmdLlrFBqbJp.rwrdlqtJmqr8dbtiDTEvcUnFs6ErItsr4B_d3 q0rPzSn7jnKNCflmk3h.C39BeguLHmI_SXppZiISUq9m8.G6V9XNUMireklK6M2zIYXlVkQGxjJe gFXvKyicyxA_0Ut1Mua40A_jlmJ81GncbXhF2UImPa1BEFidWXUOOVaXeqom48TtSmfpiPsuhFE2 qKrGYH1VNj.hIB9WSI6jaIsZSS1HjzWu7pGK99F7sE_KRBRKY0grIJNCd.HhRwrELlEOU.g50DTR .U8tqQyAJjZVKxHo91pSoRpjO3EDBre3cuQa8UuhyaCwPEMBxMUKEXp.Izy43qwXMncHSBzdVuDu zLV_zx4ZyouZjoWeDDt1s7XhSx3NdSChtPNosLD34rVCKk72ZYABMVHuamXOayC.2XR55vdkhmE3 kt24O8hHLmX.d0n3r0eYiHdhVWlDvXBlLx2UvC9tJraX9rAlt7upQqhg9aeeZP_oqWOszhuhbYm4 D2qVa4.nIDV86Z3B484.0yJaV163DGQ8pWZn8ohbS3Fj_JgkmtrF11gAxVgxiPPa2r4kuBSwu4B8 7uCh41_d1MtJ2RtLYmg3rtxv35fzeN7o20XCUhI9Qb5XrhosXjv0EhgX6Gy_.f5NoN2Yo4Xgl4wV UekzwDG_TYl4tjTgFSVZw6HH8Vo_gB5Sf_QDouxC9MNe6narJgBm4DNLJPhZiW8GqRwVEdhc36QQ 9LOZ2gWnGhwDAWOhJ_5eE4uMHyn0oNUaeo0FcF6oXQ7H5aajbcsVTTQgx3zRm8dQE55q3EllKlpG IDF.lhHm0HRGH7rZxQeh1xvF5Sg5hfWalWnfQDRM3Glb__uP1eiO2Tt_nf0Xc9vZyZcxr1yuUVg2 LuBVtPQ9d1f3iiAB7izwIKKK3G14OuSzCIzKnOpof2g3FtVnGLenlhqWFYw1qIolHH5slOG4i3X9 Dh2ovmIDzYvccLDckHkd6wgp8pWy.YUrWiEOBcDHiZDFf0wjuoXO1Dt2LwKokC5hqLGcUUAEUfRn K1EeIcHWGsEIerwLgR21Ek6_1IHZRoG_TxawnvHlNQlqHrduz2VaDfayz_z9zIuR3XkN6QjiN1iS JKtFFOgWThxieyp6_QPza_Mgf9AKKlDhv.CfaaLjLRRsIOpGrFXR91JA15CqAHffPprbsSn5XoYY TOBhsrrgig4UsA_2ZlcWHfbx1qxw00v9LMQWQdJxvtRf2MXyJ9lz3VYFo4E6sxMOVj41nKI3y_ca njJGXj49f9tWjdyaTvDkmL7.sk.vDYRX6Ti7dTsK7h6Yv1FRJWD385I1zrybb21DpatV3T3D0xd8 hBHSwBelN60agnSkJD0A- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Tue, 31 Dec 2019 20:34:10 +0000 Received: by smtp416.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 732c9be7cfcac5e65a864974e6c6339f; Tue, 31 Dec 2019 20:34:09 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: head -r356187 from TARGET_ARCH=powerpc vs. booting 32-bit on PowerMac G5's (64-bit hardware): fails in my context Message-Id: Date: Tue, 31 Dec 2019 12:34:08 -0800 To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: X-Rspamd-Queue-Id: 47nQxx6CYQz4g5D X-Spamd-Bar: / X-Spamd-Result: default: False [-0.93 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.55)[-0.547,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (5.53), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.71), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.12)[0.118,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[83.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[83.69.137.98.rep.mailspike.net : 127.0.0.17]; 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 20:34:16 -0000 Historically 32-bit powerpc systems were my "universal builds" in that they booted all the PowerMac variants that I had access to (that could boot FreeBSD at all). But it has been a long time since I've dealt with 32-bit updates so the following report need not be new behavior. Also, I have patches for FreeBSD tied to handling various PowerMac related oddities, so this report is not about a pure official-FreeBSD build. (Those have known problems of their own.) I've access to 2 types of PowerMac G5's: One with 2 sockets, 1 core/socket, 8 GiBytes RAM Two with 2 sockets, 2 cores/socket, 16 GiB/12 GiB Neither type makes it to a boot prompt. The detailed behavior varies some between the two types. By the way, the G4 PowerMac example, used as a contrasting 32-bit hardware context, has 2 sockets, 1 core each, 2 GiBytes RAM. This context works. For G5's with 2 sockets, 2 cores each: Reaches "Root mount waiting for: CAM". Prior to this things seem fine. But it is stuck there, repeating the notice and periodically reporting IO errors that have run out of re-tries for the SATA SSD (for the same SSD it just used to get this far: no other media present). It is the same SSD I boot in the G4 example just fine. (I've historically moved media around between compatible machines instead of having separate media set up for each.) For G5 with 2 sockets, 1 core each: Reaches "Root mount waiting for: CAM". Prior to this things seem fine. As expected the messages do repeat a few times. It does manage to output its equivalent of what on the G4 looks like: ada0 at ata2 bus 0 scbus2 target 0 lun 0 ada0: ATA8-ACS SATA 2.x device ada0: Serial Number ada0: 100.000MB/s transfers (UDMA5, PIO 512bytes) ada0: 114473MB (234441648 512 byte sectors) cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present (I decided to not take a picture for the G5 and retype it all from the image.) So it indicates doing some I/O with the SSD that the other G5 type failed to do. But it then complains about not being able to handle /dev/ and ends up at the db> prompt. It is, again, the same SSD I boot in the G4 example just fine. (I've historically moved media around between compatible machines instead of having separate media set up for each.) Note: I've not yet dealt with switching powerpc64 to an ELFv2-vintage FreeBSD. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Tue Dec 31 22:52:12 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 937411DF847 for ; Tue, 31 Dec 2019 22:52:12 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (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 47nV1653dCz3JL4 for ; Tue, 31 Dec 2019 22:52:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: OsVdo3kVM1lfAtlogCFYfFCBLf94zzBdVlGv7XJobTRq83tiAtsM2PqrYSdZNUr ufCsr_fusXpEWHLzIuNO61sJyceoP069ZbgzGMUQeWB5F2LyEa1ijxqKqyvEfJLuwgkwd6fAnFLN LXlevbSmbBz7ZxRJK8K.5ABbtIVknX6A2TpJY9JC32z49DPQhEcE3azHX1suOYQL1oMI4Y.516st C.7UJq2.VWQFORtZ.jFaEKaKtwrFcDF2XpEb1.NnfJh5Vg88vAAnhPqROKlzLsVMi65kMSN7akrq 0hriHZ4GTfXY7pUNpFzoiL9juTlabzF9wSitnzkb49dUO2l4JS_wJhikP_3QmitOXffjP4TR7EIS 6RDuWlszkpJrQdhvbWZVOF0hEeuKNzquw_pvQ.9bjfwqNFFRXphvpayzUpUoTLr9YbzptUHZ_CXl 5UMlECtfWhqDTNGRMobmawersJhLQQL3v4gSQAOOEYsiqGdfsnTfX3mvRcZzqzjg1DcfCnHR.Yl9 wOaKL1BjBJrOJYnVSu9iBic_LUiknGEXZCs_sZHrdF3rRyTS1dWrlK_p.zDMMWohJPL02bopZQGM wSjv_M.yas6RBK7A_lYRFv8QYhtccPMXY5Sru2MvvHzYP60E0Ozz91BUy2zHOCsFINpnPQaMOvDA fV0EZSQNAEtx34jN5oRuNVVld6iZvOZiMuSSM86IKSpWmykAGulwr1DoOh_3kKi5scqT3gARyFGO rWO44BCpLkQahzSuGht6CEJOwGLgSRkqYN.c5mOnxKlEJCNWXQgLKbGCunBd0triMdnhnqM81OO6 Rl7C8hYB.9u07LL9Yv6lfK3KpjChQQ4xdUGbPJqwFnXXmC6wPj3TzabQXJgF.KNMyXurIqU29w1A qfntK5vXgeIuv.tlOmZn9r9EbO67PdBwzmnox_k8HoAFLoVohKDJA6B3KZioTSIW50kE2jGXIhmj 4GSnDY..ypI5gZsRVJSSE3SqQk6o75lAMz4kfQisvkI_CuB77HYzw.vNOkHpb9PqQerKGOG3AXVd dxFTKybUiIWaFw_rxCzF119V8XeIgEZooCP6sjPP3gFpgA3eZcZUwIAG.29z35CC1m8B3MLRS1Yn Mol7it209WV2dnx5fvctMyn6veUFzjvBm0sxRbvusAO97oYKlDHPo._i1Fzuai5C5L_Kd1J0Jz1z x8IrcM3ZQQDYyACWpB19heYyz1hXv6Iyh4rfZrO2bUI8MGNzYAx0s4M_ZX_eYtksMTlgXP.hf5xM NvNrBHVFJmznQ1zx56HZCk53Af.VSN8iunjODXZJIRsVjto6TlWEGFTGg7vi5wKewleUokclwRdF 3uYSr0DiSuaoBbKtqbfsDcsA0WhTE38sxGOktkprs.ge77q_wSmctmnqs_x9dImseLutU3sZwyrS OOebXdBnwRqxkmKamWl5LFKRTLf8P4OIGQZEm1w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Tue, 31 Dec 2019 22:52:08 +0000 Received: by smtp423.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0d201687d6c8d1df5e90144631eb8e88; Tue, 31 Dec 2019 22:52:07 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: 32-bit powerpc kernel builds (head -r356187): old ld (works) vs. devel/binutils@powerpc based (fails to boot): DYNAMIC vs. EXEC_P Message-Id: Date: Tue, 31 Dec 2019 14:52:06 -0800 Cc: FreeBSD Toolchain To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: X-Rspamd-Queue-Id: 47nV1653dCz3JL4 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.839,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; 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.976,0]; 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)[206.64.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: (1.60), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.71), country: US(-0.05)]; 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 22:52:12 -0000 My attempt to buildkernel via devel/binutils@powerpc produces a kernel that gets a very early crash. Looking at the normal and alternate kernels a little shows. . . Old ld (and such): /boot/kernel/kernel: file format elf32-powerpc-freebsd /boot/kernel/kernel architecture: powerpc:common, flags 0x00000150: HAS_SYMS, DYNAMIC, D_PAGED start address 0x001001e0 . . . 00e7a034 l O *ABS* 00000000 .hidden _DYNAMIC Produced via (from kernel.full.meta): CMD @ld -m elf32ppc_fbsd -Bdynamic -T /usr/src/sys/conf/ldscript.powerpc = --secure-plt -pie --no-warn-mismatch --warn-common --export-dynamic = --dynamic-linker /red/herring -X -o kernel.full locore.o . . . devel/binutils@powerpc based: /boot/kerbad/kernel: file format elf32-powerpc-freebsd /boot/kerbad/kernel architecture: powerpc:common, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x00100200 00e7a034 l O .dynamic 00000000 _DYNAMIC Produced via (from kernel.full.meta): CMD @/usr/local/powerpc-unknown-freebsd13.0/bin/ld -m elf32ppc_fbsd = -Bdynamic -T /usr/src/sys/conf/ldscript.powerpc --secure-plt = --build-id=3Dsha1 -pie --no-warn-mismatch --warn-common = --export-dynamic --dynamic-linker /red/herring -X -o kernel.full locore.o . . . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Wed Jan 1 00:41:53 2020 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 3A97C1E16A8; Wed, 1 Jan 2020 00:41:53 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nXRh62Mkz3Nn7; Wed, 1 Jan 2020 00:41:52 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-7.local (unknown [IPv6:2601:648:8881:1e90:9916:9604:53d0:4c9f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 3BC1E28D61; Wed, 1 Jan 2020 00:41:52 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: devel/freebsd-gcc9@powerpc (for example) : it has the clang vs. gcc vec_step name conflict (for powerpc families): build fails under clang To: Mark Millard , Gerald Pfeifer Cc: freebsd-toolchain@freebsd.org, freebsd-ppc@freebsd.org, freebsd-ports@freebsd.org References: From: John Baldwin Openpgp: preference=signencrypt Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW0Dk0 c9MBl0pz+H01dA2ZSGZ5fXlmFIsee1WEzqeJzpiwd/pejPgSzXB9ijbLHZ2/E0jhGBcVy5Yo /Tw5+U/+laeYKu2xb0XPvM0zMNls1ah5OnP9a6Ql6wCgupaoMySb7DXm2LHD1Z9jTsHcAQMD /1jzh2BoHriy/Q2s4KzzjVp/mQO5DSm2z14BvbQRcXU48oAosHA1u3Wrov6LfPY+0U1tG47X 1BGfnQH+rNAaH0livoSBQ0IPI/8WfIW7ub4qV6HYwWKVqkDkqwcpmGNDbz3gfaDht6nsie5Z pcuCcul4M9CW7Md6zzyvktjnbz61BADGDCopfZC4of0Z3Ka0u8Wik6UJOuqShBt1WcFS8ya1 oB4rc4tXfSHyMF63aPUBMxHR5DXeH+EO2edoSwViDMqWk1jTnYza51rbGY+pebLQOVOxAY7k do5Ordl3wklBPMVEPWoZ61SdbcjhHVwaC5zfiskcxj5wwXd2E9qYlBqRg7QeSm9obiBCYWxk d2luIDxqaGJARnJlZUJTRC5vcmc+iGAEExECACAFAkTQ+awCGwMGCwkIBwMCBBUCCAMEFgID AQIeAQIXgAAKCRBy3lIGd+N/BI6RAJ9S97fvbME+3hxzE3JUyUZ6vTewDACdE1stFuSfqMvM jomvZdYxIYyTUpC5Ag0ERND5ghAIAPwsO0B7BL+bz8sLlLoQktGxXwXQfS5cInvL17Dsgnr3 1AKa94j9EnXQyPEj7u0d+LmEe6CGEGDh1OcGFTMVrof2ZzkSy4+FkZwMKJpTiqeaShMh+Goj XlwIMDxyADYvBIg3eN5YdFKaPQpfgSqhT+7El7w+wSZZD8pPQuLAnie5iz9C8iKy4/cMSOrH YUK/tO+Nhw8Jjlw94Ik0T80iEhI2t+XBVjwdfjbq3HrJ0ehqdBwukyeJRYKmbn298KOFQVHO EVbHA4rF/37jzaMadK43FgJ0SAhPPF5l4l89z5oPu0b/+5e2inA3b8J3iGZxywjM+Csq1tqz hltEc7Q+E08AAwUIAL+15XH8bPbjNJdVyg2CMl10JNW2wWg2Q6qdljeaRqeR6zFus7EZTwtX sNzs5bP8y51PSUDJbeiy2RNCNKWFMndM22TZnk3GNG45nQd4OwYK0RZVrikalmJY5Q6m7Z16 4yrZgIXFdKj2t8F+x613/SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: <70ace2dc-ab93-3fee-8ecf-019730195d5a@FreeBSD.org> Date: Tue, 31 Dec 2019 16:41:51 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Wed, 01 Jan 2020 00:41:53 -0000 On 12/26/19 11:39 PM, Mark Millard wrote: >>> is missing the patch-clang-vec_step that is in: >>> >>> FBSDG5L2# ls -laT /usr/ports/lang/gcc9/files/ >> >> That is a hack that can be used to work around the issue; I strongly >> recommend addressing this in clang properly, though. I think using the hack patch in devel/freebsd-gcc* is fine for now, but can you confirm if both 6 and 9 need it or only 9? -- John Baldwin From owner-freebsd-ppc@freebsd.org Wed Jan 1 00:44:41 2020 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 B5E901E1A58 for ; Wed, 1 Jan 2020 00:44:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-55.consmr.mail.gq1.yahoo.com (sonic315-55.consmr.mail.gq1.yahoo.com [98.137.65.31]) (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 47nXVw53DRz3P0F for ; Wed, 1 Jan 2020 00:44:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: YN99qD0VM1mxXpi6XImlX.UamBTISCi4aFoef1obZwXZiXTw8D5qVvCbMXE0JCq gfclnhB37sKodnLw6C4lWZO6t4mARsEVCin65xWJ4oyd01dC8pS0AA7mSssAtXSQxX_5wsrivp_F rnUREfalrOQHjYt.PgjXgGskyuIVp.zWd9CTzVSATryIwZQ6oZ_TVUNUmPcGvcqzcCbpg1_DpW_3 Ef6KPZR4V2O5xtEtMU1O2tm9wY71dnFAdZLebmHdgYdxpn4xu8mFBPotrUk0nDtfGTZ_Wg_VGgk1 QJCirOFGvLEJyleFtWIG1Ay8Zxjguwo105hyqzvkY1C.s50jwZ24ahLuIOl3eapCbuZVQ9LBdy.a ytMjQtg8xEv.CmBAema1YnL5a7ykER8nIaHvVLXeSVf57eaWu0MSHYKXnlEfx9XVGvGbqJAqqJvb zap0G_o05HVOYuRuVdv.RAc9sGds6i_sy9A5DjkXUPFiSYrPKpVAaa6Fm0FhdOkjGGDdV4FZTAOC IZ8_sZ4ql71066n7LvDa.z0dG3giqUEkN1r0mI8H4zHgMzpsNN3M94FyiyttXNFpSvS0DQZMOCEe jQ4lbPeF0zJLp4F2AFJePw_no.unQDcvbpJcIaBr.VL_QUUYME7jZfSdXKrGTBi7d9h7GwElPukR Dg1qbER9v45yrpW23Dx8k9u_Qx5CLXtTZQgH_yrs_Eu1E.4zHBf0AB0m5UrznQMRByNVhUyTRgUT 0OGHTvGEQcbNdzxidsSn2FxGCBKG08H7Tf0hmYR8e2bUim2cbAp28iNhTnCvyRJiQ8pW9zL0fbXK qwZjRDlEM0Mx2KMHmTuLuwBIEQ8rZu2pN1WISvn8lC5jmS1LVsvEuXFgvdAb.8h1bItnp8d62u67 7DxmM9ywKCnpj__zSEqiOCaXrx4RqjxZQMyd_q_J2l8CMwjH9eL.LMDP2zs19kMVEbnq9Pt6dn0v xhZQ9EnGrBrLZWSEERXfOuGLCalV8VoI2_.wSNbzkgZVsMBYUKQFPdmsLUlbqFd4Cd3Am_NuGNaM _yuBT0SxhFCmtYxlwN7Ukj1zSlMsDeL1L96SO9IIOM.qk_Hvet0LIY.X37pcK2nRzmz6blyq20h5 sVapUKiKry1FPcdCS8TbkTWaa6qoRMVpqYes2erJdZY0z3oWMDSwnhB.jr5GcjPuxtVqc8f_ZhF2 tVUVa1xOZFkpJkWL3ubBInvrCjze2L0nQTeLhvDpEtbJqg9pDAgmq9c4x7LkEbu1fyqcIEUuolCA XUvYb2NbdApZHq3FdAOvNOpr6KUnoTbEcQ6uzW_JEW3ROweN.gyr7U7ME02ZvzWd93CpvER6zKVZ BBhCYNV4moSKqzOPckXCYxDnu5I0wz7zuWJGrkQUZUg17fftGSpJrWYZ00zMlA_PYu6Td7actJy_ .hWHy4TluExQtHH47Z.mkbUhMdwSZ Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Wed, 1 Jan 2020 00:44:39 +0000 Received: by smtp422.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 4d7a3b991e6c3e3ff6628ba0d077bcfc; Wed, 01 Jan 2020 00:44:33 +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: 32-bit powerpc kernel builds (head -r356187): old ld (works) vs. devel/binutils@powerpc based (fails to boot): DYNAMIC vs. EXEC_P From: Mark Millard In-Reply-To: Date: Tue, 31 Dec 2019 16:44:32 -0800 Cc: FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: References: To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47nXVw53DRz3P0F X-Spamd-Bar: - X-Spamd-Result: default: False [-1.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.17)[-0.173,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.65)[-0.649,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)[31.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: (5.26), ipnet: 98.137.64.0/21(0.88), 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: Wed, 01 Jan 2020 00:44:41 -0000 On 2019-Dec-31, at 14:52, Mark Millard wrote: > My attempt to buildkernel via devel/binutils@powerpc > produces a kernel that gets a very early crash. >=20 > Looking at the normal and alternate kernels a little > shows. . . >=20 >=20 >=20 > Old ld (and such): >=20 > /boot/kernel/kernel: file format elf32-powerpc-freebsd > /boot/kernel/kernel > architecture: powerpc:common, flags 0x00000150: > HAS_SYMS, DYNAMIC, D_PAGED > start address 0x001001e0 > . . . > 00e7a034 l O *ABS* 00000000 .hidden _DYNAMIC >=20 > Produced via (from kernel.full.meta): >=20 > CMD @ld -m elf32ppc_fbsd -Bdynamic -T = /usr/src/sys/conf/ldscript.powerpc --secure-plt -pie --no-warn-mismatch = --warn-common --export-dynamic --dynamic-linker /red/herring -X -o = kernel.full locore.o . . . >=20 >=20 > devel/binutils@powerpc based: >=20 > /boot/kerbad/kernel: file format elf32-powerpc-freebsd > /boot/kerbad/kernel > architecture: powerpc:common, flags 0x00000112: > EXEC_P, HAS_SYMS, D_PAGED > start address 0x00100200 >=20 > 00e7a034 l O .dynamic 00000000 _DYNAMIC >=20 > Produced via (from kernel.full.meta): >=20 > CMD @/usr/local/powerpc-unknown-freebsd13.0/bin/ld -m elf32ppc_fbsd = -Bdynamic -T /usr/src/sys/conf/ldscript.powerpc --secure-plt = --build-id=3Dsha1 -pie --no-warn-mismatch --warn-common = --export-dynamic > --dynamic-linker /red/herring -X -o kernel.full locore.o . . . _GLOBAL_OFFSET_TABLE_ has a similar status. In fact, there is a big difference in the two context's ABS lists: devel/binutils@powerpc produces a very short list: # readelf -a /boot/kerbad/kernel | grep "\" | more 2: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize 569: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase 5103: 0000000000000020 0 NOTYPE GLOBAL DEFAULT ABS testppc64size 8156: 0000000000000018 0 NOTYPE GLOBAL DEFAULT ABS = restorebridgesize 9078: 00000000000000b0 0 NOTYPE GLOBAL DEFAULT ABS imisssize 12351: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize 25923: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize 26490: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase 31024: 0000000000000020 0 NOTYPE GLOBAL DEFAULT ABS testppc64size 34077: 0000000000000018 0 NOTYPE GLOBAL DEFAULT ABS = restorebridgesize 34999: 00000000000000b0 0 NOTYPE GLOBAL DEFAULT ABS imisssize 38272: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize but the old ld produces a much longer list: # readelf -a /boot/kernel/kernel | grep "\" | more 2: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize 212: 0000000000e793dc 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_gfb_set 462: 0000000000e793c8 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_mmu_set 569: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase 1334: 0000000000dd5728 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_probes_set 1395: 0000000000e5e608 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_vnet 1765: 0000000001183648 0 NOTYPE GLOBAL DEFAULT ABS end 1798: 0000000000dd36d0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysinit_set 1857: 0000000000dd4e34 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_modmetadata_set 2001: 0000000000dd7984 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_uart_fdt_class_and_device_set 2271: 0000000000dd5648 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_cam_xpt_proto_set 2384: 0000000000dd561c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_cam_xpt_xport_set 2669: 0000000000dd407c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_modmetadata_set 2746: 0000000000dd9ef8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_pcpu 3281: 0000000000e793d8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_videodriver_set 3324: 0000000000e793d4 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_mmu_set 3365: 0000000000e793c0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_compressors 3430: 0000000000dd7960 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_scterm_set 3573: 0000000000dd5648 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_cam_xpt_xport_set 3892: 0000000000dd5684 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_ofw_set 4195: 0000000000dd7988 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_uart_fdt_class_and_device_set 4226: 0000000000dd36d0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sysuninit_set 4322: 0000000000dd7954 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_argtypes_set 4329: 0000000000e793e0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_platform_set 4571: 0000000000dd7a00 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_pcpu 4676: 0000000000dd7960 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_cons_set 4736: 0000000000dd2468 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sysinit_set 4880: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS begin 4919: 0000000000dd56d0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_providers_set 5094: 0000000000dd7990 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_vt_drv_set 5104: 0000000000000020 0 NOTYPE GLOBAL DEFAULT ABS testppc64size 5114: 0000000000e793e0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_gfb_set 6014: 0000000000dc0328 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sysctl_set 6334: 0000000000dd5668 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_kdb_dbbe_set 6742: 0000000000dd5f8c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_probes_set 6783: 0000000000dd797c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_cons_set 6846: 0000000000a29924 0 NOTYPE GLOBAL DEFAULT ABS _etext 7033: 0000000000e793e8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_platform_set 7243: 0000000000e793c0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_vnet 7507: 0000000000e793d8 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_scrndr_set 7624: 0000000000dd7984 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_gdb_dbgport_set 7732: 0000000000e793c8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_compressors 8087: 0000000000e793dc 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_scrndr_set 8156: 0000000000000018 0 NOTYPE GLOBAL DEFAULT ABS = restorebridgesize 8744: 0000000000dd5674 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_ofw_set 8758: 0000000000dd797c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_gdb_dbgport_set 8844: 0000000000dd5f8c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_argtypes_set 9079: 00000000000000b0 0 NOTYPE GLOBAL DEFAULT ABS imisssize 9271: 0000000000dd407c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysuninit_set 9509: 0000000000dd565c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_cam_xpt_proto_set 9761: 0000000000dd565c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_kdb_dbbe_set 9774: 0000000000dd5668 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_kbddriver_set 10044: 0000000000dd5674 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_kbddriver_set 10068: 0000000000dd5728 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_providers_set 10096: 0000000001183648 0 NOTYPE GLOBAL DEFAULT ABS _end 10706: 0000000000e793d4 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_videodriver_set 10909: 0000000000dd7954 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_scterm_set 11510: 0000000000e9786c 0 NOTYPE GLOBAL DEFAULT ABS _edata 11935: 0000000000dd7988 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_vt_drv_set 12130: 0000000000dc2240 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysctl_set 12351: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize 25863: 0000000000e7a028 0 OBJECT LOCAL HIDDEN ABS = _GLOBAL_OFFSET_TABLE_ 25864: 0000000000e7a034 0 OBJECT LOCAL HIDDEN ABS _DYNAMIC 25921: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize 26131: 0000000000e793dc 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_gfb_set 26381: 0000000000e793c8 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_mmu_set 26488: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase 27253: 0000000000dd5728 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_probes_set 27314: 0000000000e5e608 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_vnet 27684: 0000000001183648 0 NOTYPE GLOBAL DEFAULT ABS end 27717: 0000000000dd36d0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysinit_set 27776: 0000000000dd4e34 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_modmetadata_set 27920: 0000000000dd7984 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_uart_fdt_class_and_device_set 28190: 0000000000dd5648 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_cam_xpt_proto_set 28303: 0000000000dd561c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_cam_xpt_xport_set 28588: 0000000000dd407c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_modmetadata_set 28665: 0000000000dd9ef8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_pcpu 29200: 0000000000e793d8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_videodriver_set 29243: 0000000000e793d4 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_mmu_set 29284: 0000000000e793c0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_compressors 29349: 0000000000dd7960 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_scterm_set 29492: 0000000000dd5648 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_cam_xpt_xport_set 29811: 0000000000dd5684 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_ofw_set 30114: 0000000000dd7988 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_uart_fdt_class_and_device_set 30145: 0000000000dd36d0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sysuninit_set 30241: 0000000000dd7954 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_argtypes_set 30248: 0000000000e793e0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_platform_set 30490: 0000000000dd7a00 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_pcpu 30595: 0000000000dd7960 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_cons_set 30655: 0000000000dd2468 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sysinit_set 30799: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS begin 30838: 0000000000dd56d0 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_providers_set 31013: 0000000000dd7990 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_vt_drv_set 31023: 0000000000000020 0 NOTYPE GLOBAL DEFAULT ABS testppc64size 31033: 0000000000e793e0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_gfb_set 31933: 0000000000dc0328 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sysctl_set 32253: 0000000000dd5668 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_kdb_dbbe_set 32661: 0000000000dd5f8c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_probes_set 32702: 0000000000dd797c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_cons_set 32765: 0000000000a29924 0 NOTYPE GLOBAL DEFAULT ABS _etext 32952: 0000000000e793e8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_platform_set 33162: 0000000000e793c0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_vnet 33426: 0000000000e793d8 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_scrndr_set 33543: 0000000000dd7984 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_gdb_dbgport_set 33651: 0000000000e793c8 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_compressors 34006: 0000000000e793dc 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_scrndr_set 34075: 0000000000000018 0 NOTYPE GLOBAL DEFAULT ABS = restorebridgesize 34663: 0000000000dd5674 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_ofw_set 34677: 0000000000dd797c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_gdb_dbgport_set 34763: 0000000000dd5f8c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_argtypes_set 34998: 00000000000000b0 0 NOTYPE GLOBAL DEFAULT ABS imisssize 35190: 0000000000dd407c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysuninit_set 35428: 0000000000dd565c 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_cam_xpt_proto_set 35680: 0000000000dd565c 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_kdb_dbbe_set 35693: 0000000000dd5668 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_kbddriver_set 35963: 0000000000dd5674 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_kbddriver_set 35987: 0000000000dd5728 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_providers_set 36015: 0000000001183648 0 NOTYPE GLOBAL DEFAULT ABS _end 36625: 0000000000e793d4 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_videodriver_set 36828: 0000000000dd7954 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_scterm_set 37429: 0000000000e9786c 0 NOTYPE GLOBAL DEFAULT ABS _edata 37854: 0000000000dd7988 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_vt_drv_set 38049: 0000000000dc2240 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysctl_set 38270: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize So what do the __start_set_* and __stop_set_* symbols show up as in /boot/kerbad/kernel generally? PROTECTED visibility as a GLOBAL as it turns out: # readelf -a /boot/kerbad/kernel | egrep "__(start|stop)_set_" | more 00e83680 002c0701 R_PPC_ADDR32 00000000 = __stop_set_uart_fdt_class_set + 0 00e83684 0021a801 R_PPC_ADDR32 00000000 = __start_set_uart_fdt_class_set + 0 212: 0000000000e793dc 0 NOTYPE GLOBAL PROTECTED 48 = __start_set_gfb_set 462: 0000000000e793c8 0 NOTYPE GLOBAL PROTECTED 45 = __start_set_mmu_set 1334: 0000000000dd5728 0 NOTYPE GLOBAL PROTECTED 34 = __start_set_sdt_probes_set 1395: 0000000000e5e608 0 NOTYPE GLOBAL PROTECTED 43 = __start_set_vnet 1798: 0000000000dd36d0 0 NOTYPE GLOBAL PROTECTED 23 = __stop_set_sysinit_set 1857: 0000000000dd4e34 0 NOTYPE GLOBAL PROTECTED 25 = __stop_set_modmetadata_set 2001: 0000000000dd7984 0 NOTYPE GLOBAL PROTECTED 39 = __start_set_uart_fdt_class_and_device_set 2271: 0000000000dd5648 0 NOTYPE GLOBAL PROTECTED 28 = __start_set_cam_xpt_proto_set 2383: 0000000000dd561c 0 NOTYPE GLOBAL PROTECTED 27 = __start_set_cam_xpt_xport_set 2669: 0000000000dd407c 0 NOTYPE GLOBAL PROTECTED 25 = __start_set_modmetadata_set 2746: 0000000000dd9ef8 0 NOTYPE GLOBAL PROTECTED 41 = __stop_set_pcpu 3281: 0000000000e793d8 0 NOTYPE GLOBAL PROTECTED 46 = __stop_set_videodriver_set 3324: 0000000000e793d4 0 NOTYPE GLOBAL PROTECTED 45 = __stop_set_mmu_set 3365: 0000000000e793c0 0 NOTYPE GLOBAL PROTECTED 44 = __start_set_compressors 3429: 0000000000dd7960 0 NOTYPE GLOBAL PROTECTED 36 = __stop_set_scterm_set 3573: 0000000000dd5648 0 NOTYPE GLOBAL PROTECTED 27 = __stop_set_cam_xpt_xport_set 3892: 0000000000dd5684 0 NOTYPE GLOBAL PROTECTED 31 = __stop_set_ofw_set 4195: 0000000000dd7988 0 NOTYPE GLOBAL PROTECTED 39 = __stop_set_uart_fdt_class_and_device_set 4226: 0000000000dd36d0 0 NOTYPE GLOBAL PROTECTED 24 = __start_set_sysuninit_set 4322: 0000000000dd7954 0 NOTYPE GLOBAL PROTECTED 35 = __stop_set_sdt_argtypes_set 4329: 0000000000e793e0 0 NOTYPE GLOBAL PROTECTED 49 = __start_set_platform_set 4570: 0000000000dd7a00 0 NOTYPE GLOBAL PROTECTED 41 = __start_set_pcpu 4676: 0000000000dd7960 0 NOTYPE GLOBAL PROTECTED 37 = __start_set_cons_set 4736: 0000000000dd2468 0 NOTYPE GLOBAL PROTECTED 23 = __start_set_sysinit_set 4918: 0000000000dd56d0 0 NOTYPE GLOBAL PROTECTED 33 = __start_set_sdt_providers_set 5094: 0000000000dd7990 0 NOTYPE GLOBAL PROTECTED 40 = __stop_set_vt_drv_set 5114: 0000000000e793e0 0 NOTYPE GLOBAL PROTECTED 48 = __stop_set_gfb_set 6014: 0000000000dd0550 0 NOTYPE GLOBAL PROTECTED 22 = __start_set_sysctl_set 6334: 0000000000dd5668 0 NOTYPE GLOBAL PROTECTED 29 = __stop_set_kdb_dbbe_set 6742: 0000000000dd5f8c 0 NOTYPE GLOBAL PROTECTED 34 = __stop_set_sdt_probes_set 6784: 0000000000dd797c 0 NOTYPE GLOBAL PROTECTED 37 = __stop_set_cons_set 7033: 0000000000e793e8 0 NOTYPE GLOBAL PROTECTED 49 = __stop_set_platform_set 7243: 0000000000e793c0 0 NOTYPE GLOBAL PROTECTED 43 = __stop_set_vnet 7507: 0000000000e793d8 0 NOTYPE GLOBAL PROTECTED 47 = __start_set_scrndr_set 7624: 0000000000dd7984 0 NOTYPE GLOBAL PROTECTED 38 = __stop_set_gdb_dbgport_set 7732: 0000000000e793c8 0 NOTYPE GLOBAL PROTECTED 44 = __stop_set_compressors 8088: 0000000000e793dc 0 NOTYPE GLOBAL PROTECTED 47 = __stop_set_scrndr_set 8616: 0000000000000000 0 NOTYPE WEAK DEFAULT UND = __start_set_uart_fdt_class_set 8745: 0000000000dd5674 0 NOTYPE GLOBAL PROTECTED 31 = __start_set_ofw_set 8758: 0000000000dd797c 0 NOTYPE GLOBAL PROTECTED 38 = __start_set_gdb_dbgport_set 8844: 0000000000dd5f8c 0 NOTYPE GLOBAL PROTECTED 35 = __start_set_sdt_argtypes_set 9271: 0000000000dd407c 0 NOTYPE GLOBAL PROTECTED 24 = __stop_set_sysuninit_set 9509: 0000000000dd565c 0 NOTYPE GLOBAL PROTECTED 28 = __stop_set_cam_xpt_proto_set 9760: 0000000000dd565c 0 NOTYPE GLOBAL PROTECTED 29 = __start_set_kdb_dbbe_set 9774: 0000000000dd5668 0 NOTYPE GLOBAL PROTECTED 30 = __start_set_kbddriver_set 10044: 0000000000dd5674 0 NOTYPE GLOBAL PROTECTED 30 = __stop_set_kbddriver_set 10068: 0000000000dd5728 0 NOTYPE GLOBAL PROTECTED 33 = __stop_set_sdt_providers_set 10706: 0000000000e793d4 0 NOTYPE GLOBAL PROTECTED 46 = __start_set_videodriver_set 10909: 0000000000dd7954 0 NOTYPE GLOBAL PROTECTED 36 = __start_set_scterm_set 11271: 0000000000000000 0 NOTYPE WEAK DEFAULT UND = __stop_set_uart_fdt_class_set 11935: 0000000000dd7988 0 NOTYPE GLOBAL PROTECTED 40 = __start_set_vt_drv_set 12130: 0000000000dd2468 0 NOTYPE GLOBAL PROTECTED 22 = __stop_set_sysctl_set 26133: 0000000000e793dc 0 NOTYPE GLOBAL PROTECTED 48 = __start_set_gfb_set 26383: 0000000000e793c8 0 NOTYPE GLOBAL PROTECTED 45 = __start_set_mmu_set 27255: 0000000000dd5728 0 NOTYPE GLOBAL PROTECTED 34 = __start_set_sdt_probes_set 27316: 0000000000e5e608 0 NOTYPE GLOBAL PROTECTED 43 = __start_set_vnet 27719: 0000000000dd36d0 0 NOTYPE GLOBAL PROTECTED 23 = __stop_set_sysinit_set 27778: 0000000000dd4e34 0 NOTYPE GLOBAL PROTECTED 25 = __stop_set_modmetadata_set 27922: 0000000000dd7984 0 NOTYPE GLOBAL PROTECTED 39 = __start_set_uart_fdt_class_and_device_set 28192: 0000000000dd5648 0 NOTYPE GLOBAL PROTECTED 28 = __start_set_cam_xpt_proto_set 28304: 0000000000dd561c 0 NOTYPE GLOBAL PROTECTED 27 = __start_set_cam_xpt_xport_set 28590: 0000000000dd407c 0 NOTYPE GLOBAL PROTECTED 25 = __start_set_modmetadata_set 28667: 0000000000dd9ef8 0 NOTYPE GLOBAL PROTECTED 41 = __stop_set_pcpu 29202: 0000000000e793d8 0 NOTYPE GLOBAL PROTECTED 46 = __stop_set_videodriver_set 29245: 0000000000e793d4 0 NOTYPE GLOBAL PROTECTED 45 = __stop_set_mmu_set 29286: 0000000000e793c0 0 NOTYPE GLOBAL PROTECTED 44 = __start_set_compressors 29350: 0000000000dd7960 0 NOTYPE GLOBAL PROTECTED 36 = __stop_set_scterm_set 29494: 0000000000dd5648 0 NOTYPE GLOBAL PROTECTED 27 = __stop_set_cam_xpt_xport_set 29813: 0000000000dd5684 0 NOTYPE GLOBAL PROTECTED 31 = __stop_set_ofw_set 30116: 0000000000dd7988 0 NOTYPE GLOBAL PROTECTED 39 = __stop_set_uart_fdt_class_and_device_set 30147: 0000000000dd36d0 0 NOTYPE GLOBAL PROTECTED 24 = __start_set_sysuninit_set 30243: 0000000000dd7954 0 NOTYPE GLOBAL PROTECTED 35 = __stop_set_sdt_argtypes_set 30250: 0000000000e793e0 0 NOTYPE GLOBAL PROTECTED 49 = __start_set_platform_set 30491: 0000000000dd7a00 0 NOTYPE GLOBAL PROTECTED 41 = __start_set_pcpu 30597: 0000000000dd7960 0 NOTYPE GLOBAL PROTECTED 37 = __start_set_cons_set 30657: 0000000000dd2468 0 NOTYPE GLOBAL PROTECTED 23 = __start_set_sysinit_set 30839: 0000000000dd56d0 0 NOTYPE GLOBAL PROTECTED 33 = __start_set_sdt_providers_set 31015: 0000000000dd7990 0 NOTYPE GLOBAL PROTECTED 40 = __stop_set_vt_drv_set 31035: 0000000000e793e0 0 NOTYPE GLOBAL PROTECTED 48 = __stop_set_gfb_set 31935: 0000000000dd0550 0 NOTYPE GLOBAL PROTECTED 22 = __start_set_sysctl_set 32255: 0000000000dd5668 0 NOTYPE GLOBAL PROTECTED 29 = __stop_set_kdb_dbbe_set 32663: 0000000000dd5f8c 0 NOTYPE GLOBAL PROTECTED 34 = __stop_set_sdt_probes_set 32705: 0000000000dd797c 0 NOTYPE GLOBAL PROTECTED 37 = __stop_set_cons_set 32954: 0000000000e793e8 0 NOTYPE GLOBAL PROTECTED 49 = __stop_set_platform_set 33164: 0000000000e793c0 0 NOTYPE GLOBAL PROTECTED 43 = __stop_set_vnet 33428: 0000000000e793d8 0 NOTYPE GLOBAL PROTECTED 47 = __start_set_scrndr_set 33545: 0000000000dd7984 0 NOTYPE GLOBAL PROTECTED 38 = __stop_set_gdb_dbgport_set 33653: 0000000000e793c8 0 NOTYPE GLOBAL PROTECTED 44 = __stop_set_compressors 34009: 0000000000e793dc 0 NOTYPE GLOBAL PROTECTED 47 = __stop_set_scrndr_set 34537: 0000000000000000 0 NOTYPE WEAK DEFAULT UND = __start_set_uart_fdt_class_set 34666: 0000000000dd5674 0 NOTYPE GLOBAL PROTECTED 31 = __start_set_ofw_set 34679: 0000000000dd797c 0 NOTYPE GLOBAL PROTECTED 38 = __start_set_gdb_dbgport_set 34765: 0000000000dd5f8c 0 NOTYPE GLOBAL PROTECTED 35 = __start_set_sdt_argtypes_set 35192: 0000000000dd407c 0 NOTYPE GLOBAL PROTECTED 24 = __stop_set_sysuninit_set 35430: 0000000000dd565c 0 NOTYPE GLOBAL PROTECTED 28 = __stop_set_cam_xpt_proto_set 35681: 0000000000dd565c 0 NOTYPE GLOBAL PROTECTED 29 = __start_set_kdb_dbbe_set 35695: 0000000000dd5668 0 NOTYPE GLOBAL PROTECTED 30 = __start_set_kbddriver_set 35965: 0000000000dd5674 0 NOTYPE GLOBAL PROTECTED 30 = __stop_set_kbddriver_set 35989: 0000000000dd5728 0 NOTYPE GLOBAL PROTECTED 33 = __stop_set_sdt_providers_set 36627: 0000000000e793d4 0 NOTYPE GLOBAL PROTECTED 46 = __start_set_videodriver_set 36830: 0000000000dd7954 0 NOTYPE GLOBAL PROTECTED 36 = __start_set_scterm_set 37192: 0000000000000000 0 NOTYPE WEAK DEFAULT UND = __stop_set_uart_fdt_class_set 37856: 0000000000dd7988 0 NOTYPE GLOBAL PROTECTED 40 = __start_set_vt_drv_set 38051: 0000000000dd2468 0 NOTYPE GLOBAL PROTECTED 22 = __stop_set_sysctl_set (Note: the "bad" in "/boot/kerbad/" is just a reference to the boot failure, a relationship of the link results and code handling the loaded kernel code. Which style of linker output for the kernel is "more correct" for the linker options supplied is not part of my claims. I am noting the mismatches, however.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Wed Jan 1 01:28:21 2020 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 4124B1E2559 for ; Wed, 1 Jan 2020 01:28:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (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 47nYTH1TxGz3QWd for ; Wed, 1 Jan 2020 01:28:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 8l3wQjkVM1m6Nx4y0izPsLd_QkLG0GlV.QLMp.HBCuzl8jRfrFIRJe.LsUUY1uz MIi5VT9Kq7KbNWSYaQqDuGQXV_h3JjB1CFhlkZFI4x_NRpPMegjO6Q5IcA5teyTyvqlyVIOHYXLM TZERPrxIYSLzOjols4oZlYgfZ24pIclLlpJ0mvB4Qzk4AZXpoPtZYwvA51bL64giKEp4uFyCyEKP bXluwpvgzVriXsEnpP.B_GsD.3cIaMuTjYW.9ldS1M0X2AJC3E9Fk45HxkUqSc4xjPGJPn7fURE7 HPepRv05wy.X6YoHBvfMsXkVe47Q8pvwNzGkzrcsqObFBjjcB8phpytggi6j1LmnUNzEHGNZFLl2 DmDw0_06RC7vIQ9eYVNziqqn0PQ9lvcpt1QRfdnh.Q3cv0piKm4N4FxwShKPpbma2BVayJXcGrxM bWc3SH8VeWZvCk0p7w3DbFynwk50pRJP366g.eXRKp.62pLRYhpvYyd3fJstH8oj4usM9xhsFqyg iy0kI0u1IwMERGx4DrJMrvsGwnPzrirfLV4Er_pzFM_DAHao3hANqt4C15l39O2hcORvqcYWWC3T auaPJWFt5CRHow0uC8s7126bzu9TvVixdUI7tMNcx10taz4D.g1KGFsew_FWoCkBTaRADZqdJKny H7RgxB2WyW3a1osM2nR7nPjHQfrM5RRrJy4E7GMMaomQnWcGgF_xiBOwPmkURJYb5yv6ZD159F.V vXsdPVhYsKreTkbIWwyHcUsqVU98VoELU7ekw2ZW4dw5rYUpXBqPHBqnDTxTv8JVADrIvCGyTAmC bxe_u0c23_4N9uQ3gXNCArLO0pw4soiVcpJaZqIt8wwE2d3QVnlHAwFFyLGsr3R1GDhWMcKjB11s p.MJ1I.1sMW89nBpO9WMIiJuwUrFFq9uyz7mo.9X9uExfu4ARYNTLsi3LQF5wfPVUWmddZa1iwww sAoHPoHr85yCeeGRW9hyipkbWJgsiAZCZIZkpcKdPVMEqLNQDXumUMfHfcXMYUXpSZOSYO5zRPCN 0z4RJK0XH2guHA50_failG_0.xl3RWaClMmKR_2xCgpYeLwwSe08kNuovZ7mcZIixLqqv_890e.G eEYpc.P2F1sYib.T44cYR54yVCB8uJ8ZY8UG.ZBijEHaAQGxGG9TGY7rgUvZqzUhBra1X6Ar4Wlj e.WPS8yE3NzlNEv30E.D6E0ENOOHHOthO7kmMuszkQgDwD.68MlYpcZU9._JcGvOXcO3ryPqevdF jB9Z9zp8ciISxi4bw_Pdu.1tGrA1Pde.hn9DWNKaqhHWWagBZsVprJn3PmOAoQ0GuULdFfBJag24 X7_eNj5XK65Jtur7.wou2KydI2UGujUKpkxgvQT1DiSAy07gG1wth6a7UHK1zFFIrlt6_tUfLGZv PhqSpKdDa1sSQvluXaNXfsiOXCZWxdZ7O8Jo- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Wed, 1 Jan 2020 01:28:16 +0000 Received: by smtp426.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 437ea9b333fad99f810cb9cb57033503; Wed, 01 Jan 2020 01:28:12 +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: devel/freebsd-gcc9@powerpc (for example) : it has the clang vs. gcc vec_step name conflict (for powerpc families): build fails under clang From: Mark Millard In-Reply-To: <70ace2dc-ab93-3fee-8ecf-019730195d5a@FreeBSD.org> Date: Tue, 31 Dec 2019 17:28:10 -0800 Cc: Gerald Pfeifer , freebsd-toolchain@freebsd.org, freebsd-ppc@freebsd.org, freebsd-ports@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: <70ace2dc-ab93-3fee-8ecf-019730195d5a@FreeBSD.org> To: John Baldwin X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47nYTH1TxGz3QWd X-Spamd-Bar: - X-Spamd-Result: default: False [-1.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.08)[-0.077,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(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.61)[-0.611,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_FIVE(0.00)[5]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[147.66.137.98.list.dnswl.org : 127.0.5.0]; 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: (6.67), ipnet: 98.137.64.0/21(0.88), 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: Wed, 01 Jan 2020 01:28:21 -0000 On 2019-Dec-31, at 16:41, John Baldwin wrote: > On 12/26/19 11:39 PM, Mark Millard wrote: >>>> is missing the patch-clang-vec_step that is in: >>>> >>>> FBSDG5L2# ls -laT /usr/ports/lang/gcc9/files/ >>> >>> That is a hack that can be used to work around the issue; I strongly >>> recommend addressing this in clang properly, though. > > I think using the hack patch in devel/freebsd-gcc* is fine for now, but can > you confirm if both 6 and 9 need it or only 9? > devel/freebsd-gcc6 and devel/freebsd-gcc9 both need it. The vec_step identifier has been in use in gcc's gcc/tree-vect-loop.c for a long time and still is in use. Going the other way, reserving vec_step for opencl/altivec for PowerPc's has been in clang for a long time. I've had to have local patches for lang/gcc6 and later and in devel/powerpc64-gcc historically (2017+) because of my clang-targeting-PowerPc activities and trying to build gcc versions via clang as part of those activities. (Of course, some places have patches of their own now.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Wed Jan 1 05:58:43 2020 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 9D9621E2C9C for ; Wed, 1 Jan 2020 05:58:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-48.consmr.mail.gq1.yahoo.com (sonic313-48.consmr.mail.gq1.yahoo.com [98.137.65.111]) (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 47ngTG21Ysz4Xfc for ; Wed, 1 Jan 2020 05:58:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: N_6BpMEVRDvd.miR6A7lED5GPdAEx7ojsA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Wed, 1 Jan 2020 05:58:40 +0000 Received: by smtp401.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 375855fd364ab727ae9c0e4d38c0023c; Wed, 01 Jan 2020 05:56:39 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: For reliable builds, gnu/usr.bin/binutils/Makefile needs similar to gnu/usr.bin/binutils/Makefile.inc0 TARGET_CPUARCH use, not ${TARGET} use Message-Id: <6C451320-79D8-41C7-ACF8-FD4C7E9751A2@yahoo.com> Date: Tue, 31 Dec 2019 21:56:37 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <6C451320-79D8-41C7-ACF8-FD4C7E9751A2.ref@yahoo.com> X-Rspamd-Queue-Id: 47ngTG21Ysz4Xfc X-Spamd-Bar: - X-Spamd-Result: default: False [-1.31 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; SUBJECT_HAS_CURRENCY(1.00)[]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.86)[-0.861,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.953,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ipnet: 98.137.64.0/21(0.88), asn: 36647(0.71), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[111.65.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[111.65.137.98.rep.mailspike.net : 127.0.0.17]; 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: Wed, 01 Jan 2020 05:58:43 -0000 My cross-build attempts were failing to build ld.bfd for use for building LIB32 for powerpc64 until I made the following change: # svnlite diff gnu/usr.bin/binutils/Makefile Index: gnu/usr.bin/binutils/Makefile =================================================================== --- gnu/usr.bin/binutils/Makefile (revision 356187) +++ gnu/usr.bin/binutils/Makefile (working copy) @@ -15,7 +15,16 @@ # GNU binutils 2.17.50 ld. # Except if we are on powerpc, that needs the ld from binutils to link # 32-bit binaries. -.if ${MK_LLD_IS_LD} == "no" || ${TARGET} == "powerpc" +# +# Localized variation of some gnu/usr.bin/binutils/Makefile.inc0 +# content: +.if defined(TARGET_ARCH) +HACK_TARGET_CPUARCH=${TARGET_ARCH:${__TO_CPUARCH}} +.else +HACK_TARGET_CPUARCH=${MACHINE_CPUARCH} +.endif +# +.if ${MK_LLD_IS_LD} == "no" || ${HACK_TARGET_CPUARCH} == "powerpc" SUBDIR.${MK_BINUTILS}+=ld .endif Otherwise, gnu/usr.bin/binutils/ld/Makefile was not used to build ld.bfd and the build ending up stopping, reporting the lack of anything at the path it specified to clang for executing the 32-bit linker. (No place else under gnu/ was using ${TARGET} . Many places were using ${MACHINE_CPUARCH} . But straight use of ${MACHINE_CPUARCH} here did not work for the context. Thus, I went for the more general code from Makefile.inc0 instead, reusing what others had already figured out.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Thu Jan 2 00:44:05 2020 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 3BD201E57EA for ; Thu, 2 Jan 2020 00:44:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-8.consmr.mail.gq1.yahoo.com (sonic307-8.consmr.mail.gq1.yahoo.com [98.137.64.32]) (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 47p8Rm0647z4ZR4 for ; Thu, 2 Jan 2020 00:44:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: .q7NKScVM1lym3_24bzCuWT5gJZaUuYbasJmX7zKZVfJHMsili71Zr77_LnA8rD ZSW.1b7FXA5Qy7QL.6b8dINJ0c0Wg..ZpOG7QFWkRxjs.ZjPb9V6JJpgS.5_UogMZ34.5KIFMJJ_ HIU1ct2s3QrxS8dOv110ffDgHL.urtj2lF3gBQXXQp4z0ZtXeuQs3rm77vRJwi4e7gofOHxKTOQL dE_V6c8qIlWbuWgV0IyW2pl93q46QrChXhib73SdTC41foP9LpfzZGxaALuIgLPowiDLsea6P0Wi SQeD0z_1PYQrmpIotUhMAM9Wbhhwb79IIdQtkwL0bcm8VTyj5bUSBQhLnm1RDbDYTfmiePjkv_CN LeQ_ueltwWYwye3Jre_JTQUzaGByZMnBQwNRPf4CDwg3nFs0CVYL4nUO1oihEH.cBl76CsAMQZU0 aLux0RxxoodjGYGxxZg8CkUFiPaP8l.0oLKnSUyvydl1VPNnKUE8a5vMUcikDRf8gI9M0z19aVtq heEaQRDAqIO7Ct4wcERF0qJbAZ9BH2vOmp.cmYaA0DkfmFNT5Li1pH5Fum3z27sBAQ7ry0oYk7MJ RYG2WH1L1tqeY5n04rosjxpEEY5DH8heOJ8h5XuySCyqPDHLPP8xevNhn1PnSNHWLw4j17kcDzFg kqkvzqKoIZG5pPL_R1KcY1bAiM3xx25TMcKXftMfntZHy4sVrfdJkn5lA.X.l4CRSdQ0yDG9EQBG 7vnhILmn3DrRlEaYSYeZUM.fjTpsQ8cEP8KDaJc7.sB8f9nVGQz.DKL_jm6tyJ4lnKBEGZkclcUh I_pwEexfuUlGeSlFQRViPwFJOSaR6z2tmhOgZzYXv1CMZ8Sys4ONGUKEJjLjQ8QgcwvT4WkafihB 8PrTvsBlfeVdE4xDCFnsW4lAF6du9jm67LdVC_buZpUX2TK3Yvo.4uohilPidxUGVhwXRR5NHbRR 6eJp1crYwHw2n4T0XJbhX0_3huDanpWHVBBQ2F.FUmUftviSyDHG.B4StXVe5uWDqw6z8XX.gOkF zVM_28SICsq9qqQsRn2qdDiM9IqCB_b8wSt.RSChUX5JANyIrRbJvENLbacrZAUS.giPIAcV.NY. 7AbJAJNT.jE5RvyYL4C0N92LjO3BDHOOKEY3PJXemOpgJW4SuUXXECw1OkfXZMvB8CXjtIJcAP.H ncGeu7AYOTgYuPNu_DkwqoVbBMZd6rjkViEr69xld5Eorn501Zczz47IMYT42vY9xeATJ.sy2oan WyxdWCEFicYiEjwgoclb0wiC4eDsWrehU5MoY8P37mYFIaMGORByh9kwMc0KNi5Jxq51stbj7KI9 gchldCp_eNm1vd10aCUZ_5YhAsJzHgVoyEoo96OFxMInJ9Gest3v78r2W2qIgCILZ7Gw7nz8rgKi 27Nb104GajFZIwKDMk7j8fMEF2xa.z36RostAL66W Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Thu, 2 Jan 2020 00:44:02 +0000 Received: by smtp407.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2e658b58b475deaea0a3c00677726a2d; Thu, 02 Jan 2020 00:43:58 +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: 32-bit powerpc kernel builds (head -r356187): old ld (works) vs. devel/binutils@powerpc based (fails to boot): DYNAMIC vs. EXEC_P (powerpc64 lld too) From: Mark Millard In-Reply-To: Date: Wed, 1 Jan 2020 16:43:58 -0800 Cc: FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: <27625540-FBB9-44B9-819E-06671133E7FB@yahoo.com> References: To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47p8Rm0647z4ZR4 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.18 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.14)[-0.140,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.54)[-0.540,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)[32.64.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: (6.52), ipnet: 98.137.64.0/21(0.88), 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: Thu, 02 Jan 2020 00:44:05 -0000 On 2019-Dec-31, at 16:44, Mark Millard wrote: > On 2019-Dec-31, at 14:52, Mark Millard wrote: >=20 >> My attempt to buildkernel via devel/binutils@powerpc >> produces a kernel that gets a very early crash. >>=20 >> Looking at the normal and alternate kernels a little >> shows. . . >>=20 >>=20 >>=20 >> Old ld (and such): >>=20 >> /boot/kernel/kernel: file format elf32-powerpc-freebsd >> /boot/kernel/kernel >> architecture: powerpc:common, flags 0x00000150: >> HAS_SYMS, DYNAMIC, D_PAGED >> start address 0x001001e0 >> . . . >> 00e7a034 l O *ABS* 00000000 .hidden _DYNAMIC >>=20 >> Produced via (from kernel.full.meta): >>=20 >> CMD @ld -m elf32ppc_fbsd -Bdynamic -T = /usr/src/sys/conf/ldscript.powerpc --secure-plt -pie --no-warn-mismatch = --warn-common --export-dynamic --dynamic-linker /red/herring -X -o = kernel.full locore.o . . . >>=20 >>=20 >> devel/binutils@powerpc based: >>=20 >> /boot/kerbad/kernel: file format elf32-powerpc-freebsd >> /boot/kerbad/kernel >> architecture: powerpc:common, flags 0x00000112: >> EXEC_P, HAS_SYMS, D_PAGED >> start address 0x00100200 >>=20 >> 00e7a034 l O .dynamic 00000000 _DYNAMIC >>=20 >> Produced via (from kernel.full.meta): >>=20 >> CMD @/usr/local/powerpc-unknown-freebsd13.0/bin/ld -m elf32ppc_fbsd = -Bdynamic -T /usr/src/sys/conf/ldscript.powerpc --secure-plt = --build-id=3Dsha1 -pie --no-warn-mismatch --warn-common = --export-dynamic >> --dynamic-linker /red/herring -X -o kernel.full locore.o . . . >=20 I see the same sort of thing for powerpc64 kernels, based on system lld and such vs. based on devel/binutils@powerpc64 . (The old 2 socket/2-cores-per PowerMac is rebuilding the 435 ports on head -r356187 .) > _GLOBAL_OFFSET_TABLE_ has a similar status. >=20 > In fact, there is a big difference in the two > context's ABS lists: devel/binutils@powerpc > produces a very short list: >=20 > # readelf -a /boot/kerbad/kernel | grep "\" | more > 2: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize > 569: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase > 5103: 0000000000000020 0 NOTYPE GLOBAL DEFAULT ABS = testppc64size > 8156: 0000000000000018 0 NOTYPE GLOBAL DEFAULT ABS = restorebridgesize > 9078: 00000000000000b0 0 NOTYPE GLOBAL DEFAULT ABS imisssize > 12351: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize > 25923: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize > 26490: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase > 31024: 0000000000000020 0 NOTYPE GLOBAL DEFAULT ABS = testppc64size > 34077: 0000000000000018 0 NOTYPE GLOBAL DEFAULT ABS = restorebridgesize > 34999: 00000000000000b0 0 NOTYPE GLOBAL DEFAULT ABS imisssize > 38272: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize >=20 > but the old ld produces a much longer list: >=20 > # readelf -a /boot/kernel/kernel | grep "\" | more > 2: 0000000000000070 0 NOTYPE GLOBAL DEFAULT ABS dlmisssize > 212: 0000000000e793dc 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_gfb_set > 462: 0000000000e793c8 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_mmu_set > 569: 0000000000100100 0 NOTYPE GLOBAL DEFAULT ABS kernbase > 1334: 0000000000dd5728 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_sdt_probes_set > 1395: 0000000000e5e608 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_vnet > 1765: 0000000001183648 0 NOTYPE GLOBAL DEFAULT ABS end > 1798: 0000000000dd36d0 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysinit_set > 1857: 0000000000dd4e34 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_modmetadata_set . . . (detail dropped) . . . > 35963: 0000000000dd5674 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_kbddriver_set > 35987: 0000000000dd5728 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sdt_providers_set > 36015: 0000000001183648 0 NOTYPE GLOBAL DEFAULT ABS _end > 36625: 0000000000e793d4 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_videodriver_set > 36828: 0000000000dd7954 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_scterm_set > 37429: 0000000000e9786c 0 NOTYPE GLOBAL DEFAULT ABS _edata > 37854: 0000000000dd7988 0 NOTYPE GLOBAL DEFAULT ABS = __start_set_vt_drv_set > 38049: 0000000000dc2240 0 NOTYPE GLOBAL DEFAULT ABS = __stop_set_sysctl_set > 38270: 00000000000000f0 0 NOTYPE GLOBAL DEFAULT ABS dsmisssize >=20 > So what do the __start_set_* and __stop_set_* symbols > show up as in /boot/kerbad/kernel generally? PROTECTED > visibility as a GLOBAL as it turns out: >=20 > # readelf -a /boot/kerbad/kernel | egrep "__(start|stop)_set_" | more > 00e83680 002c0701 R_PPC_ADDR32 00000000 = __stop_set_uart_fdt_class_set + 0 > 00e83684 0021a801 R_PPC_ADDR32 00000000 = __start_set_uart_fdt_class_set + 0 > 212: 0000000000e793dc 0 NOTYPE GLOBAL PROTECTED 48 = __start_set_gfb_set > 462: 0000000000e793c8 0 NOTYPE GLOBAL PROTECTED 45 = __start_set_mmu_set . . . (detail dropped) . . . > 35681: 0000000000dd565c 0 NOTYPE GLOBAL PROTECTED 29 = __start_set_kdb_dbbe_set > 35695: 0000000000dd5668 0 NOTYPE GLOBAL PROTECTED 30 = __start_set_kbddriver_set > 35965: 0000000000dd5674 0 NOTYPE GLOBAL PROTECTED 30 = __stop_set_kbddriver_set > 35989: 0000000000dd5728 0 NOTYPE GLOBAL PROTECTED 33 = __stop_set_sdt_providers_set > 36627: 0000000000e793d4 0 NOTYPE GLOBAL PROTECTED 46 = __start_set_videodriver_set > 36830: 0000000000dd7954 0 NOTYPE GLOBAL PROTECTED 36 = __start_set_scterm_set > 37192: 0000000000000000 0 NOTYPE WEAK DEFAULT UND = __stop_set_uart_fdt_class_set > 37856: 0000000000dd7988 0 NOTYPE GLOBAL PROTECTED 40 = __start_set_vt_drv_set > 38051: 0000000000dd2468 0 NOTYPE GLOBAL PROTECTED 22 = __stop_set_sysctl_set >=20 >=20 >=20 > (Note: the "bad" in "/boot/kerbad/" is just a > reference to the boot failure, a relationship > of the link results and code handling the loaded > kernel code. Which style of linker output for the > kernel is "more correct" for the linker options > supplied is not part of my claims. I am noting > the mismatches, however.) >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Thu Jan 2 01:20:49 2020 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 AAB751E5FC4 for ; Thu, 2 Jan 2020 01:20:49 +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 47p9G85wLvz4c3b for ; Thu, 2 Jan 2020 01:20:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 2KLGJg4VM1nax4Lkfx.YJhEBihDvn8NqWV1EhLoWAg9KV_7gEsFSpBy2CDj687g 1Gd1N.CjqsOU9vBWAiZhx30_kAQc6hV0QiMhKbK..FHXDj4xMHtd10XVhlDNAdtH.SbY_pycLvlQ HSMlJbAVjMSaA_QYNMMS0n5J_Qb3iavI2NS8EPjomtmy8ZE0V0799HMRxFoSg61PGTac2zAv9t_D miUBDijfa1s2JsM9.pvLrLiHSy88tKsIuaSym9tgkx3X9RdJ3ktrGZYXAghvswteZPlmvZd2pjLD cd9qJU4VtkKKAN17aUuK3QmubS8rkPAn9xI1vRbrJ6DAEUxb5JvWOACEn5Zk3_Xo515G9rixLjWO H9GONAPj.mP.0._lqxWZVXIC8YhkPdG3NJufySvVpDYDqFsFEB7HPFMk3A3AuOLojpsBd6YuofBW J8msQLMqP8ExhTN0ZLpYRzRHkRokH4Suyb4HJJqPfeo.9Hrlqeo5j8IDeiYiF5jwwO5qED8MibGW T0m33mfqIwPbeb4e96gqH89oZuG30VvqlXkeAH3FfhX00ymZzlqocD3WOI_y0LFwEvb1aF5pldn3 idDQw8xouOQ7rTSFDzVuz1gEX5I71_ifdVT8_pwjYC8NDic1WhJrBL52WprL7g0qxLHYydSR13f. Gh_5deRTAqOaS4PzLMLCvuswW4MGUFhqmS0UjZKTwugRKUy6oP4zV8M6LsdZeDWL8fvOzrSIhFYc glWQZPKD1hSWazbCBgaaBMwdzDfjdtXl2mVYBcIUAagJv.D8eW8xYBQ9QM_m9iKYYonnFpupipuu QW_QgmR3uUKxmPi969EZBNROWcAt9_9JX0qH0LUOK.oh1eFcZpxHIQ0C4vkveuHSSlX1tvwJEG.V ABmzyPMrGAP7fQRwYAz3rexjQzij0HFU_bg5KYKvJ0KbRxr.iXE44saNvHo2z1VGKroPQ5Wq40fJ d8OvwVaHx2.rhrHiwTncp2nzLeZpjPTH2eewVEqy6bN5ZBLo2RGaHHB6pPOxVj5LLv7UBJM_VXPt ETh3kktn5MrIElSq4WjT_iqHB5YSHyPK.vTWO4MHOLGIU9jRwYlICPab6sj0PooS6WpS31YLDBLm jgG0BkQ2G2Z4tfETQfEbbGKL1MOmNrzAkCDwWHn_8UfwHES1tlp1aQkkjpFmPw3bEPSqx3KXj.Pp xcGzCcyf4agOLMKzTOhVl_gjkzeMNLP.g1u1jeX1zlhQMqtyQmSwq5nBWrl8mwBE0xn.nycBjKPm 1ddfSuASX.XcUhJ9DOvLfaX1pCyga10Lwc3yj3JIeSgLze3SQ47414U3YHQ354yQpPwMPYQNrpjT R__xQS0WK6ZYP1dK81dn4a9TcC0G9ptbL4laCykLaWlpY4K24O1uOH_1LLWfHS5G.31BML7j5IvI NFDgLb5EsOogJMfatgFxBJhWeKfasvcy0 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Thu, 2 Jan 2020 01:20:46 +0000 Received: by smtp409.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 30265e3e687889c3d416af800e9adf26; Thu, 02 Jan 2020 01:20:41 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Old PowerMac G5 (powerpc64) Giant lock usage: a list of warnings shown by dmesg -a (openfirm, kdb, powermac_nvram) Message-Id: <7A3DC64C-E77A-413F-8124-CE61819A1898@yahoo.com> Date: Wed, 1 Jan 2020 17:20:39 -0800 To: FreeBSD Current , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <7A3DC64C-E77A-413F-8124-CE61819A1898.ref@yahoo.com> X-Rspamd-Queue-Id: 47p9G85wLvz4c3b X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.33 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.85)[-0.849,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.977,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (1.60), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.71), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[84.65.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[84.65.137.98.rep.mailspike.net : 127.0.0.17]; 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: Thu, 02 Jan 2020 01:20:49 -0000 The list is shorter than it was for an old PowerMac G4 (32-bit powerpc). For a G5 powerpc64 example running head -r356187 (so ELFv2): # dmesg -a | grep Giant WARNING: Device "openfirm" is Giant locked and may be deleted before = FreeBSD 13.0. WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD = 13.0. WARNING: Device "powermac_nvram" is Giant locked and may be deleted = before FreeBSD 13.0. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Thu Jan 2 02:08:30 2020 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 81D691E76AC for ; Thu, 2 Jan 2020 02:08:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (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 47pBK84f6cz4f40 for ; Thu, 2 Jan 2020 02:08:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: kvW1ljMVM1muVhkGfqQ4qsdP1BxTkFBXd8CgEghnTP962HKT5rJ6pMiBnH1XW4P LLT5LTZT69esMfq2UKiW_z7P1eFwxQP84s70k51T0_S93A_4TvNLYnzzev91x_H9XDPFE9ek.2Ym Ly2YFf_iM9RZU9ihzb9Z._vspPmyLj4DIZip_GZO9AtcMqOOAW7pcojye2rJ4lZLqFNDn8vI6W.2 q2GxIj7sPjvbsgre9MWJGOavAburj7Yi_FoRxmFH7ilxJY4MnRq29Q0dqQNXEsUugQQql3uu_v3P g4qN50f1vgC6PCAYHHEvYvo00VDhFmxfXQKiE1gKBFM7YhHCBZyGiwOxx_hERMvCeKByfOd7OTH_ 2Y1ytHSlMy.mTMsm1e2nXUxI9lSrWyrAHUwHqnRwJYBunZ2x.L5DL.zTqeP5uPB6XX_zHt3ziUpx Bh7qwHU0WMPbe2r2HeABd6IPFsSbKbzrKWyJm3iNPS0Xr3c0SIbp1w2mr.tHGHVEqnnTX3zMonsH 3JkFviBEn5jZXntFuyjzBy.3YOt8spglC.z14DUJEC2GHfucOm7hu_u1NppHbkTa5hoLGIEcckAL A9k2j2EEJev.87nyKvJCE5TnO8h7DKf8VQZdffILR8i6OS5XDLz.v0bxkI0e76O360jtFEL6KGDo 0r.ERuj6.VY1k2nJWe.lBbOq5_KvPP0D.5EJ16k41MVVwbnHbGb.6j7Jk8zv3BUkGkhtvCVm.GUv NPMFAhvfeRSstim1BAgdTV_FqbiipFwi40QZqYe1h7SEvN9NYkC_AE9YFgw_NLG9rqq1eGGa3Cmw IZYJPVztvqEuDMHxjM8u5eVgzVA6TS.XlST8ZfOSpznwzNMsW7o9hwnCPXiEMKACMafk09CrgXfu lpRi4ntS6YG1_InqlwnPoXQmbxkGOdHTAoZnYdDyg2LpPf2Mox6r0Ync9K0WqqEObm_JDYS5sm4z n2vAr0YdrrYw3V7iXEqFQ7kixGwXpF.KEDmYSxhO_wjHwI1LzNa_Jye6mUIwIxKhD0leg_yDq7qC U1mcbB0oruJoVAaMmzSHtnXGI_qeuq.8Kb5Zct0SvZf_O6j6zOYAse93ltZkwHoDrkz5tYzPInn9 n0_60W1DfECsNcu6EsQgh.stHoFxstmazbhx5eu4QmrfGFOG6DB_pvXjnZ2VIqM7IKY1kqDXSneX FndIpvsDu0g1R6990hyB3yI33gMRsVsODvi_EHa95EShEmdpAfWFohiAvtCxKsU3ivT2rcLCjPUm z4NCnF3iBP7tpqlkaeMhPL1Bem9z2Ue0O2M4se2I8Yl9JnlJdXFVCKoPHmKDz4FmeUeoggRKw6cY 7yulK.jatdI4khJ7mdij2u32Ah4MIubx_zAIKYc6h1HV6egflsIefS8F5LHhRpVMETXtLxAvSx4j knUSaCwDY9373oU9x Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Thu, 2 Jan 2020 02:08:26 +0000 Received: by smtp431.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9262f8e14e4a72737ba6f1f7408442bd; Thu, 02 Jan 2020 02:08:21 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: How artifcact.ci.freebsd.org's head/r356187/powerpc/powerpc/ fails to boot a PowerMac G5: lock "tfo_ccache_bucket" ... already initialized Message-Id: Date: Wed, 1 Jan 2020 18:08:20 -0800 To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: X-Rspamd-Queue-Id: 47pBK84f6cz4f40 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[206.65.137.98.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (-3.02), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.70), country: US(-0.05)]; 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)[]; 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: Thu, 02 Jan 2020 02:08:30 -0000 Using materials from: https://artifact.ci.freebsd.org/snapshot/head/r356187/powerpc/powerpc/ put on an SSD, I tried booting a PowerMac G5 with the 32-bit system (historically supported). Below is typed in from a screen image that shows a panic. . . . Timecounters tick every 1.000 msec firewire0: w nodes, maxhop <= 1 cable IRM irm(1) (me) firewire0: bus manager 1 bge0: link state changes to UP [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached panic: lock "tfo_ccache_bucket" 0xd2858008 already initialized cpuid = 0 time = 1 KDB: stack backtrace 0xd00048b0: at kdb_backtrace+0x64 0xd0004910: at vpanic+0x200 0xd0004980: at panic+0x64 0xd00049c0: at lock_init+0x200 0xd00049d0: at _mtx_init+0x7c 0xd00049f0: at tcp_fastopen_init+0x1e8 0xd0004a20: at tcp_init+0x234 0xd0004a50: at protosv_init+0x1d4 0xd0004a60: at vnet_domain_init+0x5c 0xd0004a80: at vnet_register_sysinit+0x154 0xd0004ab0: at mi_startup+0x280 0xd0004af0: at btext+0x74 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x74: addi r3,r0,0x0 db> (No ability to input to that prompt.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Thu Jan 2 12:58:37 2020 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 EA2B61F6CCF for ; Thu, 2 Jan 2020 12:58:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pSlK5zfSz4P1t for ; Thu, 2 Jan 2020 12:58:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id C58A6CD50; Thu, 2 Jan 2020 12:58:37 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id C1F1CCD4F for ; Thu, 2 Jan 2020 12:58:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pSlK420tz4P1r for ; Thu, 2 Jan 2020 12:58:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 858FF1BA56 for ; Thu, 2 Jan 2020 12:58:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 002CwbBE046458 for ; Thu, 2 Jan 2020 12:58:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 002CwbVq046457 for powerpc@FreeBSD.org; Thu, 2 Jan 2020 12:58:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242630] [PowerPC] lang/ruby26 build fails on rb_mjit_min_header-2.6.5.h (FreeBSD 12.1-RELEASE-p1) Date: Thu, 02 Jan 2020 12:58:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lfmorrison@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Thu, 02 Jan 2020 12:58:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242630 --- Comment #9 from lfmorrison@gmail.com --- Thanks; after switching to the base system compiler gcc42, ruby26 builds successfully and a few trivial test cases show that it seems to be function= al. So it looks like this might be related to some sort of bad interaction betw= een ruby26 and gcc9 for 32-bit powerpc. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Thu Jan 2 16:37:57 2020 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 9D3B11D3E5D for ; Thu, 2 Jan 2020 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pYcP3mBQz4d5n for ; Thu, 2 Jan 2020 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 602DD108C1; Thu, 2 Jan 2020 16:37:57 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 5B6DB108C0 for ; Thu, 2 Jan 2020 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pYcP11tyz4d5m for ; Thu, 2 Jan 2020 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1EBDB1E2E9 for ; Thu, 2 Jan 2020 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 002Gbv8q097832 for ; Thu, 2 Jan 2020 16:37:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 002GbvSE097831 for powerpc@FreeBSD.org; Thu, 2 Jan 2020 16:37:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242630] [PowerPC] lang/ruby26 build fails on rb_mjit_min_header-2.6.5.h (FreeBSD 12.1-RELEASE-p1) Date: Thu, 02 Jan 2020 16:37:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Thu, 02 Jan 2020 16:37:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242630 --- Comment #10 from commit-hook@freebsd.org --- A commit references this bug: Author: pkubaj Date: Thu Jan 2 16:37:12 UTC 2020 New revision: 521857 URL: https://svnweb.freebsd.org/changeset/ports/521857 Log: lang/ruby26: fix build on powerpc, don't use GCC on powerpc64 elfv2 ruby currently has issues when compiling on powerpc with gcc9. Use base G= CC instead. Also don't use GCC on powerpc64 elfv2, builds fine with clang. PR: 242630 Submitted by: nunovasconcellos@gmail.com Reported by: canardo909@gmx.com Approved by: portmgr (build fix blanket) Changes: head/lang/ruby26/Makefile --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Thu Jan 2 16:41:52 2020 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 DA8AC1D40F8 for ; Thu, 2 Jan 2020 16:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pYhw5XtRz4dL6 for ; Thu, 2 Jan 2020 16:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id B63CF1091A; Thu, 2 Jan 2020 16:41:52 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id B17BB10919 for ; Thu, 2 Jan 2020 16:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pYhw3XNhz4dL3 for ; Thu, 2 Jan 2020 16:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 74D591E463 for ; Thu, 2 Jan 2020 16:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 002GfqMQ010805 for ; Thu, 2 Jan 2020 16:41:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 002Gfqxq010802 for powerpc@FreeBSD.org; Thu, 2 Jan 2020 16:41:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242630] [PowerPC] lang/ruby26 build fails on rb_mjit_min_header-2.6.5.h (FreeBSD 12.1-RELEASE-p1) Date: Thu, 02 Jan 2020 16:41:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Thu, 02 Jan 2020 16:41:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242630 --- Comment #11 from Piotr Kubaj --- This should now build. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Thu Jan 2 19:23:03 2020 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 DC5F91D7986 for ; Thu, 2 Jan 2020 19:23:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (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 47pdGt42d3z3Kf9 for ; Thu, 2 Jan 2020 19:23:02 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: yQEQZMYVM1lHuMrQskJAPqyXpjTHAavuXXvFc6O9giCoK6WD.ccTUPQJJRDl5Xh YaSBxwuA8hN_.cbV5Xdjwz24GXv1Bf9B_HH3pUxYjwC.o3bpAkL.8ef5BlEROY6eRjkmfbtAsSam BCDCECBzYBwolCRXRoH6AVPeIb0Fg2_Dc.IjRkhuq9erHbKNLWl5CRfX3qG8KZ3i.QFw31GLifeI WGtD2t6jsa_AGbd_1w1viQ6qpEL.DQNEs7enXKjW_4ssu7Y9vPDH3dnE8eZodvXaKGm6wVgBsXV2 QELlbNMKzrwp71NQiIaT3.6PIYUJAeIHdYIOONx3YFe3jKBhQ98L8onlPb3oqJlSAQWnhb6Rd_ZZ .ZDO8Al4lQyHPeMdfFY1bFnpTyd4044fE7XzT4PiFxXkslt4RxkFFzjmDkCKyJvIECy7q.NgzgO2 gzidh3M9y.ZM6QtyMXiS5_GSGItEvjSVV1Ayo68dqDgH_CdYLbuGjwXCFuH3W4iZW3KjdZvY.2VB SLFcyntMmLN0Z.ILNH7D1jS2W4avyA96fc2hkrEGCC854b0oMJeuiyNZ_AcgkIXbENvVx2Y2hV2q Mk4VLFiNzL.2aXFRDCLxk9M2njN.GjXkn5X8tfKLB_sdpP7O1XnS0hpmtC4KKgofmwJqZa0YilKk P4bnthqx1f1Yze6euTSQhLtMPLvHrpB9Fnz1at_IEnlSreOXWTpoXK16E85DiZryrRVSLlaR6Fx4 PsarsvMs_dgF6cEUMR2XhRNhUPXHyGGAPVbr0o0NJdG1xOoNl.PPpe4eEHJqgWIYNcV2TCCQZNtX HpaAzgN3dc8jcc4jArXUBKc8rGCcJEFw5tpgkPInrbhLSCkIe8n.Nx78wICkRKXkY_udVLqGPR8z U01LATwT9Q1wi4J8jRI9BRC_p9kCeBn8y7.VY9ITLkcbL8vXKqVyYgSiEZeuq819eGEQqKBKIESx kFgcMH8.11n.CXe8CAAx0c0wwT1nh1LaC4pPWaXhVQpUeBFZxAXFoomR1idaz236o9msGEFXLH1v goq0q2YSpbtKuzCfcj9phNK4vOewPzBm.fjxQYRVirh17MKSKvlOQWHF8QZertRjxbI4rl_EsdJZ XIIuNp.L9L.1k8ZpveFtxNNXWREEY1Z00s2LxKNOujgA9oVoVc1Lqf.7l4JV0YfgO4TLY7U.w0Rc WAkyiubm..UtYc1mWqDOMIkeRn1nxPqSnH62BqtRP44d3CRpDiLjUd80pYh9mFOok90i7wQ1d.An 2OtWk3aJbcQpjLX21NMBW6GxiEWwkTCHmhxfmrY1wlnZ6_Q.AOpmiwr6iXALQdfz6jaDt2yAudDD TkHHz47F39LDEib95lXOkoP0gOKIRTGkBINT1VsDXXdX3kn4l2Xhy9vN4mxxiRA1IhX7jSS0HiW9 wkmmlf4LrXuKc9w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Thu, 2 Jan 2020 19:23:00 +0000 Received: by smtp422.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 8e1f0b7810cd47e38416bbc56309f727; Thu, 02 Jan 2020 19:22:57 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: How artifcact.ci.freebsd.org's head/r356187/powerpc/powerpc/ fails to boot a PowerMac G5: lock "tfo_ccache_bucket" ... already initialized Date: Thu, 2 Jan 2020 11:22:55 -0800 References: To: FreeBSD PowerPC ML In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47pdGt42d3z3Kf9 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.41 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.92)[-0.921,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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.987,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[206.64.137.98.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (1.02), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.70), country: US(-0.05)]; 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)[]; 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: Thu, 02 Jan 2020 19:23:03 -0000 On 2020-Jan-1, at 18:08, Mark Millard wrote: > Using materials from: > > https://artifact.ci.freebsd.org/snapshot/head/r356187/powerpc/powerpc/ > > put on an SSD, I tried booting a PowerMac G5 > with the 32-bit system (historically supported). > Below is typed in from a screen image that > shows a panic. > > > . . . > Timecounters tick every 1.000 msec > firewire0: w nodes, maxhop <= 1 cable IRM irm(1) (me) > firewire0: bus manager 1 > bge0: link state changes to UP > [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached > panic: lock "tfo_ccache_bucket" 0xd2858008 already initialized > cpuid = 0 > time = 1 > KDB: stack backtrace > 0xd00048b0: at kdb_backtrace+0x64 > 0xd0004910: at vpanic+0x200 > 0xd0004980: at panic+0x64 > 0xd00049c0: at lock_init+0x200 > 0xd00049d0: at _mtx_init+0x7c > 0xd00049f0: at tcp_fastopen_init+0x1e8 > 0xd0004a20: at tcp_init+0x234 > 0xd0004a50: at protosv_init+0x1d4 > 0xd0004a60: at vnet_domain_init+0x5c > 0xd0004a80: at vnet_register_sysinit+0x154 > 0xd0004ab0: at mi_startup+0x280 > 0xd0004af0: at btext+0x74 > KDB: enter: panic > [ thread pid 0 tid 100000 ] > Stopped at kdb_enter+0x74: addi r3,r0,0x0 > db> > > (No ability to input to that prompt.) > I've now tested both type of PowerMac G5 that I (sometimes) have access to: G5 with 2 sockets, 2 cores each G5 with 2 sockets, 1 core each If fails the same way in both. I do not have access to any 1 socket G5 PowerMacs, no matter how many cores. Note: I make no claim that r356187 is special for this. I've no clue what range of versions show the problem, other than it spans r356187. I used r356187 because I'm updating various machines to be at that version (non-debug), not just PowerMacs. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Fri Jan 3 09:18:29 2020 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 680811EBE29 for ; Fri, 3 Jan 2020 09:18:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-20.consmr.mail.gq1.yahoo.com (sonic309-20.consmr.mail.gq1.yahoo.com [98.137.65.146]) (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 47pzpq3PlXz4bRl for ; Fri, 3 Jan 2020 09:18:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 7XB1gfUVM1m3RI1RsXNC6kcfmgWPE.WM9dOnJ2ACTRoP_VI6I8arMNMrPSZhwc9 4fz346tVHvhcX8h6OUbLjo6jaRzp_nkW0g4P9dSqXriXIg5U9SkyGNmITt3F0TqigLUPZT66.IrL JcAI9VQylGVqlG3Y5a0cYyWMfeF42qVz5ov07qjHygwuE99Kb5bvnSGt0wem5G_mOQ8XmxqIPHCv v_ABmuBy17Gz867hd1u0lyshEB.KunXho4FxnHew0_zf_t9e_PMwy6Abz2drRXLGvHaEmiIKB5h_ 5ogFKeQFVZjE_z9CHFGr0Y06NrP8fUkfJEWTiArmGXwQjzO2TEkimiU2NSut1dRRzqqVlSNPSCw0 r_4BiHSg_hyonUn0W.g7Vbpz6ha40F3d9X2v3geWSrQ9.xo7E7HN3xVxGfqcqlaYrj9pytF6ABGY dsOOx5tkWX_M.SJyGro_mG6nyAb9n2__.NvONYIv7oMEj42IBopVcQI0H7gdD2M0WAm1uCrG5hZN awzC8MM.mWzlaoUpGjXLDYdfAvmjiuqJ0KWskWZQjcLNmwITS8Hi.GZHL8idahVjKe1MWtoXsegO JHheXQNlTAeA58uoyY1gYdKjU6cTNqLl.R1hDq1TxUZKYsZ.6xq4oRFLCgdpxexfyJbEz_Z0sK4o d6OeNc8oDrc1ZcouWWO2PLb.sC1tapXGAFiLaSbQ5OmeG2iOq0N1L0eBOdMRfTl7WAQ9yruwXLbX BmxXtDWIvY99xWDcqV5LoHfVh4jFbLPyO7TaykZ17ztlsLghRpxGSVt4zJy6kfV.v7ojTR5eloew t7mxB6KGaLqfwoXeMNi3Gqu70SgRChVnQSayXI3i44bxa22d2PKjVYL1xXXyfAukeMg_gYzMKbB5 g4lahkm0NtfdmItu7V88ciZnSoahdM1O66WWHjNZov7PyqVWlLuYBsz.35G1z8RGXjFG8yzf1XPV T_2CyNZ2Bra7zXCOKJxu2bSBpGWodGQV31DzK1NEB9YozcCwP7YAUuYG1A5_z2S_YEZKEcgiRLiD AGpeudvM3Ge7eUoHnKvluw52sUXPZMeUTVrGwoIWZ_bSNpkfmxfimYKAHDZWSR0sFQfCF4K7Whzl J9fW_IOth13mA3SM_VxbPnoFv2QhZ3NID_w9iWd1Qq8prgkZ3oBbguLXiB3CHGeEZA8kbGEWYDzf TYYrdGIt4vEHDqYl1RXAqTeL5zniVGm7ZglA2fCBbaiGL5.Z4oU8T_FDKTZ7ZojKbAtN_w0QiPCa WX8WX9uP5Nr8GiEq.k4uUB_Fgrg4YMLWiqPvLw168MQ7AXn.fwq6YFYJ52Tb4ypuFEqAic68U.FG MJqpZpOCHaNwDnfhZHYncPxYAM8b709WeuPchIaFQby1495K82DynU6fT8RqTH2tJa9SfDnpw81l Md71Gyo4T0GibVjW72aoVQuhxon2N1RU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Fri, 3 Jan 2020 09:18:25 +0000 Received: by smtp415.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 474d053d45a3b4a793bc816ed52fb0df; Fri, 03 Jan 2020 09:18:20 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: head -r354701 seems to be why/when 32-bit powerpc FreeBSD stopped being able to boot PowerMac G5s (2 socket ones, anyway) Message-Id: <74629EC2-E81E-44D7-B767-2B95084E8982@yahoo.com> Date: Fri, 3 Jan 2020 01:18:19 -0800 To: "bdragon@freebsd.org" , Justin Hibbits , FreeBSD Current , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <74629EC2-E81E-44D7-B767-2B95084E8982.ref@yahoo.com> X-Rspamd-Queue-Id: 47pzpq3PlXz4bRl X-Spamd-Bar: / X-Spamd-Result: default: False [-0.98 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.28)[-0.277,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.20)[-0.203,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (7.42), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.70), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[146.65.137.98.list.dnswl.org : 127.0.5.0]; 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: Fri, 03 Jan 2020 09:18:29 -0000 (NOTE: I only have access to 2-socket G5's, so I do not know the behavior for other kinds. I've access to both 2-cores-each and 1-core-each contexts.) This analysis is based on installing artifact.ci.freebsd.org materials and testing if they boot the G5's or not. Other than a little /etc/fstab and /boot/loader.conf material, the artifact materials are unchanged. My builds are not involved. -r354702 fails to boot. (Details later, below.) -r354700 (the closest prior 32-bit powerpc artifcact) boots fine. -r354701 and -r354702 are: Author: bdragon Date: Thu Nov 14 04:34:17 2019 New Revision: 354701 URL: https://svnweb.freebsd.org/changeset/base/354701 Log: powerpc: Kernel fixes for ppc32 and powerpcspe w/ lld Fix wrong section ordering that was causing a ".got is not contiguous with other relro sections" lld error. This also brings ldscript.powerpc and ldscript.powerpcspe closer to ldscript.powerpc64. Also, remove unnecessary text relocs from the ppc32 AIM trap code. Author: mav Date: Thu Nov 14 04:34:58 2019 New Revision: 354702 URL: https://svnweb.freebsd.org/changeset/base/354702 Log: Make ntb(4) send bus_get_dma_tag() requests to parent buses passing real bus' child pointers instead of grandchilds. DMAR does not like requests from devices not parented directly by PCI. At this point I'm guessing -r354701 since it is powerpc specific. The following is based on typing from screen images . . . Failure style #1: . . . Trying to mount root from ufs:/dev/ada0s3 [rw,noatime]... SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken WARNING: WITNESS option enabled, expect reduced performance. (And that is all.) Failure style #2: . . . Trying to mount root from ufs:/dev/ada0s3 [rw,noatime]... SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken WARNING: WITNESS option enabled, expect reduced performance. [ thread pid 1 tid 100002 ] Stopped at dsmisssize+0x68c: illegal instruction 0 db> (So just 3 more lines showing up.) NOTE: I do not claim that there are not more problems later in head's history that fail even earlier in the boot, thus hiding what is reported here. There is one that I've not yet isolated the first artifact version for. Thus, testing for what I'm reporting here may require using older vintages of FreeBSD, unless other problems are dealt with first. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Fri Jan 3 17:35:17 2020 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 5688E1F6329 for ; Fri, 3 Jan 2020 17:35:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qBr51kRnz45Px for ; Fri, 3 Jan 2020 17:35:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 340853E89; Fri, 3 Jan 2020 17:35:17 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 2F1B43E88 for ; Fri, 3 Jan 2020 17:35:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qBr46bBCz45Pv for ; Fri, 3 Jan 2020 17:35:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DD8302FA6F for ; Fri, 3 Jan 2020 17:35:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 003HZGrG056114 for ; Fri, 3 Jan 2020 17:35:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 003HZGJd056113 for powerpc@FreeBSD.org; Fri, 3 Jan 2020 17:35:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242680] devel/subversion Fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: undefined reference to `__sync_* Date: Fri, 03 Jan 2020 17:35:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lfmorrison@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Fri, 03 Jan 2020 17:35:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242680 lfmorrison@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lfmorrison@gmail.com --- Comment #3 from lfmorrison@gmail.com --- These missing symbols appear to be associated with GCC's extensions for ato= mic data handling. See, for example: https://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Atomic-Builtins.html (base GCC= 4.2 specification) https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/_005f_005fsync-Builtins.html#g= _t_005f_005fsync-Builtins (deprecated GCC9 feature) https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/_005f_005fatomic-Builtins.html= #g_t_005f_005fatomic-Builtins (currently supported GCC9 equivalent) It is possible that linkage to GCC's libatomic might be needed in order to resolve these symbols? (I know that libatomic.so is installed as part of the GCC9 port for powerpc, but I don't know if there's an equivalent library supplied with the base compiler.) --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Fri Jan 3 22:35:09 2020 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 5A7921F1AAC for ; Fri, 3 Jan 2020 22:35:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (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 47qKV42xH3z4S8k for ; Fri, 3 Jan 2020 22:35:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: KmEFpL4VM1nygK5Vavt1gvuisdl3Ia97LGvvZRAP8NFYKLYYGwRwnN_jLc1CQPD RWatfVZ04LqATPc4J2cpUAEccmrp1hDRl.eo9jaTGUnAVmAmJ8veksbiRfwxrr4PVjTATWzTnJRh Kzw4jXXeRXmK_jXi60OF.u_Rjz74T3YnTvW_yD._CYjW6NeeSJRSmqrIO6ivW8dkjOlqkh23Jq0. zzqsFOl2z9nDtFPpq0xaHfi2OHPVdrymApaG01Y.lD5Q_OZbCMeNqBIvhvmb69uBY_CcpzaHUjV. MxftyNTqSljD108rmRpU3W4TH3c2rPb.zY1.8oB2rUj01E5t1u5FK1wq9g1xQzvsrVAKMNoDI5.v ga.hkDfYsh32vjb.gZaK_T7hQYv8cy96LX3pxT0vtyDXsgNK8TwC6hTnInXsaIeTxo4hqCSsCHia cS0crqFMEDrWHVgdEpQ.CcJoeKKw8Z9MlEhh48rOTZ7qdWbfB1d5HiHanas3kydCBHoOYIrUhT1Y w6n.M1pARTTZcB23o7ucBZRYOXR27KiV5tzOn71DPcEN0yITaeazFhD1frdZXDd.2p1cZRiNkR22 qwaB630hNYrIp4uX1VJxp2TCC_BvekfLjSJVvqMtENxu3_jKb88A9l60P5Bl66zu9v7XMTs2r07o lOmq1OayplKyHpBjVEXzWGHDLOP07mPz5knLGcOQu4IoVf9eP0vQjlk4GTXLOuT2L_RIXplEOF2l WFNps._hyLmb9BKHJSGaqheoHzAvtaxQXuQ7xI3JqQ0Jf9o4c9569nepB2NFt0aiugbEaFNEnk5f JpB4vuNf4ZFMfLqUvC51MY9FIFD_t6QTTagpte8cO0X6oMpuWM4L1DSFuoDQgbrqnmJmEV8cQC4d 289vKOkkZcZ4SFGpBNvGx_ulJv6xRUL_bbuCEGprCEMimk5YMBxOx3yD.7A9Riuzc9XVjFoYiJpj QkoSfouaYPBOyHjoC29RCIrX56cc_dcdWgaSrUlBOhfC0tKKscqfNOSR6epbpCJU9aSF6fJ_WSCk Abl2XCWH0yVmw4NMYXZbus2eqXtT8IpjJfvWJ51NkxO_iOYQKkvU6mmyxSMKpc689ifSufeD_uEX e35Ufi4rq7yO1YwMf5zXbGN0AFSs02Rzr05KEmmJKS4o0I54aXdRwRcECTZOlOKabWd8h4C92hZj 0DxqScKERWR2Z74zQqbrlO5ZApdlK.KR9m7_NdYDamsotkwTKVxcgees5toBMFcLfXY2pHLR.bpQ aXTooBIv4l.ogJMFvqYBLde5i_v2G1SjoPLawpYIa_Ub50SPCE2n3VRnGn8m18Bdmepr2fhMu0hb o821pcFIBMwof0j_9l_TEKwAyww7VvnK0ZaYlpBDyGJyTx5InwUZIYKnwTvZBgSbpJuGsHGeiEUz rkspE6gOdhxkiOQj1n4ZHd.3_QS5kO.t1kA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Fri, 3 Jan 2020 22:35:05 +0000 Received: by smtp405.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b7e99f74f31230abbb73da5ba5ff0a3b; Fri, 03 Jan 2020 22:35:02 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: The 32-bit powerpc FreeBSD early-boot "tfo_ccache_bucket panic" on (2 socket?) G5s: visible at -r356118, not happening at -r356109 Message-Id: <157118DA-71A7-4085-987D-CD659370B9CA@yahoo.com> Date: Fri, 3 Jan 2020 14:35:01 -0800 To: Justin Hibbits , "bdragon@freebsd.org" , FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <157118DA-71A7-4085-987D-CD659370B9CA.ref@yahoo.com> X-Rspamd-Queue-Id: 47qKV42xH3z4S8k X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.48 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (0.02), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.70), country: US(-0.05)]; 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)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.984,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[148.69.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(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: Fri, 03 Jan 2020 22:35:09 -0000 This is based on testing artifact.ci.freebsd.org 32-bit powerpc materials on some (2 socket) G5s. It is the later FreeBSD head revision that causes an earlier boot-failure than the other one that I recently reported. There are no 32-bit powerpc artifacts between -r356109 and -r356118 (non-inclusive of either end). This limits how specific the evidence is -- but also avoids getting my personal builds involved as a potential problem source. I'll note that -r356111 was for: Use LLVM as default toolchain for all PowerPC targets and -r356014 was for: [PowerPC] enable atomic.c in compiler_rt and do not check and forces lock/lock_free decisions in compiled time (and would start to be put to use by -r356111 and later). This suggests the possibility of atomic-activity that is insufficient on the example G5 machines. (I only have access to dual socket G5s.) But I've no specific evidence about the llvm generated code leads to the tfo_ccache_bucket panic. The crashes look like (typed from a screen shot): . . . Timecounters tick every 1.000 msec firewire0: w nodes, maxhop <= 1 cable IRM irm(1) (me) firewire0: bus manager 1 . . . (1 or 2 lines that only sometimes show up, then) . . . panic: lock "tfo_ccache_bucket" 0xd2858008 already initialized cpuid = 0 time = 1 KDB: stack backtrace 0xd00048b0: at kdb_backtrace+0x64 0xd0004910: at vpanic+0x200 0xd0004980: at panic+0x64 0xd00049c0: at lock_init+0x200 0xd00049d0: at _mtx_init+0x7c 0xd00049f0: at tcp_fastopen_init+0x1e8 0xd0004a20: at tcp_init+0x234 0xd0004a50: at protosv_init+0x1d4 0xd0004a60: at vnet_domain_init+0x5c 0xd0004a80: at vnet_register_sysinit+0x154 0xd0004ab0: at mi_startup+0x280 0xd0004af0: at btext+0x74 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x74: addi r3,r0,0x0 db> === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-ppc@freebsd.org Fri Jan 3 22:47:54 2020 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 2D1CD1F2EFE for ; Fri, 3 Jan 2020 22:47:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qKmp0TRnz4Srl for ; Fri, 3 Jan 2020 22:47:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id E347A8C17; Fri, 3 Jan 2020 22:47:53 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id E07FF8C16 for ; Fri, 3 Jan 2020 22:47:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qKmn2hLWz4Srg for ; Fri, 3 Jan 2020 22:47:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 535BC348C for ; Fri, 3 Jan 2020 22:47:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 003MlrSY071581 for ; Fri, 3 Jan 2020 22:47:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 003Mlr1s071580 for powerpc@FreeBSD.org; Fri, 3 Jan 2020 22:47:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242680] devel/subversion Fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: undefined reference to `__sync_* Date: Fri, 03 Jan 2020 22:47:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Fri, 03 Jan 2020 22:47:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242680 Piotr Kubaj changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pkubaj@FreeBSD.org --- Comment #4 from Piotr Kubaj --- (In reply to lfmorrison from comment #3) You could try building on head, it may already be fixed there after https://svnweb.freebsd.org/base?view=3Drevision&revision=3D356308 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sat Jan 4 01:08:49 2020 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 7210F1D9961; Sat, 4 Jan 2020 01:08:49 +0000 (UTC) (envelope-from bdragon@imap.cc) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 47qNvN34qHz4bB0; Sat, 4 Jan 2020 01:08:48 +0000 (UTC) (envelope-from bdragon@imap.cc) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 67A9B465; Fri, 3 Jan 2020 20:08:46 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute1.internal (MEProxy); Fri, 03 Jan 2020 20:08:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=5qpwyyrIJBiGHrf9XWkey/iERAQoBmU lID7JKCk0GqE=; b=DXOBEoep51J2VlK0pNZ8EcJYAbm0NxkqcXnOIg98jG3tN5A UKmiGlTOirLY5KketkRhiVsQzTA+WhqBnoqSF0ygPunwNv1Rc5rR0IQnwCsclaxo g37mt19aX3/2Sbvs1DYXDeqtqR2oYofNaAMP3WLrG0XCwQuso2klZxINonPimEbS V7NIhXJM7Bty+tBZQBWD6fu9okOwylB2uFyMTdWI0QpYORJ0AFZybZpiSd1et9Z5 cxZ5dEWn6Jp5VlmVA3jid1JxyI85LcmP4PMYlVq+dtg/FZAu5LLyvj+aNs3BeQI7 sJLYY0BR/D3lOngR/5qVrihQBoxODEae3Lt9A5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=5qpwyy rIJBiGHrf9XWkey/iERAQoBmUlID7JKCk0GqE=; b=XbIIYwIoavVEj2sN0Gyt2z L/N5w6gsH+K2oDQWUbWi9yjPhW64v/X8vLv4vMMmo1rpVFrZa3z0pm59THqBzy5o WyVyPtzjEyGHLRm439lgvYu6CIOna907V2EDeKtUXNUJ9VQlClYCo+7M6z2H8gET 3SdUf2E0Hevs7ndVAUWyFFdAw5MH4We2C89GMsFp4z/Jtxps6vJF8v5X3QsaNdXz Ov1uRYXzIpnuhbNLzW2JENGrWlI8IRO6K3bzYm9pa/0/qNNZdmP/pkm34hM6w9+6 lf3js7csX1zo+4VOJLtfO/evObtdcif/DfdTL7q4fBq1oG4Ouk6lIbjVSLifEgag == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeggedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdluddtmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder reejnecuhfhrohhmpedfuehrrghnughonhcuuegvrhhgrhgvnhdfuceosggurhgrghhonh esihhmrghprdgttgeqnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgpdgushhlqdho nhhlhidrnhgvthenucfrrghrrghmpehmrghilhhfrhhomhepsggurhgrghhonhesihhmrg hprdgttgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B8A48C200A4; Fri, 3 Jan 2020 20:08:45 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <74629EC2-E81E-44D7-B767-2B95084E8982@yahoo.com> References: <74629EC2-E81E-44D7-B767-2B95084E8982.ref@yahoo.com> <74629EC2-E81E-44D7-B767-2B95084E8982@yahoo.com> Date: Fri, 03 Jan 2020 19:08:24 -0600 From: "Brandon Bergren" To: "Mark Millard" , "Brandon Bergren" , "Justin Hibbits" , "FreeBSD Current" , "FreeBSD PowerPC ML" Subject: =?UTF-8?Q?Re:_head_-r354701_seems_to_be_why/when_32-bit_powerpc_FreeBSD_?= =?UTF-8?Q?stopped_being_able_to_boot__PowerMac_G5s_(2_socket_ones,_anyw?= =?UTF-8?Q?ay)?= Content-Type: text/plain X-Rspamd-Queue-Id: 47qNvN34qHz4bB0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=imap.cc header.s=fm2 header.b=DXOBEoep; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=XbIIYwIo; dmarc=pass (policy=none) header.from=imap.cc; spf=pass (mx1.freebsd.org: domain of bdragon@imap.cc designates 64.147.123.25 as permitted sender) smtp.mailfrom=bdragon@imap.cc X-Spamd-Result: default: False [-0.89 / 15.00]; XM_UA_NO_VERSION(0.01)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; FREEMAIL_FROM(0.00)[imap.cc]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[imap.cc:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[imap.cc,none]; SUBJ_EXCESS_QP(1.20)[]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.82), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; FREEMAIL_ENVFROM(0.00)[imap.cc]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[imap.cc:s=fm2,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_WWW(0.50)[] 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: Sat, 04 Jan 2020 01:08:49 -0000 I do have fixes for this (the offset computation was assuming generictrap was always generictrap) but there are still additional problems that I am trying to chase down. I was banging my head on the bridge mode trap code for days and I still haven't isolated what's going wrong with memory. I might just clean up and submit my fixes I have so far, even though they aren't sufficient to get things working fully again. I think we're also hitting a clang optimization issue. :-/ On Fri, Jan 3, 2020, at 3:18 AM, Mark Millard wrote: > (NOTE: I only have access to 2-socket G5's, so I do not > know the behavior for other kinds. I've access to both > 2-cores-each and 1-core-each contexts.) > > This analysis is based on installing > artifact.ci.freebsd.org materials and testing > if they boot the G5's or not. Other than > a little /etc/fstab and /boot/loader.conf > material, the artifact materials are unchanged. > My builds are not involved. > > -r354702 fails to boot. (Details later, below.) > > -r354700 (the closest prior 32-bit powerpc > artifcact) boots fine. > > > -r354701 and -r354702 are: > > > > Author: bdragon > Date: Thu Nov 14 04:34:17 2019 > New Revision: 354701 > URL: > https://svnweb.freebsd.org/changeset/base/354701 > > > Log: > powerpc: Kernel fixes for ppc32 and powerpcspe w/ lld > > Fix wrong section ordering that was causing a ".got is not contiguous with > other relro sections" lld error. This also brings ldscript.powerpc and > ldscript.powerpcspe closer to ldscript.powerpc64. > > Also, remove unnecessary text relocs from the ppc32 AIM trap code. > > > > Author: mav > Date: Thu Nov 14 04:34:58 2019 > New Revision: 354702 > URL: > https://svnweb.freebsd.org/changeset/base/354702 > > > Log: > Make ntb(4) send bus_get_dma_tag() requests to parent buses passing real > bus' child pointers instead of grandchilds. > > DMAR does not like requests from devices not parented directly by PCI. > > > > At this point I'm guessing -r354701 since it > is powerpc specific. > > > The following is based on typing from > screen images . . . > > Failure style #1: > > . . . > Trying to mount root from ufs:/dev/ada0s3 [rw,noatime]... > SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken > WARNING: WITNESS option enabled, expect reduced performance. > > (And that is all.) > > Failure style #2: > > . . . > Trying to mount root from ufs:/dev/ada0s3 [rw,noatime]... > SMP: 2 CPUs found; 2 CPUs usable; 1 CPUs woken > WARNING: WITNESS option enabled, expect reduced performance. > [ thread pid 1 tid 100002 ] > Stopped at dsmisssize+0x68c: illegal instruction 0 > db> > > (So just 3 more lines showing up.) > > > > NOTE: I do not claim that there are not more > problems later in head's history that fail > even earlier in the boot, thus hiding what is > reported here. There is one that I've not yet > isolated the first artifact version for. Thus, > testing for what I'm reporting here may require > using older vintages of FreeBSD, unless other > problems are dealt with first. > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > -- Brandon Bergren bdragon@imap.cc From owner-freebsd-ppc@freebsd.org Sat Jan 4 01:10:44 2020 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 04F051D9CCF; Sat, 4 Jan 2020 01:10:44 +0000 (UTC) (envelope-from bdragon@imap.cc) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 47qNxb2N0zz4bLV; Sat, 4 Jan 2020 01:10:43 +0000 (UTC) (envelope-from bdragon@imap.cc) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 97F31463; Fri, 3 Jan 2020 20:10:41 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute1.internal (MEProxy); Fri, 03 Jan 2020 20:10:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=0HdAqKnXa+1Pg9dmIuO9B5saS5M7BD8 jLZwMgy+zRIM=; b=7xsUEij6d6VmHO498SU6ui+zovbmJuo6uVgEN2KvQIgxiAa bdykm6d75t8LRfKyl4iIyfS1P+rUo5RrI3vV8/kBzoZdOw8uUxnCE2TOFQdqe8zI 2SmhglqNLLvQtBMJb/a64Jt9FFPFGCr/9H+tSjnYa4+8Mwxaa1WbIHoXNjtyRJFz tqKIz7SAvQo8uc+ayvoVf0hsbcz4ZZtUQkBsf5ITK71FwNF4c4XerqfxnITuXR5i u/gyRlwiHfXzqTxQ508X+q+Y7aR7iB5OUgI4k1zl7HeGilM9oHnuWrEzcZABHKvo j2xHIJcUgqnSBySyZUwFLBAXX4vm6Cp7YzrrKlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=0HdAqK nXa+1Pg9dmIuO9B5saS5M7BD8jLZwMgy+zRIM=; b=QyD7Suabstqw7m3rzrlJiW dQi5X/wzVZSLHUq0Ll2MPIhf1kkGHQHnYlCLLYCF/MkFtCG6GqMbYA6nmy5WEM4Q 5ilemAw9DoqzT4K8c6pYc0DVZGkWjK1OUGvtVU+BtqHpaUq6ZAOak5RLH9UsPT+/ Tm+hrbRA0sAZhr+ZXSG5/u0WI1KB+hvs164CiF4rwneQ6yq2STs5+nBt4STsQ9C8 FewaCSFJOrWlPpHtJEWmwDW603xqp0TzCq+ciJ7JWx9Tvgp9RcNd+yrW1XWUDWjU gx5xI4yW+XXqjLcyGHUJEX0WgSbbTTMeg0ZH3Yvgty5JDuwFnuEc5GJfH0AgzByA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeggedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdludehmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder reejnecuhfhrohhmpedfuehrrghnughonhcuuegvrhhgrhgvnhdfuceosggurhgrghhonh esihhmrghprdgttgeqnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgpdgushhlqdho nhhlhidrnhgvthenucfrrghrrghmpehmrghilhhfrhhomhepsggurhgrghhonhesihhmrg hprdgttgenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0632BC200A4; Fri, 3 Jan 2020 20:10:40 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <157118DA-71A7-4085-987D-CD659370B9CA@yahoo.com> References: <157118DA-71A7-4085-987D-CD659370B9CA.ref@yahoo.com> <157118DA-71A7-4085-987D-CD659370B9CA@yahoo.com> Date: Fri, 03 Jan 2020 19:10:20 -0600 From: "Brandon Bergren" To: "Mark Millard" , "Justin Hibbits" , "Brandon Bergren" , "FreeBSD PowerPC ML" , "freebsd-toolchain@FreeBSD.org" Subject: =?UTF-8?Q?Re:_The_32-bit_powerpc_FreeBSD_early-boot_"tfo=5Fccache=5Fbuck?= =?UTF-8?Q?et_panic"_on_(2_socket=3F)_G5s:_visible_at_-r356118,_not_happ?= =?UTF-8?Q?ening_at_-r356109?= Content-Type: text/plain X-Rspamd-Queue-Id: 47qNxb2N0zz4bLV X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=imap.cc header.s=fm2 header.b=7xsUEij6; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=QyD7Suab; dmarc=pass (policy=none) header.from=imap.cc; spf=pass (mx1.freebsd.org: domain of bdragon@imap.cc designates 64.147.123.25 as permitted sender) smtp.mailfrom=bdragon@imap.cc X-Spamd-Result: default: False [-0.89 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; XM_UA_NO_VERSION(0.01)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[imap.cc]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25:c]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[imap.cc:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[imap.cc,none]; SUBJ_EXCESS_QP(1.20)[]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[imap.cc]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[imap.cc:s=fm2,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(0.00)[ip: (-9.82), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; MID_RHS_WWW(0.50)[] 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: Sat, 04 Jan 2020 01:10:44 -0000 Yeah, this is the crash that I've been banging my head on for days. On Fri, Jan 3, 2020, at 4:35 PM, Mark Millard wrote: > This is based on testing artifact.ci.freebsd.org > 32-bit powerpc materials on some (2 socket) G5s. > It is the later FreeBSD head revision that causes > an earlier boot-failure than the other one that I > recently reported. > > There are no 32-bit powerpc artifacts between > -r356109 and -r356118 (non-inclusive of either end). > This limits how specific the evidence is -- but also > avoids getting my personal builds involved as a > potential problem source. > > I'll note that -r356111 was for: > > Use LLVM as default toolchain for all PowerPC targets > > and -r356014 was for: > > [PowerPC] enable atomic.c in compiler_rt and do not check and forces > lock/lock_free decisions in compiled time > > (and would start to be put to use by -r356111 and > later). > > This suggests the possibility of atomic-activity > that is insufficient on the example G5 machines. > (I only have access to dual socket G5s.) But I've > no specific evidence about the llvm generated > code leads to the tfo_ccache_bucket panic. > > The crashes look like (typed from a screen > shot): > > . . . > Timecounters tick every 1.000 msec > firewire0: w nodes, maxhop <= 1 cable IRM irm(1) (me) > firewire0: bus manager 1 > . . . (1 or 2 lines that only sometimes show up, then) . . . > panic: lock "tfo_ccache_bucket" 0xd2858008 already initialized > cpuid = 0 > time = 1 > KDB: stack backtrace > 0xd00048b0: at kdb_backtrace+0x64 > 0xd0004910: at vpanic+0x200 > 0xd0004980: at panic+0x64 > 0xd00049c0: at lock_init+0x200 > 0xd00049d0: at _mtx_init+0x7c > 0xd00049f0: at tcp_fastopen_init+0x1e8 > 0xd0004a20: at tcp_init+0x234 > 0xd0004a50: at protosv_init+0x1d4 > 0xd0004a60: at vnet_domain_init+0x5c > 0xd0004a80: at vnet_register_sysinit+0x154 > 0xd0004ab0: at mi_startup+0x280 > 0xd0004af0: at btext+0x74 > KDB: enter: panic > [ thread pid 0 tid 100000 ] > Stopped at kdb_enter+0x74: addi r3,r0,0x0 > db> > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > -- Brandon Bergren bdragon@imap.cc From owner-freebsd-ppc@freebsd.org Sat Jan 4 10:56:39 2020 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 AF8AB1DC5DB for ; Sat, 4 Jan 2020 10:56:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qdxg4JQTz47f8 for ; Sat, 4 Jan 2020 10:56:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 73F0910E9B; Sat, 4 Jan 2020 10:56:39 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 71B4510E9A for ; Sat, 4 Jan 2020 10:56:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qdxg1kS6z47f6 for ; Sat, 4 Jan 2020 10:56:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 35B31BEEB for ; Sat, 4 Jan 2020 10:56:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 004AudYl039973 for ; Sat, 4 Jan 2020 10:56:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 004AudWW039972 for powerpc@FreeBSD.org; Sat, 4 Jan 2020 10:56:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242680] devel/subversion Fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: undefined reference to `__sync_* Date: Sat, 04 Jan 2020 10:56:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lfmorrison@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Sat, 04 Jan 2020 10:56:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242680 --- Comment #5 from lfmorrison@gmail.com --- (In reply to Piotr Kubaj from comment #4) That looks promising, but I am not in a position to try switching away from stable right now. It also looks like that commit deliberately limited its s= cope to only the kernel for the time being, with effort in the future to make it visible to userspace. In any event, apr is also capable of providing its own workarounds for work= ing atomically if compiler built-ins are not available. A couple different approaches are available, ranging from full userspace emulation of atomics using POSIX mutexes, to some CPU-specific inline assembly to achieve atomic operations; for powerpc, it is capable of providing a hybrid approach, using inline assembly for 32-bit atomics and falling back to its POSIX mutex emulation for 64-bit. Unfortunately, apr's configure script, as it is currently written, doesn't = know how to deal with a situation in which the compiler provides 32-bit atomic built-ins, but it doesn't provide corresponding 64-bit built-ins: It just t= ests for the usability and correct behavior of the built-in using a host-specific "int", and if that works then it assumes that corresponding built-ins will = be available for every integer type. That's not currently the case for powerpc. I can see a few different ways forward: 1) It ought to be possible to force apr to always use mutex atomic emulation all the time by defining "-DUSE_ATOMICS_GENERIC" in CFLAGS. This would fix atomic64, but it would also impose unnecessary performance penalties on atomic32. 2) It also ought to be possible to override the configure script's automatic determination that compiler built-ins are available, using "-UHAVE_ATOMIC_BUILTINS" in CFLAGS. For powerpc, if gnu compiler extensions= are enabled, then this ought to result in an inline assembly atomic32 and a mut= ex emulated atomic64. Probably a fair compromise. 3) I'd really like to make the configure script a little more intelligent, = and give it the ability to independently detect the presence of atomic32 versus atomic64 built-ins, and allow the use of built-in atomic32 together with emulated atomic64. To do this, I think it would also be necessary to patch = the source code to make use of this more fine-grained information. 4) Another option, I suppose, would be to take advantage of the fact that t= he compiler does automatically convert attempts to use atomic64 into a function call. We could and actually supply a fallback to the atomic64 mutex emulati= on via a function of the same name. On an architectures where the compiler built-in is available for both atomic32 and atomic64, the built-in would be used and the emulation function would go unreferenced. However, on an architecture which supplies only built-in atomic32 but not atomic64, the emulation function would be automatically used instead. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sat Jan 4 11:01:55 2020 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 045FF1DCFEB for ; Sat, 4 Jan 2020 11:01:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qf3k6QmSz47pp for ; Sat, 4 Jan 2020 11:01:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id BC99310F21; Sat, 4 Jan 2020 11:01:54 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id BA3B010F20 for ; Sat, 4 Jan 2020 11:01:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qf3k3nZxz47pm for ; Sat, 4 Jan 2020 11:01:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7D790BF6F for ; Sat, 4 Jan 2020 11:01:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 004B1shX051346 for ; Sat, 4 Jan 2020 11:01:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 004B1ssJ051345 for powerpc@FreeBSD.org; Sat, 4 Jan 2020 11:01:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242680] devel/subversion Fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: undefined reference to `__sync_* Date: Sat, 04 Jan 2020 11:01:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lfmorrison@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Sat, 04 Jan 2020 11:01:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242680 --- Comment #6 from lfmorrison@gmail.com --- (In reply to lfmorrison from comment #5) Correction: configure tests for built-in atomic using a host-specific "long= ". That is still inadequate to tell for sure about the availability of atomic6= 4 on all architectures. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sat Jan 4 12:14:52 2020 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 80FCF1E5487 for ; Sat, 4 Jan 2020 12:14:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qggw2n60z4C2k for ; Sat, 4 Jan 2020 12:14:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 585B511862; Sat, 4 Jan 2020 12:14:52 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 558FE11861 for ; Sat, 4 Jan 2020 12:14:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qggw0t9Wz4C2j for ; Sat, 4 Jan 2020 12:14:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 17BA8CD3D for ; Sat, 4 Jan 2020 12:14:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 004CEpHZ028984 for ; Sat, 4 Jan 2020 12:14:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 004CEp83028976 for powerpc@FreeBSD.org; Sat, 4 Jan 2020 12:14:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242506] lang/gcc9: cc1: internal compiler error: Segmentation fault (on FreeBSD 12.1-RELEASE-p1) Date: Sat, 04 Jan 2020 12:14:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkubaj@FreeBSD.org X-Bugzilla-Flags: merge-quarterly- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Sat, 04 Jan 2020 12:14:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242506 --- Comment #17 from Piotr Kubaj --- (In reply to Gerald Pfeifer from comment #15) Gustavo's patch (from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242506#c3) seems ok (th= e port builds on ppc32) but I had to build with MAKE_JOBS_UNSAFE=3Dyes. It segfaul= ts somewhere in the middle of the build otherwise and I couldn't find the exact error. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-ppc@freebsd.org Sat Jan 4 21:04:21 2020 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 32CE41D210C for ; Sat, 4 Jan 2020 21:04:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qvQs0gKQz4dBN for ; Sat, 4 Jan 2020 21:04:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 103E316512; Sat, 4 Jan 2020 21:04:21 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 0E17A16511 for ; Sat, 4 Jan 2020 21:04:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qvQr5wTlz4dBL for ; Sat, 4 Jan 2020 21:04:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C652F1AE59 for ; Sat, 4 Jan 2020 21:04:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 004L4Kgw027777 for ; Sat, 4 Jan 2020 21:04:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 004L4Ksd027771 for powerpc@FreeBSD.org; Sat, 4 Jan 2020 21:04:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242680] devel/subversion Fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: undefined reference to `__sync_* Date: Sat, 04 Jan 2020 21:04:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lfmorrison@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.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: Sat, 04 Jan 2020 21:04:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242680 --- Comment #7 from lfmorrison@gmail.com --- First experiment: Building apr1 with -DUSE_ATOMICS_GENERIC. Not ideal due to possible performance penalties. But it does result in a usable libapr-1.so file, with which it is possible to build, link, and test subversion successfully. That, at least, is a fallback position. I'll move on to try some other opti= ons now, which would hopefully allow atomic32 to continue to work with native performance. --=20 You are receiving this mail because: You are on the CC list for the bug.=