From owner-freebsd-ppc@freebsd.org Sat Feb 15 10:01:35 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 48B612551F6 for ; Sat, 15 Feb 2020 10:01:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48KQkl1JCMz438Z for ; Sat, 15 Feb 2020 10:01:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2C78C2551F5; Sat, 15 Feb 2020 10:01:35 +0000 (UTC) Delivered-To: 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 2C3622551F4 for ; Sat, 15 Feb 2020 10:01: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 48KQkl0NCjz438Y for ; Sat, 15 Feb 2020 10:01: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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 070D4B071 for ; Sat, 15 Feb 2020 10:01: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 01FA1YWD087962 for ; Sat, 15 Feb 2020 10:01:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01FA1Y5Q087961 for ppc@FreeBSD.org; Sat, 15 Feb 2020 10:01: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: ppc@FreeBSD.org Subject: [Bug 244102] r357959/lib/clang/libllvmminimal fails buildworld with cc1plus: error: unrecognized command line option "-std=c++11" Date: Sat, 15 Feb 2020 10:01:34 +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: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ppc@FreeBSD.org X-Bugzilla-Flags: 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: Sat, 15 Feb 2020 10:01:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244102 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #2 from Mark Millard --- You are attempting to jump from the gcc 4.2.1 based environment to well past it being supported (via a source code based upgrade sequence). /usr/src/UPDATING has an entry: 20191226: Clang/LLVM is now the default compiler for all powerpc architecture= s. LLD is now the default linker for powerpc64. The change for powerp= c64 also includes a change to the ELFv2 ABI, incompatible with the exis= ting ABI. The modern toolchain requires expects that the compiler and related toochain is llvm/clang based. Bootstrapping via source is non-trivial. I expect that it is an old g++ 4.2.1 that is complaining about the -std=3Dc++11 . See also: https://lists.freebsd.org/pipermail/freebsd-ppc/2019-December/011042.html Which says in part: As of r356113 (__FreeBSD_Version 1300070) Clang is now the default compiler for all PowerPC targets. . . . As mentioned before, the powerpc64 change is also a change to the new ELFv2 ABI, which is binary incompatible with the previous ABI. Therefore, it is recommended to perform a complete reinstall of the system on powerpc64 platforms. (Note: It was a bit before everything was in place.) Trying to bootstrap via source from a g++ 4.2.1 environment is likely not worth the effort. There are some instructions at: https://wiki.freebsd.org/powerpc/llvm-elfv2 but it starts out saying: Reinstalling from the latest snapshot is highly preferable to doing a source upgrade! You have been warned! I'm still in the middle of writing this, don't follow these instructions ye= t! -- Bdragon28 2020-01-08 02:12:58 As a separate issue: head -r357549 broke powerpc64 on at least old PowerMac G5 "Quads" and the issue was only recently identified. No fix is checked in last I looked. I'd target head -r357548 or somewhat before. -r357276 has a snapshot but I do not remember its status. Later snapshots are too late. There is also -r357530 at: https://artifact.ci.freebsd.org/snapshot/head/r357530/powerpc/powerpc64/ --=20 You are receiving this mail because: You are the assignee for the bug.=