From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 17120385843E for ; Sat, 16 Apr 2022 23:17:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 17120385843E Received: by mail-wm1-x335.google.com with SMTP id ay11-20020a05600c1e0b00b0038eb92fa965so9714892wmb.4 for ; Sat, 16 Apr 2022 16:17:35 -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=FWifIfHQKBfwS5OdJpqR4vPlE//c1HD3wt+K2yDK+xo=; b=QMDGv6NfEKSp90e8VCYLyOm/+36WssI0wzqt0LSBMNFP4Ui2QVm0gMCbOxVspCSefe 2j6o6UpTCk8VX2GnNsbtzHeFABb8F4NrwnEGWeNc6ezT3LfJ4NAwgnYTiPbmrRcDYmq/ 7Rm2InZ178DJ0dL/zS8ebWNgfijykV1L5nQ1dD0jGH2UYsr9lDb5h47g2UKPqZIpEGO9 y4qyuSnX+I2xM19oZ8Phc9ghm+Apj6sbtIuvQnSIahW8doDwTwbdm+akoUlbBK9JCgMr Q3KBZkyYCv91vApJYIqkhovgY7IhMRfzGC2SLpEEWLZZ7sYgjW+/V3yEY9jKhBrahyAz BiVA== X-Gm-Message-State: AOAM530IlUyzyKmoTj7ZTM+uaHOFYRAvwNkPf6zS0puSHSSR2B3Pjin5 Lrfzh4XaZjAZ4XPC4PlACnnHDsqDS/2IribGHuJtr1++ X-Google-Smtp-Source: ABdhPJyW2eNjJtIMcLIv4dY+M+OTtTurEqZh4oArhxNG3MdAXwndL2Wp14n4hl9DgZdgB8jadeOUIJQwuUttEfCGx2k= X-Received: by 2002:a7b:ce99:0:b0:38e:b72a:382c with SMTP id q25-20020a7bce99000000b0038eb72a382cmr9014148wmj.128.1650151053604; Sat, 16 Apr 2022 16:17:33 -0700 (PDT) MIME-Version: 1.0 References: <20220416053920.4hj6vcnqqlscile7@mattwilson.org> <20220416192445.dxuftlrblkhctmir@mattwilson.org> <55a8308e-4538-3492-2cc-d54a9bd578bc@hippo.saclay.inria.fr> In-Reply-To: <55a8308e-4538-3492-2cc-d54a9bd578bc@hippo.saclay.inria.fr> From: Jonathan Wakely Date: Sun, 17 Apr 2022 00:17:19 +0100 Message-ID: Subject: Re: Error when building gcc w/ Go language on Solaris To: gcc-help X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, 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: Sat, 16 Apr 2022 23:17:37 -0000 On Sat, 16 Apr 2022, 20:47 Marc Glisse, wrote: > On Sat, 16 Apr 2022, Jonathan Wakely via Gcc-help wrote: > > >>> Just a guess, but maybe the Go build uses sed or another command like > >>> that, and relies on the POSIX-conforming version in /usr/xpg4/bin > >>> rather than the /usr/bin one. Try putting /usr/xpg4/bin in your path, > >>> just after /opt/mrwgcc/bin > >> > >> Aha! What a great guess -- that fixed it! Thank you so much! > > > > Great! We should document this, if we don't already. And even better > would > > be if the build failed with a clear error mentioning the need for POSIX > sed > > (or whichever command it was). > > https://gcc.gnu.org/install/specific.html#x-x-solaris2 says > "The build process works more smoothly with the legacy Solaris tools so, > if you have /usr/xpg4/bin in your PATH, we recommend that you place > /usr/bin before /usr/xpg4/bin for the duration of the build." > > So we actually document the opposite... > Ouch.