[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" red
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/28816] ../include/elf/common.h:1409:0: error: "AT_SUN_HWCAP" redefined [-Werror] |
Date: |
Wed, 26 Jan 2022 10:41:15 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28816
--- Comment #5 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Klaus Ziegler from comment #4)
> much appreciated, however there are still errors
> building current binutilities on illumos in:
> sim/erc32/erc32.c
Ah - the sim sources are part of gdb, not the binutils - so you will need to
file a separate bug report for this particular issue. Sorry.
> sim/erc32/interf.c
> sim/erc32/sis.c
> they all miss <fcntl.h> on illumos, I patched them
> this way:
> --- sim/erc32/erc32.c.orig 2022-01-24 17:46:12.448917032 +0000
> +++ sim/erc32/erc32.c 2022-01-26 08:46:31.264843513 +0000
> @@ -32,6 +32,9 @@
> #include <unistd.h>
> #include "sis.h"
> #include "sim-config.h"
> +#ifdef __sun
> +#include <fcntl.h>
> +#endif
> would such a patch be suitable for you? - if so I would just open
> a new ticket for the above three ones.
Hmm, presumably this is something specific to the sun platform ?
Both of those files already have #include <sys/fcntl.h> directives in them so I
would suggest that you add those extra lines immediately before or after that.
(Caveat - I cannot approved this patch, it is just a suggestion on my part)/
> btw. I didn't knew that gdb is part of
> binutilities, if 2.38 will be released will it also contain this gdb
> release?
No, gdb and the binutils are separate. We do share a repository, but the
projects are distinct and have their own separate release schedules. Also gdb
releases contain their own copy of the binutils sources, as unfortunately the
binutils do not have a stable API.
Cheers
Nick
Cheers
Nick
--
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, 2022/01/24
- [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 <=