https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123926
--- Comment #8 from Filip Kastl <pheeck at gcc dot gnu.org> ---
I still am not able to build x86_64 host, sparc-linux target cross compiler. I
still get the same errors as in the original report:
[fkastl@fkdesktop sparc-cross-build]$ ../src/configure --target=sparc-linux
--disable-multilib --disable-libsanitizer --disable-bootstrap
[fkastl@fkdesktop sparc-cross-build]$ make
...
g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE
-I. -Ibuild -I../../src/gcc -I../../src/gcc/build -I../../src/gcc/../include
-I../../src/gcc/../libcpp/include \
-o build/gencondmd.o build/gencondmd.cc
In file included from ./tm.h:29,
from build/gencondmd.cc:25:
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8299:2: note: in expansion of macro
‘TARGET_TLS’
8299 | "TARGET_TLS && TARGET_ARCH64"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8299:2: note: in expansion of macro
‘TARGET_TLS’
8299 | "TARGET_TLS && TARGET_ARCH64"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8289:2: note: in expansion of macro
‘TARGET_TLS’
8289 | "TARGET_TLS"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8289:2: note: in expansion of macro
‘TARGET_TLS’
8289 | "TARGET_TLS"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8026:2: note: in expansion of macro
‘TARGET_TLS’
8026 | "TARGET_TLS && TARGET_ARCH32"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8026:2: note: in expansion of macro
‘TARGET_TLS’
8026 | "TARGET_TLS && TARGET_ARCH32"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8289:2: note: in expansion of macro
‘TARGET_TLS’
8289 | "TARGET_TLS"
| ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1625:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
1625 | #define TARGET_TLS HAVE_AS_TLS
| ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8289:2: note: in expansion of macro
‘TARGET_TLS’
8289 | "TARGET_TLS"
| ^~~~~~~~~~