https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123926

--- Comment #9 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- 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

I've just tried exactly that:

* Built cross-binutils 2.46 with --target=sparc-linux

* Built gcc trunk, both at

commit f75fe68437e3cd62548370f9653aae7fee8c621c
Author: Rainer Orth <[email protected]>
Date:   Tue Jan 27 19:11:11 2026 +0100

    build: Only use --fatal-warnings if assembler supports it

  which was before my changes started, and

* at current trunk:

commit f8380ded1f64c275cfe7fdd55789feb0cab70e7b (HEAD -> master, origin/trunk,
origin/master, origin/HEAD)
Author: David Malcolm <[email protected]>
Date:   Wed Feb 25 21:50:58 2026 -0500

    analyzer: fix ICE on putenv of a field [PR124232]

The only differences in gcc/auto-host.h are those expected due to my set
of SPARC configure.ac cleanups:

--- fatal-warnings/gcc/auto-host.h      2026-02-26 11:30:45.456354426 +0100
+++ trunk/gcc/auto-host.h       2026-02-26 11:34:25.474975786 +0100
@@ -358,0 +359,6 @@
+/* Define if you have a working <afunix.h> header file. */
+#ifndef USED_FOR_TARGET
+/* #undef HAVE_AFUNIX_H */
+#endif
+
+
@@ -475,6 +480,0 @@
-/* Define if your assembler supports FMAF, HPC, and VIS 3.0 instructions. */
-#ifndef USED_FOR_TARGET
-#define HAVE_AS_FMAF_HPC_VIS3 1
-#endif
-
-
@@ -781,24 +780,0 @@
-#endif
-
-
-/* Define if your assembler supports SPARC4 instructions. */
-#ifndef USED_FOR_TARGET
-#define HAVE_AS_SPARC4 1
-#endif
-
-
-/* Define if your assembler supports SPARC5 and VIS 4.0 instructions. */
-#ifndef USED_FOR_TARGET
-#define HAVE_AS_SPARC5_VIS4 1
-#endif
-
-
-/* Define if your assembler supports SPARC6 instructions. */
-#ifndef USED_FOR_TARGET
-#define HAVE_AS_SPARC6 1
-#endif
-
-
-/* Define if your assembler and linker support GOTDATA_OP relocs. */
-#ifndef USED_FOR_TARGET
-#define HAVE_AS_SPARC_GOTDATA_OP 1

Otherwise, the file us unchanged, with

fatal-warnings/gcc/auto-host.h:#define HAVE_AS_TLS 1
trunk/gcc/auto-host.h:#define HAVE_AS_TLS 1

I have absolutely no idea why this wouldn't work for you.

Reply via email to