NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/60063: binutils fails to build if system has elftools installed



>Number:         60063
>Category:       toolchain
>Synopsis:       binutils fails to build if system has elftools installed
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 07 19:00:00 +0000 2026
>Originator:     Eirik Øverby
>Release:        11.0-RC2
>Organization:
The Floppy Museum
>Environment:
FreeBSD motherfucker 15.0-RELEASE-p3 FreeBSD 15.0-RELEASE-p3 releng/15.0-n281008-5cf7232732d5 GENERIC amd64

>Description:
binutils fails to build on a system with the `elfutils` package installed because HAVE_LIBDEBUGINFOD gets set but the required header file (elfutils/debuginfod.h) is not in the NetBSD source tree.
>How-To-Repeat:
Install elfutils on host system (in my case, FreeBSD-15).
Attempt to build tools.
>Fix:
Adding --with-debuginfod=no to tools/binutils/Makefile allows the tools build to complete correctly:

diff --git a/tools/binutils/Makefile b/tools/binutils/Makefile
index c56085182bd3..b9342d8e0e09 100644
--- a/tools/binutils/Makefile
+++ b/tools/binutils/Makefile
@@ -15,6 +15,7 @@ BASE_CONFIGURE_ARGS= \
        --target=${MACHINE_GNU_PLATFORM} \
        --enable-initfini-array=yes \
        --enable-default-execstack=no \
+       --with-debuginfod=no \
        ${BRANDING}
 
 CONFIGURE_ARGS=        --disable-nls --disable-werror \



Home | Main Index | Thread Index | Old Index