NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/59383: build.sh failed to build binutils on MacOS 15.4
>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: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 02 17:10:00 +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
Home |
Main Index |
Thread Index |
Old Index