From: Waldemar Brodkorb Date: Fri, 4 Aug 2017 21:44:54 +0000 (+0200) Subject: gcc: fix sparcv8 compile issue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c624d2eef8f9b709cd80d384c11cd840f6bddc76;p=buildroot.git gcc: fix sparcv8 compile issue Fix compile issue with gcc 7.1.0: /tmp/ccxalnSf.s: Assembler messages: /tmp/ccxalnSf.s:12: Error: Architecture mismatch on "rd %tick,%o1". /tmp/ccxalnSf.s:12: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v8.) /tmp/ccxalnSf.s:13: Error: Architecture mismatch on "srlx %o1,32,%o0". /tmp/ccxalnSf.s:13: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v8.) /tmp/ccxalnSf.s:30: Error: Architecture mismatch on "rd %ccr,%g0". /tmp/ccxalnSf.s:30: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v8.) /tmp/ccxalnSf.s:33: Error: Architecture mismatch on "rd %ccr,%g0". /tmp/ccxalnSf.s:33: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v8.) /tmp/ccxalnSf.s:36: Error: Architecture mismatch on "rd %ccr,%g0". /tmp/ccxalnSf.s:36: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v8.) /tmp/ccxalnSf.s:39: Error: Architecture mismatch on "rd %ccr,%g0". /tmp/ccxalnSf.s:39: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v8.) Makefile:684: recipe for target 'os-unix-sysdep.lo' failed Signed-off-by: Waldemar Brodkorb Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index 8ca9847ed9..213f3d7b66 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -78,6 +78,11 @@ ifeq ($(BR2_bfin),y) HOST_GCC_FINAL_CONF_OPTS += --disable-symvers endif +# libcilkrts does not support v8 +ifeq ($(BR2_sparc),y) +HOST_GCC_FINAL_CONF_OPTS += --disable-libcilkrts +endif + # Disable shared libs like libstdc++ if we do static since it confuses linking # In that case also disable libcilkrts as there is no static version ifeq ($(BR2_STATIC_LIBS),y)