[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28816] New: ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP
From: |
address@hidden |
Subject: |
[Bug ld/28816] New: ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror] |
Date: |
Mon, 24 Jan 2022 18:20:48 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28816
Bug ID: 28816
Summary: ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP"
redefined [-Werror]
Product: binutils
Version: 2.39 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: klausz@haus-gisela.de
Target Milestone: ---
Created attachment 13925
--> https://sourceware.org/bugzilla/attachment.cgi?id=13925&action=edit
patch to fix mentioned error
If compiling current binutils on illumos SPARC/amd64 the following error:
In file included from ../bfd/elf-bfd.h:27:0,
from ldlang.c:44:
./../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror]
#define AT_SUN_HWCAP AT_SUN_CAP_HW1 /* For backward compat only. */
In file included from /usr/include/dlfcn.h:36:0,
from sysdep.h:65,
from ldlang.c:21:
/usr/include/sys/auxv.h:142:0: note: this is the location of the previous
definition
#define AT_SUN_HWCAP 2009
cc1: all warnings being treated as errors
it can be fixed with the following patch (01-AT_SUN_HWCAP.patch - attached):
--- include/elf/common.h.orig 2022-01-24 17:46:06.695028121 +0000
+++ include/elf/common.h 2022-01-24 19:08:06.488683096 +0000
@@ -1406,7 +1406,9 @@
#define AT_SUN_PLATFORM 2008 /* Platform name string. */
#define AT_SUN_CAP_HW1 2009 /* Machine dependent hints about
processor capabilities. */
+#ifndef AT_SUN_HWCAP
#define AT_SUN_HWCAP AT_SUN_CAP_HW1 /* For backward compat only. */
+#endif
#define AT_SUN_IFLUSH 2010 /* Should flush icache? */
#define AT_SUN_CPU 2011 /* CPU name string. */
#define AT_SUN_EMUL_ENTRY 2012 /* COFF entry point address. */
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/28816] New: ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror],
address@hidden <=
- [Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror], address@hidden, 2022/01/24
- [Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror], cvs-commit at gcc dot gnu.org, 2022/01/25
- [Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror], cvs-commit at gcc dot gnu.org, 2022/01/25
- [Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror], nickc at redhat dot com, 2022/01/25
- [Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror], address@hidden, 2022/01/26
- [Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror], nickc at redhat dot com, 2022/01/26