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 0EA5C385DC21 for ; Tue, 10 May 2022 07:11:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0EA5C385DC21 Received: from [IPv6:240e:358:1178:9a00:dc73:854d:832e:3] (unknown [IPv6:240e:358:1178:9a00:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 0B1806681F; Tue, 10 May 2022 03:11:30 -0400 (EDT) Message-ID: <8f8fb7611632ff388659b1da3500abc181da97c2.camel@xry111.site> Subject: Re: libjava configure fails on finding no C compiler in $PATH despite gcc being present From: Xi Ruoyao To: Zopolis0 Cc: gcc-help@gcc.gnu.org Date: Tue, 10 May 2022 15:11:21 +0800 In-Reply-To: References: <4d4d2db210a3f181e0114d2670a7918826957900.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=1.5 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, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 10 May 2022 07:11:35 -0000 On Tue, 2022-05-10 at 16:55 +1000, Zopolis0 wrote: > Yeah but the issue still shows up when i do it normally, as the build > process still runs the ./configure file in each subfirectory. >=20 > On Tue, 10 May 2022 at 15:51, Xi Ruoyao wrote: > > On Tue, 2022-05-10 at 10:18 +1000, Zopolis0 via Gcc-help wrote: > > > I am running ./configure directly from libjava > >=20 > > Generally it's not supported by GCC building system (for each target > > libraries, not only libjava). > >=20 Wait a minute: are you running ./configure directly in gcc source directory when you are "doing it normally"? No, you should make an empty directory and run /path/to/gcc-x.y.z/configure. If you've already done it correctly but the building system still invokes "./configure" directly in libjava (or another subdirectory) instead of running "/path/to/gcc-x.y.z/libjava/configure", something is wrong in the building system. Then we can't know why because we don't know what you've done to GCC code. Something you need to be aware of: if you are really doing a serious project adding Java back to GCC, it's better to follow the FLOSS way and publish the code somewhere. Then it's easier to collaborate with others. The other people interested in Java and also experienced in hacking GCC (forgive me if it's insulting, but it seems you are not so familiar with GCC code to finish all the job yourself) can better help you (I know almost nothing about Java, only able to write "Hello world"). OTOH if you are just playing, I'll not reply anymore because this list is for "help for building and using GCC", not "playing with GCC". --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University