Re: ☠ Buildbot (Sourceware): binutils-gdb - failed compile (failure) (master)
Luis Machado
luis.machado@arm.com
Fri Feb 7 12:20:46 GMT 2025
On 2/7/25 08:19, Alan Modra wrote:
> On Thu, Feb 06, 2025 at 10:42:49PM +0000, builder@sourceware.org wrote:
>> A new failure has been detected on builder binutils-debian-amd64 while building binutils-gdb.
>
> --enable-targets=all results in
> eelf_x86_64_sol2.c:88:1: warning: ‘elf_x86_64_before_allocation’ defined but not used [-Wunused-function]
> 88 | elf_x86_64_before_allocation (void)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Perhaps this?
>
> diff --git a/ld/emultempl/solaris2.em b/ld/emultempl/solaris2.em
> index a002b9f56c3..e176a14652e 100644
> --- a/ld/emultempl/solaris2.em
> +++ b/ld/emultempl/solaris2.em
> @@ -5,6 +5,13 @@ if [ -z "$MACHINE" ]; then
> else
> OUTPUT_ARCH=${ARCH}:${MACHINE}
> fi
> +case x${OUTPUT_FORMAT} in
> + x*x86-64*)
> + next_before_allocation=elf_x86_64_before_allocation;;
> + *)
> + next_before_allocation=gld${EMULATION_NAME}_before_allocation;;
> +esac
> +
> fragment <<EOF
> /* This file is generated by a shell script. DO NOT EDIT! */
>
> @@ -135,7 +142,7 @@ elf_solaris2_before_allocation (void)
> basever->vernum = 0;
> }
>
> - gld${EMULATION_NAME}_before_allocation ();
> + $next_before_allocation ();
> }
>
> EOF
>
I'm also running into this from gdb's side.
More information about the Binutils
mailing list