public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ferdasi at opentrash dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/109852] New: Making of gcc13 stops at libcpp/charset.cc with Error
Date: Sun, 14 May 2023 10:01:03 +0000	[thread overview]
Message-ID: <bug-109852-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 109852
           Summary: Making of gcc13 stops at libcpp/charset.cc with Error
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ferdasi at opentrash dot com
  Target Milestone: ---

After 
git pull
make
configure:
configure --prefix=/home/xxxx/software/gccinstall --disable-multilib
Processor
Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
uname -a 
Linux fedora 6.2.13-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 26 20:15:56
UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

the production of gcc stoped after errors:
ehome/xxxx/software/gcc13/host-x86_64-pc-linux-gnu/prev-gcc/xg++
-B/home/xxxx/software/gcc13/host-x86_64-pc-linux-gnu/prev-gcc/
-B/home/xxxx/software/gcccinstall/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/xxxx/software/gcc13/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/xxxx/software/gcc13/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/xxxx/software/gcc13/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -I/home/xxxx/software/gcc13/prev-x86_64-pc-linux-gnu/libstdc++-v3/include 
-I/home/xxxx/software/gcc13/libstdc++-v3/libsupc++
-L/home/xxxx/software/gcc13/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/xxxx/software/gcc13/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -I../.././libcpp -I. -I../.././libcpp/../include -I../.././libcpp/include
-march=native -O3 -Wall -Wextra  -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../.././libcpp/include -march=native -O3 -Wall
-Wextra    -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo
../.././libcpp/charset.cc
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 16 bytes into a region of size
6 [-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset [3, 6] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 35 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 36 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [4, 6] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 36 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 37 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [5, 6] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 37 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 38 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset 6 into destination object
‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 38 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 39 into destination object
‘buf’     |         ^~~
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [8, 24] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 40 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 41 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [9, 25] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 41 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 42 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [10, 26] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 42 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 43 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [11, 27] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 43 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 44 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [12, 28] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 44 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 45 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [13, 29] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 45 into destination object
‘buf’ of size 6
In function ‘int one_cppchar_to_utf8(cppchar_t, uchar**, size_t*)’,
    inlined from ‘const uchar* convert_ucn(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, source_range,
cpp_string_location_reader*, cpp_substring_ranges*)’ at
../.././libcpp/charset.cc:1764:30,
    inlined from ‘const uchar* convert_escape(cpp_reader*, const uchar*, const
uchar*, _cpp_strbuf*, cset_converter, cpp_string_location_reader*,
cpp_substring_ranges*)’ at ../.././libcpp/charset.cc:2175:26:
../.././libcpp/charset.cc:255:15: error: writing 1 byte into a region of size 0
[-Werror=stringop-overflow=]
  255 |     *outbuf++ = *p++;
      |     ~~~~~~~~~~^~~~~~
../.././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:1747:9: note: at offset 46 into destination object
‘buf’ of size 6
 1747 |   uchar buf[6];
      |         ^~~
../.././libcpp/charset.cc:1747:9: note: at offset [14, 30] into destination
object ‘buf’ of size 6
../.././libcpp/charset.cc:1747:9: note: at offset 46 into destination object
‘buf’ of size 6
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:227: charset.o] Fehler 1
make[3]: Verzeichnis
make end in stage2 with errors
Some more messages where produced with nearly the same text

             reply	other threads:[~2023-05-14 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-14 10:01 ferdasi at opentrash dot com [this message]
2023-05-14 14:13 ` [Bug tree-optimization/109852] Making of gcc13 errors out compiling libcpp/charset.cc with Error with "-march=native -O3 " pinskia at gcc dot gnu.org
2023-05-14 18:53 ` [Bug tree-optimization/109852] Making of gcc13 errors out compiling libcpp/charset.cc with Wstringop-overflow " pinskia at gcc dot gnu.org
2023-05-15  6:10 ` xry111 at gcc dot gnu.org
2023-05-15 15:33 ` ferdasi at opentrash dot com
2023-05-15 15:44 ` ferdasi at opentrash dot com

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-109852-4@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: link
Be 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).