From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 81AF43850430 for ; Thu, 19 May 2022 08:06:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 81AF43850430 Received: from [192.168.124.21] (unknown [113.140.11.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 82E8F66015; Thu, 19 May 2022 04:06:32 -0400 (EDT) Message-ID: <12edd17cc9bba9a86bafd96dfce479fc5ae5ac51.camel@xry111.site> Subject: Re: Segfault in libjava/prims.cc while compiling gcj From: Xi Ruoyao To: Zopolis0 Cc: Jonathan Wakely , gcc-help Date: Thu, 19 May 2022 16:06:30 +0800 In-Reply-To: References: <98a68a34c0d95c812b49f471df3ff3d32e0bea8d.camel@xry111.site> <296056e130d014c20b4d55e9b4b036db13dcb1d2.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, LIKELY_SPAM_FROM, PDS_OTHER_BAD_TLD, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Thu, 19 May 2022 08:06:35 -0000 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=C2=A0extern "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=3Djava, 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 :).=20 --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University