public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107568] Darwin: Bootstrap fails with macOS13 sdk because sprintf and friends are deprecated in the SDK. Date: Mon, 02 Jan 2023 12:34:18 +0000 [thread overview] Message-ID: <bug-107568-4-OdRYrIVBxX@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107568-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107568 --- Comment #8 from Jürgen Reuter <juergen.reuter at desy dot de> --- What is the status of this problem? I checked with Darwin 22.2 and XCode 14.2, and the problem still persists with the Git master, cf. below. Is there a workaround for the moment? Will this be resolved before the release of gcc14? /usr/local/packages/gcc_trunk/_build/./prev-gcc/xg++ -B/usr/local/packages/gcc_trunk/_build/./prev-gcc/ -B/usr/local/x86_64-apple-darwin22.2.0/bin/ -nostdinc++ -B/usr/local/packages/gcc_trunk/_build/prev-x86_64-apple-darwin22.2.0/libstdc++-v3/src/.libs -B/usr/local/packages/gcc_trunk/_build/prev-x86_64-apple-darwin22.2.0/libstdc++-v3/libsupc++/.libs -I/usr/local/packages/gcc_trunk/_build/prev-x86_64-apple-darwin22.2.0/libstdc++-v3/include/x86_64-apple-darwin22.2.0 -I/usr/local/packages/gcc_trunk/_build/prev-x86_64-apple-darwin22.2.0/libstdc++-v3/include -I/usr/local/packages/gcc_trunk/libstdc++-v3/libsupc++ -L/usr/local/packages/gcc_trunk/_build/prev-x86_64-apple-darwin22.2.0/libstdc++-v3/src/.libs -L/usr/local/packages/gcc_trunk/_build/prev-x86_64-apple-darwin22.2.0/libstdc++-v3/libsupc++/.libs -I../../libcpp -I. -I../../libcpp/../include -I./../intl -I../../libcpp/include -g -O2 -fno-checking -gtoggle -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -Werror -fno-exceptions -fno-rtti -I../../libcpp -I. -I../../libcpp/../include -I./../intl -I../../libcpp/include -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../../libcpp/charset.cc ../../libcpp/charset.cc: In function ‘const uchar* convert_escape(cpp_reader*, const uchar*, const uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*, cpp_substring_ranges*)’: ../../libcpp/charset.cc:2207:18: error: ‘int sprintf(char*, const char*, ...)’ is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror=deprecated-declarations] 2207 | sprintf(buf, "%03o", (int) c); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from ../../libcpp/system.h:38, from ../../libcpp/charset.cc:21: /usr/local/packages/gcc_trunk/_build/prev-gcc/include-fixed/stdio.h:204:10: note: declared here 204 | int sprintf(char * __restrict, const char * __restrict, ...) __printflike(2, 3); | ^~~~~~~
next prev parent reply other threads:[~2023-01-02 12:34 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-08 11:47 [Bug bootstrap/107568] New: Bootstrap failure on macOS 12.6 (monterey) simon at pushface dot org 2022-11-08 13:34 ` [Bug bootstrap/107568] " rguenth at gcc dot gnu.org 2022-11-08 13:37 ` jakub at gcc dot gnu.org 2022-11-08 15:59 ` [Bug target/107568] " pinskia at gcc dot gnu.org 2022-11-09 8:47 ` sam at gentoo dot org 2022-11-20 19:13 ` iains at gcc dot gnu.org 2022-12-13 10:24 ` iains at gcc dot gnu.org 2022-12-13 11:20 ` [Bug target/107568] Darwin: Bootstrap fails with macOS13 sdk because sprintf and friends are deprecated in the SDK pinskia at gcc dot gnu.org 2023-01-02 12:34 ` juergen.reuter at desy dot de [this message] 2023-01-02 12:44 ` iains at gcc dot gnu.org 2023-01-02 14:00 ` juergen.reuter at desy dot de 2023-01-02 14:09 ` iains at gcc dot gnu.org 2023-01-02 17:12 ` iains at gcc dot gnu.org 2023-01-02 19:24 ` juergen.reuter at desy dot de 2023-01-21 17:08 ` cvs-commit at gcc dot gnu.org 2023-04-26 6:57 ` rguenth at gcc dot gnu.org 2023-05-16 19:05 ` cvs-commit at gcc dot gnu.org 2023-05-16 19:11 ` iains at gcc dot gnu.org 2023-05-21 18:55 ` cvs-commit at gcc dot gnu.org 2023-05-21 19:06 ` iains at gcc dot gnu.org 2024-04-04 18:51 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107568-4-OdRYrIVBxX@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).