At Sat, 01 Mar 2025 13:11:08 -0800, "Greg A. Woods" <woods%planix.ca@localhost> wrote:
Subject: suddenly macOS cross-build throws "error: 'vfork' is deprecated: Use posix_spawn or fork"
>
> /Volumes/work/woods/g-NetBSD-src/tools/gdb/../../external/gpl3/gdb/dist/gdb/cli/cli-cmds.c:928:14: error: 'vfork' is deprecated: Use posix_spawn or fork [-Werror,-Wdeprecated-declarations]
> 928 | if ((pid = vfork ()) == 0)
> | ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been explicitly marked deprecated here
> 604 | __deprecated_msg("Use posix_spawn or fork")
> | ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
> 218 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
> | ^
I "fixed" it for now by injecting "-Wno-everything" into the flags, just
as I had been doing in an older version of the source tree.....,
--
Greg A. Woods <gwoods%acm.org@localhost>
Kelowna, BC +1 250 762-7675 RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost> Avoncote Farms <woods%avoncote.ca@localhost>
Attachment:
pgpG6MJir5Wkc.pgp
Description: OpenPGP Digital Signature