public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 13 bootstrap failure on i686-w64-mingw32
@ 2022-11-20 12:35 LIU Hao
  2022-11-20 19:17 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: LIU Hao @ 2022-11-20 12:35 UTC (permalink / raw)
  To: gcc; +Cc: jason, jchapman


[-- Attachment #1.1: Type: text/plain, Size: 1558 bytes --]

This is caused by 2efb237ffc68ec9bb17982434f5941bfa14f8b50, which has references to `strchrnul`, 
which does not exist on i686w-64-mingw32:

   ```
   g++ -std=c++11  -fno-PIE -c  -DIN_GCC_FRONTEND -g -D__USE_MINGW_ACCESS -DIN_GCC 
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long 
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc 
-I../../gcc/gcc/cp -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I../../gcc/gcc/../libcody -I/mingw32/include -I/mingw32/include -I/mingw32/include 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber 
-I../../gcc/gcc/../libbacktrace -I/mingw32/include -D__USE_MINGW_ANSI_STDIO=1 -I/mingw32/include -o 
cp/error.o -MT cp/error.o -MMD -MP -MF cp/.deps/error.TPo ../../gcc/gcc/cp/error.cc
   ../../gcc/gcc/cp/contracts.cc: In function 'bool role_name_equal(const char*, const char*)':
   ../../gcc/gcc/cp/contracts.cc:213:21: error: 'strchrnul' was not declared in this scope; did you 
mean 'strchr'?
     213 |   size_t role_len = strchrnul (role, ':') - role;
         |                     ^~~~~~~~~
         |                     strchr
   make[3]: *** [Makefile:1146: cp/contracts.o] Error 1
   make[3]: *** Waiting for unfinished jobs....
   ```


Proposed solution:

   ```
   size_t role_len = strcspn (role, ":");
   ```



-- 
Best regards,
LIU Hao

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

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

* Re: GCC 13 bootstrap failure on i686-w64-mingw32
  2022-11-20 12:35 GCC 13 bootstrap failure on i686-w64-mingw32 LIU Hao
@ 2022-11-20 19:17 ` Jonathan Wakely
  2022-11-21 13:55   ` David Edelsohn
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2022-11-20 19:17 UTC (permalink / raw)
  To: LIU Hao; +Cc: gcc, Jason Merrill, jchapman

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

This fails on macOS too (and probably everything non-gnu).

On Sun, 20 Nov 2022, 12:36 LIU Hao via Gcc, <gcc@gcc.gnu.org> wrote:

> This is caused by 2efb237ffc68ec9bb17982434f5941bfa14f8b50, which has
> references to `strchrnul`,
> which does not exist on i686w-64-mingw32:
>
>    ```
>    g++ -std=c++11  -fno-PIE -c  -DIN_GCC_FRONTEND -g -D__USE_MINGW_ACCESS
> -DIN_GCC
> -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
> -Wno-narrowing -Wwrite-strings
> -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
> -pedantic -Wno-long-long
> -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Icp
> -I../../gcc/gcc
> -I../../gcc/gcc/cp -I../../gcc/gcc/../include
> -I../../gcc/gcc/../libcpp/include
> -I../../gcc/gcc/../libcody -I/mingw32/include -I/mingw32/include
> -I/mingw32/include
> -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid
> -I../libdecnumber
> -I../../gcc/gcc/../libbacktrace -I/mingw32/include
> -D__USE_MINGW_ANSI_STDIO=1 -I/mingw32/include -o
> cp/error.o -MT cp/error.o -MMD -MP -MF cp/.deps/error.TPo
> ../../gcc/gcc/cp/error.cc
>    ../../gcc/gcc/cp/contracts.cc: In function 'bool role_name_equal(const
> char*, const char*)':
>    ../../gcc/gcc/cp/contracts.cc:213:21: error: 'strchrnul' was not
> declared in this scope; did you
> mean 'strchr'?
>      213 |   size_t role_len = strchrnul (role, ':') - role;
>          |                     ^~~~~~~~~
>          |                     strchr
>    make[3]: *** [Makefile:1146: cp/contracts.o] Error 1
>    make[3]: *** Waiting for unfinished jobs....
>    ```
>
>
> Proposed solution:
>
>    ```
>    size_t role_len = strcspn (role, ":");
>    ```
>
>
>
> --
> Best regards,
> LIU Hao
>

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

* Re: GCC 13 bootstrap failure on i686-w64-mingw32
  2022-11-20 19:17 ` Jonathan Wakely
@ 2022-11-21 13:55   ` David Edelsohn
  2022-11-21 13:59     ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: David Edelsohn @ 2022-11-21 13:55 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: LIU Hao, gcc, Jason Merrill, jchapman

[-- Attachment #1: Type: text/plain, Size: 1951 bytes --]

Yes, AIX as well.

Thanks, David

On Sun, Nov 20, 2022 at 2:18 PM Jonathan Wakely via Gcc <gcc@gcc.gnu.org>
wrote:

> This fails on macOS too (and probably everything non-gnu).
>
> On Sun, 20 Nov 2022, 12:36 LIU Hao via Gcc, <gcc@gcc.gnu.org> wrote:
>
> > This is caused by 2efb237ffc68ec9bb17982434f5941bfa14f8b50, which has
> > references to `strchrnul`,
> > which does not exist on i686w-64-mingw32:
> >
> >    ```
> >    g++ -std=c++11  -fno-PIE -c  -DIN_GCC_FRONTEND -g -D__USE_MINGW_ACCESS
> > -DIN_GCC
> > -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
> > -Wno-narrowing -Wwrite-strings
> > -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
> > -pedantic -Wno-long-long
> > -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Icp
> > -I../../gcc/gcc
> > -I../../gcc/gcc/cp -I../../gcc/gcc/../include
> > -I../../gcc/gcc/../libcpp/include
> > -I../../gcc/gcc/../libcody -I/mingw32/include -I/mingw32/include
> > -I/mingw32/include
> > -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid
> > -I../libdecnumber
> > -I../../gcc/gcc/../libbacktrace -I/mingw32/include
> > -D__USE_MINGW_ANSI_STDIO=1 -I/mingw32/include -o
> > cp/error.o -MT cp/error.o -MMD -MP -MF cp/.deps/error.TPo
> > ../../gcc/gcc/cp/error.cc
> >    ../../gcc/gcc/cp/contracts.cc: In function 'bool role_name_equal(const
> > char*, const char*)':
> >    ../../gcc/gcc/cp/contracts.cc:213:21: error: 'strchrnul' was not
> > declared in this scope; did you
> > mean 'strchr'?
> >      213 |   size_t role_len = strchrnul (role, ':') - role;
> >          |                     ^~~~~~~~~
> >          |                     strchr
> >    make[3]: *** [Makefile:1146: cp/contracts.o] Error 1
> >    make[3]: *** Waiting for unfinished jobs....
> >    ```
> >
> >
> > Proposed solution:
> >
> >    ```
> >    size_t role_len = strcspn (role, ":");
> >    ```
> >
> >
> >
> > --
> > Best regards,
> > LIU Hao
> >
>

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

* Re: GCC 13 bootstrap failure on i686-w64-mingw32
  2022-11-21 13:55   ` David Edelsohn
@ 2022-11-21 13:59     ` Jonathan Wakely
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Wakely @ 2022-11-21 13:59 UTC (permalink / raw)
  To: David Edelsohn; +Cc: LIU Hao, gcc, Jason Merrill

On Mon, 21 Nov 2022 at 13:56, David Edelsohn <dje.gcc@gmail.com> wrote:
>
> Yes, AIX as well.

It got reported as PR 107780.

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

end of thread, other threads:[~2022-11-21 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 12:35 GCC 13 bootstrap failure on i686-w64-mingw32 LIU Hao
2022-11-20 19:17 ` Jonathan Wakely
2022-11-21 13:55   ` David Edelsohn
2022-11-21 13:59     ` Jonathan Wakely

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