Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2019 19:18:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        powerpc@FreeBSD.org
Subject:   [Bug 239266] lang/gcc8 fails to build with clang8: tree-vect-loop.c:4979:12: error: expected unqualified-id
Message-ID:  <bug-239266-25139-pL0Ri7lonT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239266-25139@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239266-25139@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239266

--- Comment #26 from Andreas Tobler <andreast@FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #16)

Piotr could you try the below patch with the latest ports gcc(8/9)?
Note, I added the missing 'esac' and I moved the double semicolon below the=
=20
case statement.

Index: config.gcc
=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
--- config.gcc  (revision 274937)
+++ config.gcc  (working copy)
@@ -2676,6 +2676,11 @@
                tm_file=3D"${tm_file} rs6000/default64.h rs6000/freebsd64.h"
                tmake_file=3D"${tmake_file} rs6000/t-freebsd64"
                extra_options=3D"${extra_options} rs6000/linux64.opt"
+               case ${with_abi} in
+                   elfv2)
+                       tm_defines=3D"${tm_defines} LINUX64_DEFAULT_ABI_ELF=
v2=3D1"
+                       ;;
+               esac
                ;;
             *)
                tm_file=3D"${tm_file} rs6000/freebsd.h"


--with-abi=3Delfv2 in CONFIGURE_ARGS is fine. How far do you come while
bootstrapping gcc?

TIA,
Andreas

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239266-25139-pL0Ri7lonT>