NetBSD Problem Report #59383
From www@netbsd.org Fri May 2 17:06:00 2025
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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id AAFB41A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 2 May 2025 17:06:00 +0000 (UTC)
Message-Id: <20250502170559.6256B1A923C@mollari.NetBSD.org>
Date: Fri, 2 May 2025 17:05:59 +0000 (UTC)
From: jiaxun.yang@flygoat.com
Reply-To: jiaxun.yang@flygoat.com
To: gnats-bugs@NetBSD.org
Subject: build.sh failed to build binutils on MacOS 15.4
X-Send-Pr-Version: www-1.0
>Number: 59383
>Category: toolchain
>Synopsis: build.sh failed to build binutils on MacOS 15.4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 02 17:10:00 +0000 2025
>Closed-Date: Sun May 11 08:50:26 +0000 2025
>Last-Modified: Sun May 11 08:50:26 +0000 2025
>Originator: Jiaxun Yang
>Release: current
>Organization:
>Environment:
Darwin Kumiko.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 20:40:30 PDT 2025; root:xnu-11417.121.6~4/RELEASE_ARM64_T8132 arm64
>Description:
build.sh failed to build binutils on MacOS 15.4 with error message:
In file included from /Users/flygoat/mips/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/zlib/zutil.c:10:
In file included from /Users/flygoat/mips/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/zlib/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected ')'
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
/Users/flygoat/mips/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/flygoat/mips/netbsd/src/tools/binutils/../../external/gpl3/binutils/dist/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
>How-To-Repeat:
Run on MacOS:
./build.sh -U -O ~/obj -j4 -m evbmips64-el tools
>Fix:
Patch: https://github.com/FlyGoat/netbsd-src/commit/8cdaf751850ee62241a605a65eee6250cbf65c0e.patch
>Release-Note:
>Audit-Trail:
From: "Jiaxun Yang" <jiaxun.yang@flygoat.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: toolchain/59383: build.sh failed to build binutils on MacOS 15.4
Date: Sat, 10 May 2025 11:32:52 +0100
Just to note that it's fixed by: PR/59413
State-Changed-From-To: open->closed
State-Changed-By: kre@NetBSD.org
State-Changed-When: Sun, 11 May 2025 08:50:26 +0000
State-Changed-Why:
Confirmed fixed. Thanks for the report & the status update.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.