From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 1FA1C3858C52 for ; Mon, 2 May 2022 12:07:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1FA1C3858C52 Received: by mail-ot1-x32f.google.com with SMTP id l9-20020a056830268900b006054381dd35so9600210otu.4 for ; Mon, 02 May 2022 05:07:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G3rMmGAyu0kmZYens+k+tPmZoHTC7RsNNgyPg8Sr5Dc=; b=Ip+ZPPtMgwo2YH/RhyvQBkB4qUCKAiuXpaFrXSCI/5hPgEiNd0bPnSA5EaYuprQ/Zm 70IdgvAAxUkJvLxcP3xGxDONA08GxwVccRBYrOh5h/Wzae0/Bl3EN8ShaMH+NzqOYXZr nbhna0+Ck1HgaiWEo11fUhQX/cJ2X7/q0+MPbJRgnCB7BXC8o5/uAmFDx0wwAOn3Vout XiNiC44qS9qNgj546cgri3GSAfCCG5LgMf7bvB5BGFzLDEhFDG8ijcrGaKue6wMs3VkX JhEUQdB5D4+QZO3fX1Z5UBwSeASqKiiJwjSxIfILkzEK5pXfLkzAI2qH2NYczLc83ANI UyNQ== X-Gm-Message-State: AOAM532wbgYjU5mIg729j8Fia72H1fXPJSRM+Ga290pshIS2TYtQBz1k xlN1X6rjX8y3xpE90yLPpdc0i1TbzjgILWjvLiVn06ejNGmdkA== X-Google-Smtp-Source: ABdhPJzlZSvS9eU1PHt5pBSBvux9UXwuQ7H3DFhYjLVOCZ7VK9lnp87Q9gBfNhQKInkqIMmTSbHj0d3M/K6dOfjrDGk= X-Received: by 2002:a05:6830:4127:b0:606:2f12:3a45 with SMTP id w39-20020a056830412700b006062f123a45mr24510ott.40.1651493262292; Mon, 02 May 2022 05:07:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zopolis0 Date: Mon, 2 May 2022 22:07:31 +1000 Message-ID: Subject: =?UTF-8?Q?Re=3A_libstdc=2B=2B=2Dv3_failing_to_compile_due_to_no_matchi?= =?UTF-8?Q?ng_function_for_call_to_=E2=80=98operator_new=28sizetype=2C_sizetype=29?= To: Xi Ruoyao Cc: gcc-help@gcc.gnu.org X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 12:07:45 -0000 I've bisected the issue (which still happens with only --enable-languages=3Dc,c++ instead of --enable-languages=3Djava), and 0a0c2c3f06227d46b5e9542dfdd4e0fd2d67d894 is the first bad commit apparently. I think I've done it wrong though, and that 7a42b1fa1a090ead96cc0f94a8060a9650c810d5 is the breaking change. Judging by the commit details, that seems likely, as it modifies what appears to be relevant code. I wonder why it didn't break bootstrap on upstream. On Mon, May 2, 2022 at 8:24 PM Xi Ruoyao wrote: > On Mon, 2022-05-02 at 20:02 +1000, Zopolis0 wrote: > > The thing is, that builds fine, but I havent changed anything to do > > with libstdc++-v3. > > Then maybe you've modified some compiler code common for languages and > cause GCC to misbehave on libstdc++ code (then stage 1 libstdc++ fails), > or maybe it causes GCC to miscompile itself and generate a compiler > misbehaving on libstdc++ code (so stage 2 libstdc++ fails). Or maybe > some modification to the building system causes libstdc++ built with > wrong CXXFLAGS. Who knows? We have no idea how the code is modified. > > > On Mon, May 2, 2022 at 7:29 PM Xi Ruoyao > > wrote: > > > On Mon, 2022-05-02 at 19:20 +1000, Zopolis0 via Gcc-help wrote: > > > > While trying to compile gcj, it breaks on a number of errors, many > > > > of which > > > > are along the lines of "no matching function for call to =E2=80=98o= perator > > > > new(sizetype, sizetype)". However, I have not touched this code, > > > > and this > > > > error does not appear on another branch which is a few months back > > > > from > > > > master. This leads me to believe that this is an error present on > > > > master, > > > > although I have not yet been able to locate the breaking commit. > > > > (Example > > > > of one such error:) > > > > > > Don't guess. Just build the unmodified trunk and if it fails > > > reports to > > > https://gcc.gnu.org/bugzilla. > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >