public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/107568] New: Bootstrap failure on macOS 12.6 (monterey)
@ 2022-11-08 11:47 simon at pushface dot org
  2022-11-08 13:34 ` [Bug bootstrap/107568] " rguenth at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: simon at pushface dot org @ 2022-11-08 11:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107568

            Bug ID: 107568
           Summary: Bootstrap failure on macOS 12.6 (monterey)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simon at pushface dot org
  Target Milestone: ---

GCC 13-20221030.
With Command Line Tools 14.1.0.0.1.1663981106, the following failures seen in
stage 2.
Bootstrap compiler: 12.2.0.

/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/lex.cc: In function
'unsigned char* cpp_output_line_to_string(cpp_reader*, const unsigned char*)':
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/lex.cc:4624:15: 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]
 4624 |       sprintf ((char *) result, "#%s ", dir_name);
      |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/system.h:38,
                 from
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/lex.cc:23:
/Volumes/Miscellaneous1/x86_64/gcc-13-20221030/prev-gcc/include-fixed/stdio.h:204:10:
note: declared here
  204 | int      sprintf(char * __restrict, const char * __restrict, ...)
__printflike(2, 3);
      |          ^~~~~~~

...

/Volumes/Miscellaneous1/src/gcc-13-20221030/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*)':
/Volumes/Miscellaneous1/src/gcc-13-20221030/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
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/system.h:38,
                 from
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/charset.cc:21:
/Volumes/Miscellaneous1/x86_64/gcc-13-20221030/prev-gcc/include-fixed/stdio.h:204:10:
note: declared here
  204 | int      sprintf(char * __restrict, const char * __restrict, ...)
__printflike(2, 3);
      |          ^~~~~~~

...

/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/macro.cc: In function 'const
uchar* _cpp_builtin_macro_text(cpp_reader*, cpp_hashnode*, location_t)':
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/macro.cc:639:23: 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]
  639 |               sprintf ((char *) pfile->date, "\"%s %2d %4d\"",
      |               ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  640 |                        monthnames[tb->tm_mon], tb->tm_mday,
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  641 |                        tb->tm_year + 1900);
      |                        ~~~~~~~~~~~~~~~~~~~
In file included from
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/system.h:38,
                 from
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/macro.cc:26:
/Volumes/Miscellaneous1/x86_64/gcc-13-20221030/prev-gcc/include-fixed/stdio.h:204:10:
note: declared here
  204 | int      sprintf(char * __restrict, const char * __restrict, ...)
__printflike(2, 3);
      |          ^~~~~~~
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/macro.cc:645:23: 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]
  645 |               sprintf ((char *) pfile->time, "\"%02d:%02d:%02d\"",
      |               ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  646 |                        tb->tm_hour, tb->tm_min, tb->tm_sec);
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Miscellaneous1/x86_64/gcc-13-20221030/prev-gcc/include-fixed/stdio.h:204:10:
note: declared here
  204 | int      sprintf(char * __restrict, const char * __restrict, ...)
__printflike(2, 3);
      |          ^~~~~~~
/Volumes/Miscellaneous1/src/gcc-13-20221030/libcpp/macro.cc:686:15: 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]
  686 |       sprintf ((char *) result, "%u", number);
      |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Miscellaneous1/x86_64/gcc-13-20221030/prev-gcc/include-fixed/stdio.h:204:10:
note: declared here
  204 | int      sprintf(char * __restrict, const char * __restrict, ...)
__printflike(2, 3);
      |          ^~~~~~~

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-04-04 18:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).