From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id 11B61382E90E for ; Fri, 20 May 2022 10:50:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 11B61382E90E Received: by mail-oi1-x234.google.com with SMTP id v9so4869522oie.5 for ; Fri, 20 May 2022 03:50:34 -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=EmpyNq3/mOH4h1FxX9ShIFFVF9OXl+wYUeu7pycdoMA=; b=niH+VYS+E/qYS0Wz0e9jWaOuDFKYnanlJDGN3TaZsw8mTECs4VM/ctcq4HDVV96RDN Y+Dr9FJgrHmmBvajC1CnOhALtih1VtulOaDiyHWSKb6zEs/ccR5hgcwTcGC/qSurWTdf vhn5c/UReRSOyC39v+afSSgbrr/YD+osomCNcS7+DW5EWLRw675u0HRBWy5HIZbEPX0h DZvdvWEyGrr9g9UmSRy8eFTcHgvuwwiVOgjvcFnUr5WfvYAdG3lE9U7uFGBmuQ2wPzI5 Pl08ypsH2oThj8uxWP/n+joJxl3GZTZiwxF6a+0S0532cCuURGQ/Eb8XCsPwYXcsIZBg uJTQ== X-Gm-Message-State: AOAM530gkmcvEBFi8Tu0NMBP1/dwjVGW+Ay0/7Yty0qVfbsM2xbgDPZ6 dTCn8puRiwGQoCTs1d/zysuGC+GrtXN1c0XuNka7rCxN9cE= X-Google-Smtp-Source: ABdhPJy/kBYC1/MtGPo3gR5JId+bmQOJJ5ilrygWHqos12te3GZ1xLBxTshzz5Zm8X+Cye6cbbE1YmCfM4wnw/S/QLw= X-Received: by 2002:a05:6808:2097:b0:326:6bc9:407e with SMTP id s23-20020a056808209700b003266bc9407emr5247381oiw.250.1653043833154; Fri, 20 May 2022 03:50:33 -0700 (PDT) MIME-Version: 1.0 References: <98a68a34c0d95c812b49f471df3ff3d32e0bea8d.camel@xry111.site> <296056e130d014c20b4d55e9b4b036db13dcb1d2.camel@xry111.site> <12edd17cc9bba9a86bafd96dfce479fc5ae5ac51.camel@xry111.site> In-Reply-To: <12edd17cc9bba9a86bafd96dfce479fc5ae5ac51.camel@xry111.site> From: Zopolis0 Date: Fri, 20 May 2022 20:50:22 +1000 Message-ID: Subject: Re: Segfault in libjava/prims.cc while compiling gcj To: Xi Ruoyao Cc: Jonathan Wakely , gcc-help X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" 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: Fri, 20 May 2022 10:50:35 -0000 I have reproduced the issue with /usr/local/gccjava/usr/local/bin/gcc -m32 .libs/prims.ii, where I installed what compiled before failing with make DESTDIR=/usr/local/gccjava. Using -freport-bug results in it saying The bug is not reproducible, so it is likely a hardware or OS problem., which makes me think that its not an actual ICE in the code itself, given that all the ICE's just happen to be on areas of code for catching ICEs. On Thu, May 19, 2022 at 6:06 PM Xi Ruoyao wrote: > On Thu, 2022-05-19 at 14:32 +1000, Zopolis0 wrote: > > Ah. On further inspection, I presume the reason prims.cc fails to > > compile under any circumstances with the system gcc is because the > > system gcc has no support for the standard java types, which are > > enabled if extern "Java" is seen. The system gcc, having no such > > types, cannot act on the extern Java and thus the compilation fails. > > I'm now looking into using a version of gcc 6 configured with -- > > enable-languages=java, or hacking my code to disable the compilation > > of libjava, and then use that version. Should I still report the ICE, > > even if the upstream gcc would fail before reaching it? > > No, because the ICE can't be reproduced with upstream GCC so no upstream > developer will be able to debug it. > > You are on yourself unless you can recruit someone :). > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >