NetBSD Problem Report #60063
From www@netbsd.org Sat Mar 7 18:55:03 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 395601A923C
for <gnats-bugs@gnats.NetBSD.org>; Sat, 7 Mar 2026 18:55:03 +0000 (UTC)
Message-Id: <20260307185502.2D24C1A923D@mollari.NetBSD.org>
Date: Sat, 7 Mar 2026 18:55:02 +0000 (UTC)
From: ltning-netbsd-gnats@anduin.net
Reply-To: ltning-netbsd-gnats@anduin.net
To: gnats-bugs@NetBSD.org
Subject: binutils fails to build if system has elftools installed
X-Send-Pr-Version: www-1.0
X-From4GNATS: "ltning-netbsd-gnats@anduin.net via gnats" <gnats-admin@NetBSD.org>
>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
>Last-Modified: Sun Mar 08 11:00:02 +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 \
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60063 CVS commit: src/tools/binutils
Date: Sat, 7 Mar 2026 14:06:51 -0500
Module Name: src
Committed By: christos
Date: Sat Mar 7 19:06:51 UTC 2026
Modified Files:
src/tools/binutils: Makefile
Log Message:
PR/60063: Eirik Øverby: binutils fails to build if system has elftools
installed, because there is no elfutils/debuginfod.h.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/tools/binutils/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60063 CVS commit: [netbsd-11] src/tools/binutils
Date: Sun, 8 Mar 2026 10:56:28 +0000
Module Name: src
Committed By: martin
Date: Sun Mar 8 10:56:28 UTC 2026
Modified Files:
src/tools/binutils [netbsd-11]: Makefile
Log Message:
Pull up following revision(s) (requested by hgutch in ticket #207):
tools/binutils/Makefile: revision 1.43
PR/60063: Eirik Øverby: binutils fails to build if system has elftools
installed, because there is no elfutils/debuginfod.h.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.39.2.1 src/tools/binutils/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.