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

            Bug ID: 123926
           Summary: [16 Regression] sparc cross-compilers fail to build
                    (host=x86_64, target=sparc)
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pheeck at gcc dot gnu.org
                CC: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: sparc*

On x86_64 host, these croscompilers fail to build:

sparc-leon-elf sparc-rtems sparc-leon3-linux-gnu sparc-linux-gnu
sparc-netbsdelf sparc64-sun-solaris2.11 sparc-wrs-vxworks sparc64-elf
sparc64-rtems sparc64-linux sparc64-netbsd sparc64-openbsd

In file included from ./tm.h:29,
                 from build/gencondmd.cc:25:
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8323:2: note: in expansion of macro
‘TARGET_TLS’
 8323 |   "TARGET_TLS && TARGET_ARCH64"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8323:2: note: in expansion of macro
‘TARGET_TLS’
 8323 |   "TARGET_TLS && TARGET_ARCH64"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8313:2: note: in expansion of macro
‘TARGET_TLS’
 8313 |   "TARGET_TLS"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8313:2: note: in expansion of macro
‘TARGET_TLS’
 8313 |   "TARGET_TLS"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8050:2: note: in expansion of macro
‘TARGET_TLS’
 8050 |   "TARGET_TLS && TARGET_ARCH32"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8050:2: note: in expansion of macro
‘TARGET_TLS’
 8050 |   "TARGET_TLS && TARGET_ARCH32"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8313:2: note: in expansion of macro
‘TARGET_TLS’
 8313 |   "TARGET_TLS"
      |  ^~~~~~~~~~
../../src/gcc/config/sparc/sparc.h:1645:20: error: ‘HAVE_AS_TLS’ was not
declared in this scope
 1645 | #define TARGET_TLS HAVE_AS_TLS
      |                    ^~~~~~~~~~~
../../src/gcc/config/sparc/sparc.md:8313:2: note: in expansion of macro
‘TARGET_TLS’
 8313 |   "TARGET_TLS"
      |  ^~~~~~~~~~
make: *** [Makefile:3262: build/gencondmd.o] Error 1


I've bisected using --target=sparc-linux to r16-6798-gfebb0eac64c4a7.  Cc-ing
Rainer.

../src/configure --target=sparc-linux --disable-multilib --disable-libsanitizer
--disable-bootstrap

Reply via email to