From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id E01E73857BB8 for ; Thu, 14 Jul 2022 18:50:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E01E73857BB8 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id ABF58B0E2F; Thu, 14 Jul 2022 20:50:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4ZSde3mE_e_e; Thu, 14 Jul 2022 20:50:45 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508547b6.dip0.t-ipconnect.de [80.133.71.182]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 1B6C4B0E2C; Thu, 14 Jul 2022 20:50:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1657824645; bh=HlVfqOxlou1ragPZan2YIiiq0g01F0QahBa3DL9cTnM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=U/pBKTb1qfySU1nHHuTUEa+uUiFDNwSt6tO4RcTKGDURpggUy8s0d5HYA/TTDqZuu cpkJ8nEk7nQo4E6SbhYDGFs/r1LFNf61Kn4XcMvavxCZXRaaSCTftTbAbaAdNSD5hd 6DCLUIOqNgUlH2AO8DKYhvCKsCB3LESpcVFEBWvu3NPlNjS0MsUYtktMQZMKHJCsz2 dKprm/aP1Rlp2+GSh0yfeXtRZP+TdUWtD/0frEpnp4VZ+XWYx82pWFvpTVzlRoqUdO TTvLgJWWknEw47X2U4ko55EJ/1XmYC6jwWCF8EfF9W+FRAiRnvzRfyl2LAXR3W5zl1 VXxy2T5MFq0gw== From: Rainer Orth To: Daniel Santos Cc: Jonathan Wakely , gcc-help Subject: Re: Compiling gcc-3.4.6 on sparc Solaris 9 References: <6A2F680E-2A62-46AA-8320-B799E1B49357@gmail.com> <00A550FF-E267-496E-B1B0-B2FF9A87589E@gmail.com> Date: Thu, 14 Jul 2022 20:50:44 +0200 In-Reply-To: <00A550FF-E267-496E-B1B0-B2FF9A87589E@gmail.com> (Daniel Santos's message of "Thu, 14 Jul 2022 19:40:51 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3788.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_NONE, 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:50:52 -0000 Hi Daniel, > As to switching to gcc 4.9, can my currently installed gcc 3.4.6 build it ? as documented in install.texi (you absolute need to check it!), GCC 4.9 requires a ISO C++98 compiler, so GC 3.4.6 should be good. If all else fails, you need to take some intermediate step (like GCC 4.7 which only needed an ISO C89 compiler). > While sticking to the 3.4.6 version, I removed the solaris ld out of the Don't mess around with the installed /usr/ccs/bin/ld. Just pass --with-ld= (and --with-gnu-ld or --without-gnu-ld as needed. > way and am building it with gnu ld. Again: why are you so adamant on using GNU ld here? Solaris ld works way better. > Right now I have the following error : > > rm -f libv3test.a > ar cru libv3test.a testsuite_abi.o testsuite_allocator.o testsuite_hooks.o > ranlib libv3test.a > touch testsuite_wchar_t > /export/home/dlsa/code/gcc-3.4.6/libstdc++-v3/scripts/create_testsuite_files \ > /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_files: > cannot execute That script hardcodes /bin/sh which on Solaris 9 probably isn't able to execute that script. The invocation should be prefixed with $(SHELL) (initialized from $CONFIG_SHELL) instead. I'm pretty certain issues like this have been resolved for GCC 4.9/4.8, so you'd better not bother with GCC 3.4 anymore. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University