https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123926
--- Comment #10 from Filip Kastl <pheeck at gcc dot gnu.org> --- Ah, right! You actually have cross binutils on your system. I don't. I'm just periodically testing if the crosscompiler can be built. I don't need it to produce binaries so I don't have a sparc assembler. Therefore my GCC build gets configured differently and I'm seeing errors you don't. The critical change in r16-6798-gfebb0eac64c4a7 must then be this: - #ifdef HAVE_AS_TLS - #define TARGET_TLS 1 - #else - #define TARGET_TLS 0 - #endif - #define TARGET_SUN_TLS TARGET_TLS - #define TARGET_GNU_TLS 0 + #define TARGET_TLS HAVE_AS_TLS + #define TARGET_SUN_TLS 0 Before r16-6798-gfebb0eac64c4a7 HAVE_AS_TLS not being defined was ok and just set TARGET_TLS to 0. Now HAVE_AS_TLS must be defined to build the crosscompiler. That means you need cross binutils to compile sparc crosscompiler. Which, unless I'm mistaken, shouldn't be the case. So that's the problem here. I posted a fix to the mailing list.
