[Bug 239266] lang/gcc8 fails to build with clang8: tree-vect-loop.c:4979:12: error: expected unqualified-id

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 27 19:18:52 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266

--- Comment #26 from Andreas Tobler <andreast at 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 
case statement.

Index: config.gcc
===================================================================
--- config.gcc  (revision 274937)
+++ config.gcc  (working copy)
@@ -2676,6 +2676,11 @@
                tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h"
                tmake_file="${tmake_file} rs6000/t-freebsd64"
                extra_options="${extra_options} rs6000/linux64.opt"
+               case ${with_abi} in
+                   elfv2)
+                       tm_defines="${tm_defines} LINUX64_DEFAULT_ABI_ELFv2=1"
+                       ;;
+               esac
                ;;
             *)
                tm_file="${tm_file} rs6000/freebsd.h"


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

TIA,
Andreas

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list