From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id AECDF3854575 for ; Mon, 21 Nov 2022 13:56:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AECDF3854575 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x631.google.com with SMTP id ud5so28704276ejc.4 for ; Mon, 21 Nov 2022 05:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JXiw0NfOz/vzLwByQtR6iCxmzqL6Lr3d9mM8SndPTO4=; b=jy95LXay+yqc//l2dk0SbW16jjcxJl84wsx8W6qKOq6lF0IftSgte/ovnKCeeOazNv pHeB7ELipOipkgrkw0DibzfCgOhYIQBNF7kp4U4mYMXteyMEqtYvyKGwpooh2BThOxpc web2ocPDVNppxbEspEangEkS9Kbt3Fnf9t/Uvs7h4HCaHEYGh3ZqS52ysSZbuJf33ISZ +iMycmbGTCp5xIw51i2mvPHu/b3cKyzo83obqGEjSIpbr9PO5s6kjhZli4WVb52ccB5v 6bBetiMPBzaVQrcfJZxyEo7X09Twax66dGxb2EgSOi+M3m+Ain054v8XXcXoHCU3nIKz NW8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JXiw0NfOz/vzLwByQtR6iCxmzqL6Lr3d9mM8SndPTO4=; b=ibk+ytBbWIhHN+sfLxvbqwYfgIkRZxBFwylg4Er7OUPyc95RFFGrSp/moGgeNmQ89d /B4ktpKJSzTw2tBKShIOx46dYiRVk8ejtkCyeMZX3KPfaqWknSPXQ+d7ST3d81Vz7tbf 68eo9D4EIbdQXMK2xQBS2D0t5WWCBwCECESxwDPrLPSaiblja5b7vS948aBTK+qiRUhC Tzz1W7fJfhibd/VssaV/uCFqOd5N3eykmBlOkwboO1Ew08ZXBFrVvawyYFInvcHHUzsl JdyrEJMc+sWr0xZYX6DBYSp7ymIDs4S5VFNr3z3HpwsOIq0vwKXaEUdXUo2dFpxhnkpZ KTgQ== X-Gm-Message-State: ANoB5pksQCtgpt8RFepGv0xMZKn0APVVHz1y+7BCLyWoCIpCW6EGyryf TEnnVXNTMt7gQWLyl4Z5dbml5VekaclZNrHFFjQ= X-Google-Smtp-Source: AA0mqf5yEfYOVy+g/O47Y7+i5z6u/BIolq44UfiDTNwSH30PSSn14L3H5sJLd53VqLCuvr4RbEJXGl46twpvTjuUy2U= X-Received: by 2002:a17:906:7f92:b0:783:7020:53a7 with SMTP id f18-20020a1709067f9200b00783702053a7mr15256596ejr.736.1669038977368; Mon, 21 Nov 2022 05:56:17 -0800 (PST) MIME-Version: 1.0 References: <8d31dc28-47ce-a47a-254a-6f1c809b19b1@126.com> In-Reply-To: From: David Edelsohn Date: Mon, 21 Nov 2022 08:55:36 -0500 Message-ID: Subject: Re: GCC 13 bootstrap failure on i686-w64-mingw32 To: Jonathan Wakely Cc: LIU Hao , "gcc@gcc.gnu.org" , Jason Merrill , jchapman@lock3software.com Content-Type: multipart/alternative; boundary="0000000000005cc94005edfb6b3c" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000005cc94005edfb6b3c Content-Type: text/plain; charset="UTF-8" Yes, AIX as well. Thanks, David On Sun, Nov 20, 2022 at 2:18 PM Jonathan Wakely via Gcc wrote: > This fails on macOS too (and probably everything non-gnu). > > On Sun, 20 Nov 2022, 12:36 LIU Hao via Gcc, 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 > > > --0000000000005cc94005edfb6b3c--