From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 452CF3858D1E for ; Thu, 14 Jul 2022 18:40:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 452CF3858D1E Received: by mail-wm1-x333.google.com with SMTP id p4so1584229wms.0 for ; Thu, 14 Jul 2022 11:40:55 -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:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Se1y/fA67Qn9g31vSgxw3PvY7/OFM2FjI6Rz2cxN2bc=; b=EfJSRQxuZ9yWa6AatR5+vWzOQdhOXVYq4fDXle96e2GKoF8i4mzAUw0Fk/B8SFlQC5 bM+2SjjGwvog6ek2kla6kj/Fp/Fy/3UM4sFaYoDyCFovcr+ZqG1mArsISb8YC8aT6ZKk HDxw3f36Wm41dVjntBqBtxlEu+2aQ955wJ9unv0v+Bh5SgJ8X2/QnlTmdTdY5FNDrVua UUxsawnzaG6YY2ylS8xef7uHY+ZuBhQjzShf2bzYcB5ydwjPKcxfDJdgHv0+YTlUh58F 73b88BlVr8ZfSVe6jmgLYilXzAs1AjtzLxwljY+/V4G2Xlkkg71sW2peXeIapit/ckml oGRQ== X-Gm-Message-State: AJIora/XUsyZ8kb/w5TKMCmJraeYjUWefdLObp09zlFy2YNyJjuwWktl YKnfqoIXzCgyDualMkS+ww== X-Google-Smtp-Source: AGRyM1vra4KcSjd/mo/3qIZGPMDU4qf/gRZOqaGzFGIJEiiAyU7fydkqxCiYLtumBUCwh8w2S+ieCQ== X-Received: by 2002:a05:600c:1e1e:b0:3a3:b97:91b3 with SMTP id ay30-20020a05600c1e1e00b003a30b9791b3mr81090wmb.25.1657824053682; Thu, 14 Jul 2022 11:40:53 -0700 (PDT) Received: from smtpclient.apple ([2001:8a0:57a5:8200:14fc:6754:f2bc:c186]) by smtp.gmail.com with ESMTPSA id g18-20020a056000119200b0021d8a92d276sm2029253wrx.67.2022.07.14.11.40.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jul 2022 11:40:52 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Compiling gcc-3.4.6 on sparc Solaris 9 From: Daniel Santos In-Reply-To: Date: Thu, 14 Jul 2022 19:40:51 +0100 Cc: Jonathan Wakely , gcc-help Content-Transfer-Encoding: quoted-printable Message-Id: <00A550FF-E267-496E-B1B0-B2FF9A87589E@gmail.com> References: <6A2F680E-2A62-46AA-8320-B799E1B49357@gmail.com> To: Rainer Orth X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Thu, 14 Jul 2022 18:40:57 -0000 Hello, As to switching to gcc 4.9, can my currently installed gcc 3.4.6 build = it ? While sticking to the 3.4.6 version, I removed the solaris ld out of the = way and am building it with gnu ld. Right now I have the following error : rm -f libv3test.a ar cru libv3test.a testsuite_abi.o testsuite_allocator.o = testsuite_hooks.o=20 ranlib libv3test.a touch testsuite_wchar_t = /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/scripts/create_testsuite_fil= es \ /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/testsuite = `${PWDCMD-pwd}` /bin/ksh: = /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/scripts/create_testsuite_fil= es: cannot execute make[6]: *** [testsuite_files] Error 126 make[6]: Leaving directory = `/export/home/dlsa/code/gcc-3.4.6-build/sparc-sun-solaris2.9/sparcv9/libst= dc++-v3/testsuite' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory = `/export/home/dlsa/code/gcc-3.4.6-build/sparc-sun-solaris2.9/sparcv9/libst= dc++-v3' make[4]: *** [all] Error 2 make[4]: Leaving directory = `/export/home/dlsa/code/gcc-3.4.6-build/sparc-sun-solaris2.9/sparcv9/libst= dc++-v3' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory = `/export/home/dlsa/code/gcc-3.4.6-build/sparc-sun-solaris2.9/libstdc++-v3'= make[2]: *** [all-multi] Error 2 make[2]: Leaving directory = `/export/home/dlsa/code/gcc-3.4.6-build/sparc-sun-solaris2.9/libstdc++-v3'= make[1]: *** [all] Error 2 make[1]: Leaving directory = `/export/home/dlsa/code/gcc-3.4.6-build/sparc-sun-solaris2.9/libstdc++-v3'= make: *** [all-target-libstdc++-v3] Error 2 Can anyone help me understand what this means ? Thanks Regards Daniel Santos > On 14 Jul 2022, at 09:18, Rainer Orth = wrote: >=20 > Jonathan Wakely writes: >=20 >> On Wed, 13 Jul 2022, 19:55 Daniel Santos via Gcc-help, = >> wrote: >>=20 >> Hello community, >>=20 >> I am trying to build gcc on Sparc Solaris 9. >> So far I am creating a directory sibling to the source distribution = directory and >> running configure from there. >> One thing I don=E2=80=99t understand is why the base configure script = does not descend >> automatically to the gcc subfolder. >> I have to go in there and run configure again. >>=20 >> Which shell are you using? >>=20 >> See https://gcc.gnu.org/install/specific.html#x-x-solaris2 where it = says to use ksh. >>=20 >> While running configure with the command line : = ../../gcc-3.4.6/gcc/configure >> =E2=80=94with-gnu-as =E2=80=94with-gnu-ld >> and then make : it builds the files and when it gets to running ld I = get the error : >>=20 >> /usr/local/sparc-sun-solaris2.9/bin/ld: target elf64-sparc not found >>=20 >> I am building this gcc with the same version installed via = sunfkeeware >> packages. >>=20 >> The reason for building it is that I need objective-c support and the = package >> does not have it. >>=20 >> This ld error indicates that the ld executable being run is from = solaris, and not >> the gnu one I have in /usr/local/bin/ld >>=20 >> Can anyone shed some light on this ? >>=20 >> The installation instructions do say to use the native linker, not = the GNU binutils >> one. >> Again, see https://gcc.gnu.org/install/specific.html#x-x-solaris2 >>=20 >> Passing --with-gnu-ld is wrong if it's finding and using the Solaris = linker. Either >> adjust your PATH so the GNU one is found first, or stop telling GCC = it's GNU ld when >> it isn't. >=20 > Besides, because GCC on Solaris supports two incompatible versions of = ld > (Solaris ld and GNU ld), it is crucial to specify the path to the = linker > you want to configure with with --with-ld=3D (both for > /usr/ccs/bin/ld and some version of GNU ld). Otherwise, PATH changes > would randomly break the resulting gcc. >=20 > If you really want to use GNU ld (I don't know why you would, though), > please build and use a recent one: at least what's recommended in > install.texi. You'd probably be able to use GNU ld from current > binutils 2.38, too. >=20 > On top of that, I wouldn't bother with GCC 3.4 at all. Instead, = please > use the latest release still supporting Solaris 9, GCC 4.9.4 It's way > better tested and supported than the ancient GCC 3.4. Please consult > the Solaris sections of the bundled install docs in > gcc/doc/install.texi. It contains many hints and caveats to consider > when building GCC. The online version on gcc.gnu.org is for GCC trunk > only: everything pertaining to Solaris versions no longer supported > (i.e. before Solaris 11.3) has been removed. >=20 > Rainer >=20 > --=20 > = --------------------------------------------------------------------------= --- > Rainer Orth, Center for Biotechnology, Bielefeld University