lang/gcc15 fails to build on aarch64 : error: 'ElfW' redefined [-Werror]

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sun, 04 May 2025 03:06:41 UTC
FYI:

/wrkdirs/usr/ports/lang/gcc15/work/gcc-15.1.0/libgcc/unwind-dw2-fde-dip.c:69:10: error: 'ElfW' redefined [-Werror]
   69 | # define ElfW __ElfN
      |          ^~~~
In file included from /usr/include/machine/elf.h:45,
                 from /usr/include/elf.h:37,
                 from /wrkdirs/usr/ports/lang/gcc15/work/gcc-15.1.0/libgcc/unwind-dw2-fde-dip.c:36:
/usr/include/sys/elf_generic.h:59:9: note: this is the location of the previous definition
   59 | #define ElfW(x)         __ElfN(x)
      |         ^~~~





===
Mark Millard
marklmi at yahoo.com