From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 6E0583858C2C for ; Sat, 16 Apr 2022 19:24:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6E0583858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mattwilson.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mattwilson.org Received: by mail-pj1-x1029.google.com with SMTP id ll10so10046477pjb.5 for ; Sat, 16 Apr 2022 12:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mattwilson.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P9/0nxDFgUBkw2uR6x+vApsVcxgAXDeGXx4ffrVO5gg=; b=NBcyVXZ5YTen+2orytAiiuXyrovsHofij0KnxqaCHHuzBGyn+CktVr3xoLTxXt3j93 L5l8MaHARbYp0id+pQpvfGv9T5rCQJk+nlzEPTsy70KgBi3cFCHd2WLkuHtC5/cM1qTM Oz2BcNm4H5NZjXBjN2rs4CnYbfgxaZRZyUs5s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P9/0nxDFgUBkw2uR6x+vApsVcxgAXDeGXx4ffrVO5gg=; b=d+VLrLjrCw2pPYKjvoOUf6BS4JgbrhhTgQhgsgyZJsGIX7KLWFfZ+rTIxQh7+HMAYG o2gycjEkNfxuhJ02teWWpbZFTs8cc6yzDDcngRaBJ98VLdqx0WfLXQwHogxLBgVqX2a9 vxJh4PgjiPBiSZvgnWr2dcQB1vry5NE8pQyT9A3wSTlZPHohpBK+w+FYdvuix3toYYxs FnWafzrC3nxTeNst3+ttQ1+dlyrvvzKcQo3qcHt0KD9h9CGzaNtoEV13S9cvh4cK1ihW OFEMjKCXLeBs90dzY7hwNWYJJr5ZhqkLe0fcddFB5x9IPCJTHZ6pCg95+tDBvleiusRL e/zQ== X-Gm-Message-State: AOAM533FEQvN3sm0N9m1MCBu7XK4rscUIi7Fln5w2sTa1cQ9L+zQQO/I bgHH4w9eBeHBhGUbcXG/Z7/X3g== X-Google-Smtp-Source: ABdhPJwjchqROXDoL0iEG4ELw55LvuRtKk9V5sB6qQgtI3m9miQ5HENma50r9elNESS+4G9lXk4p2g== X-Received: by 2002:a17:90b:4cc5:b0:1cb:ba0f:9623 with SMTP id nd5-20020a17090b4cc500b001cbba0f9623mr5109163pjb.85.1650137087355; Sat, 16 Apr 2022 12:24:47 -0700 (PDT) Received: from mattwilson.org ([50.45.185.53]) by smtp.gmail.com with ESMTPSA id c18-20020a056a000ad200b004f0f9696578sm7498257pfl.141.2022.04.16.12.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Apr 2022 12:24:47 -0700 (PDT) Date: Sat, 16 Apr 2022 12:24:45 -0700 From: "Matthew R. Wilson" To: Jonathan Wakely Cc: gcc-help Subject: Re: Error when building gcc w/ Go language on Solaris Message-ID: <20220416192445.dxuftlrblkhctmir@mattwilson.org> References: <20220416053920.4hj6vcnqqlscile7@mattwilson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 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: Sat, 16 Apr 2022 19:24:50 -0000 On 04.16.2022 07:33, Jonathan Wakely wrote: >On Sat, 16 Apr 2022, 06:40 Matthew R. Wilson, >wrote: > >> I am revisiting my attempts to build GCC with Go language support on >> Solaris/SPARCv9. >> >> The error I get when I make is: >> ../.././gotools/../libgo/go/cmd/go/main.go:10:16: error: >> /export/home/mwilson/gcc-build/gcc-11.2.0/host-sparcv9-sun-solaris2.11/gcc/context.o >> exists but does not contain any Go export data >> >> 3) Set my PATH to: /opt/mrwgcc:/usr/bin:/usr/sbin >> >> 4) configured gcc 11.2 with a similar set of options as the >> Solaris-provided gcc: >> >> ./configure --prefix=/opt/mrwgcc \ >> --enable-languages=c,c++,go --enable-shared \ >> --enable-initfini-array \ >> --disable-rpath --with-system-zlib --with-build-config=no \ >> --without-gnu-ld --with-ld=/usr/bin/ld \ >> --with-gnu-as --with-as=/opt/mrwgcc/bin/as sparcv9-sun-solaris2.11 > >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! All the best, Matthew