At Sat, 01 Mar 2025 13:11:08 -0800, "Greg A. Woods" <[email protected]> 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 <[email protected]>
Kelowna, BC +1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgp2OOJTS9xoE.pgp
Description: OpenPGP Digital Signature
