From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id E10E23857418 for ; Wed, 11 May 2022 03:53:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E10E23857418 Received: by mail-oi1-x22b.google.com with SMTP id i66so1273535oia.11 for ; Tue, 10 May 2022 20:53:58 -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=G9p7Cld0ma3MRLO8O1VgGnbsrT5FSlkAr1+/b4ey0tI=; b=wPYc/p0+84xGiFoq9P4vVSn61445kzlUGGR6Vpsw4+jt0gbNpIOQSKzi8yXcHtNIGq jbZcDTGqHib1sHiJV3khL+xJyyXL/RZPQS4W2M1A7C4pYvJu6Lwc3DIhhL+VaViqsoQx q1ewwJvfkdvp2xX9N7iuRJdXNDiygolpK6RqzcULmkhvuLTEbR/FPzZPDBjJnYTnEoLf Z4WPnJJ7BGPvJwnQnyYOUO4ftGnBlH++76MZ0QelamM/BWpBCAnVBN4U68MaEKR3eCBs Qdm4eV0wApMrThgWP4RzSxprhMt/WR1CZdfMPVHCqNqk28zyXOOrsFEuuezywdWD90Yt D1ww== X-Gm-Message-State: AOAM530kU4gODU7Go1UZul+32God3uyFPh+AmevY531r1A/AmpaVJHTB k0EqsDoW25P8TihtGXzm+Sg0p9205gQHoCYF7PE= X-Google-Smtp-Source: ABdhPJzR2gJLWDlB5qGtYMy7QvZudW2TGT47kCQ28D8xcLb+Z3nzkOv2qtdwAQfi0P3Q77PnzNcbNVx2P49Waf0i498= X-Received: by 2002:a05:6808:219c:b0:326:4456:d0be with SMTP id be28-20020a056808219c00b003264456d0bemr1491739oib.79.1652241238111; Tue, 10 May 2022 20:53:58 -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 13:53:47 +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.2 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 03:54:00 -0000 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) On Tue, May 10, 2022 at 9:18 PM Zopolis0 wrote: > Thanks. So, the build system is invoking it correctly, as far as I can > tell. (/home/zopolis4/gcj/libjava/configure --srcdir=../../../gcj/libjava > --cache-file=./config.cache --enable-multilib --disable-bootstrap > --disable-libstdcxx --enable-languages=c,c++,java,lto > --program-transform-name=s,y,y, --disable-option-checking > --with-target-subdir=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu > --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --disable-static) > > On Tue, May 10, 2022 at 9:01 PM Xi Ruoyao wrote: > >> On Tue, 2022-05-10 at 20:56 +1000, Zopolis0 wrote: >> > By the build tree do you mean the directory I'm running configure >> > from? If so, then no libjava directory is present despite the libjava >> > configure script certainly running during the build process. >> >> It should be in x86_64-pc-linux-gnu (or whatever triplet for your >> platform) directory, along with other target libraries (for eg >> libstdc++-v3). If not, something is wrong. >> >> -- >> Xi Ruoyao >> School of Aerospace Science and Technology, Xidian University >> >