[Bug target/107568] Darwin: Bootstrap fails with macOS13 sdk because sprintf and friends are deprecated in the SDK.
iains at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 2 12:44:58 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107568
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> ---
(I don't have a macOS13 setup yet, limited hardware available here)
... so, if it is not fixed in the Xcode 14.x releases, we'll have to work
around it in the GCC sources.
Work-around is to add this to the 'make' command line.
BOOT_CFLAGS="-O2 -g -Wno-error=deprecated-declarations"
I think we can arrange for that to be added automatically to the build flags,
it is intended to deal with this before 13 branches.
More information about the Gcc-bugs
mailing list