From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by sourceware.org (Postfix) with ESMTPS id C15CF3857418 for ; Wed, 11 May 2022 05:59:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C15CF3857418 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-edeb6c3642so1648615fac.3 for ; Tue, 10 May 2022 22:59:47 -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=u8DIDDI3jv7CpsV6BBp3DhriGNXZ/fc1f4UnPpgU9dE=; b=7dRIUn1V+NN21Zv8njBfsCSd4j2b4uYTMN1NktApdM2JrswaE8oxbHNJVTmBPt7TAh 80K3gr0x9i8vN0mLWPCZ0LVVZiBCz5TE5BE4Q7P/Yx+BYkW0CkaSgLCLvp/qNZqrm99R L395KDMuf8w7oFU8Mtr7gKKXZzafw3ayLwtP/3lXbTMl5JSibUQ2SMJdb2qEPo5AFs+g dlEQdMeBYgWxSagF/L4L+euWD1Qmo84BJiYAXrEjlT3ylIaykn4K0MsZkp4dq9D1FgoO eRoHzq26grUgpRq/vEIPkiVUCNCZpxdi6MwIp1a52OZs0Jav2hJhtqehSyGwHzupFo2N ufZg== X-Gm-Message-State: AOAM532NYZL3F8r2zv/iXCynRKY3MgIMxQvO/y/pgeguCcDvzabw81ZG Yzsf03aJoEbKkn0XIyzdxLJmRMWLWRm0Az+94dQ= X-Google-Smtp-Source: ABdhPJwARjKUuH1dKpzGhbB5/6mOQOrSy57oqWnxAJ7Hltib/ne0NAkdjF5ahGiSC3TxH+qUy456DpAsNjBNIujKa4g= X-Received: by 2002:a05:6870:e245:b0:de:9321:9ea3 with SMTP id d5-20020a056870e24500b000de93219ea3mr1834237oac.79.1652248787016; Tue, 10 May 2022 22:59:47 -0700 (PDT) MIME-Version: 1.0 References: <4d4d2db210a3f181e0114d2670a7918826957900.camel@xry111.site> <8f8fb7611632ff388659b1da3500abc181da97c2.camel@xry111.site> In-Reply-To: From: Zopolis0 Date: Wed, 11 May 2022 15:59:36 +1000 Message-ID: Subject: Re: libjava configure fails on finding no C compiler in $PATH despite gcc being present To: Xi Ruoyao Cc: Jonathan Wakely , gcc-help X-Spam-Status: No, score=0.6 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 11 May 2022 05:59:54 -0000 All of the relevant M4sh Shell Functions in other configure scripts in gcc were either added along with the rest of the directory or date back to 22e052725189a472e4e86ebb6595278a49f4bcdd, which did not make notable modifications to the configure.ac scripts, which leads me to believe that there might be something overriding or blocking the creation of these functions in libjava/configure.ac and libjava/libltdl/configure.ac. I also have a suspicion that the reason classpath works is that it was designed to be a standalone library from gcc. On Wed, May 11, 2022 at 1:53 PM Zopolis0 wrote: > On further analysis, the reason it cannot find gcc is almost certainly > because it is missing certain M4sh Shell Functions, specifically the lack > of "as_fn_executable_p FILE" is what is causing it to fail, although other > missing functions include "as_fn_exit STATUS" and "as_fn_set_status > STATUS". Curiously enough, these functions are present, although commented > out, in the config.status section of configure (the libjava one). Running > config.status does not replace the functions nor solve the issue. However, > these functions are present in the classpath configure script, and that one > works perfectly. (Note: I am working on the mster branch instead of the > msterstable one: https://github.com/Zopolis4/gcj/tree/mster) >