From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 1CA573858D20 for ; Sun, 20 Nov 2022 19:17:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1CA573858D20 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-x62e.google.com with SMTP id i10so24204174ejg.6 for ; Sun, 20 Nov 2022 11:17:47 -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=032nayqbyYrlCJ9qgW4lnH3tgrxtaetet0zNNXxq6zA=; b=HfdM+heR20jHl8ihn6xrKSdIMZGV1MEapwn5NxSm/nBiZ9gSRKtAKtFIKZMGytcIdf OSoOJT4bZUoRoRVNAUzXNoQcsb8SlHIl6GpedQISF9mQWZaABkZW22Ie0SZa6zQVuP68 RVD0YDp5QxjWRN1WS1nAFHW0fvKaZ6gomegurFUrBF1d7dnbbGN3sJUmwn9QSzzQK0re bgWV70WXn/5u6pK9qu9NpZpeCfl8YUMzrIc7FvtyLeiUYAI7HqkIMDKyovcMcPZ0FuWZ 21tdESt9R1KYPjowuufLYxQCq2fbI9wLymfbFmh9rtPQFCByM/SodsoV9qlu+KseL0UE C2IA== 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=032nayqbyYrlCJ9qgW4lnH3tgrxtaetet0zNNXxq6zA=; b=mchS39TRTKctlFTI03QPlhihaXd4h824agxsm+uvGGc1M/LuW6Looc7fWwUdiQqIIO ZzrVQS52mTeKFUNKrjj2CP0hVg+yJ/spBYJ4uA/OUcr0/oE0767MhAd9BCEa5ksTlqtB z4jexWQXi25PMTHylZBe22A8+h5YbpgaZJ/6Ipa3FIMGybeCSFNGxNELEvVrwXS2GokP VjLup9trjkVCJ2H3gvYwVQMZ5b23muWN5I+be8WNEUdgsTzBh6OqbIVW/mXhNY1O4xSO qhbiGJCP43zJWIxkfqPC5o6LSJfqJY3vuzcHL5eKsXJrCgMJLN9ogzAp+jgEHNjdzRuC 9LwQ== X-Gm-Message-State: ANoB5pm9BQKgNbjBsfOsvC2uptJUDAa6UcJRE914WbqcqLmyqRpm+Jh5 ZtN6ufQVxXHpPQGIGLA4qb1U8Kxjj/aPMjpfAG8= X-Google-Smtp-Source: AA0mqf7vIzKYT/k4nh+H/3VvA5pqvJSetXIrSnpLOeI5K3jwcNIY1FyKAwV01vqYP+URcMZxjIH8w+tzAAyORc8HA5c= X-Received: by 2002:a17:906:89a1:b0:7ae:3193:8cf3 with SMTP id gg33-20020a17090689a100b007ae31938cf3mr12211616ejc.416.1668971865819; Sun, 20 Nov 2022 11:17:45 -0800 (PST) MIME-Version: 1.0 References: <8d31dc28-47ce-a47a-254a-6f1c809b19b1@126.com> In-Reply-To: <8d31dc28-47ce-a47a-254a-6f1c809b19b1@126.com> From: Jonathan Wakely Date: Sun, 20 Nov 2022 19:17:32 +0000 Message-ID: Subject: Re: GCC 13 bootstrap failure on i686-w64-mingw32 To: LIU Hao Cc: "gcc@gcc.gnu.org" , Jason Merrill , jchapman@lock3software.com Content-Type: multipart/alternative; boundary="00000000000033cd0205edebcbeb" X-Spam-Status: No, score=-0.0 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: --00000000000033cd0205edebcbeb Content-Type: text/plain; charset="UTF-8" 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 > --00000000000033cd0205edebcbeb--