From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id 01BF83857BBD for ; Fri, 15 Jul 2022 19:08:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 01BF83857BBD Received: by mail-ed1-x52b.google.com with SMTP id v12so7458222edc.10 for ; Fri, 15 Jul 2022 12:08:39 -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=NNCXW/gRrt4f2O/CP9PEz+nGHKhZBiHTwfpxQ+dAtaQ=; b=YZYSb0C3kWLJ+6U/MMqWmSjjUNc+V5Ji0a2eWHbDmNeBRcGJ+gCBrC+0mw1aavHCNl Sp8oU0tFYstb3xvGVYq3Njpxnf815/PWU2fCdE1SOJ7JAbfAq6Bqpb8RCiXqRaSDSIbR NnTqycDTBraKztFjNSdm/IPe3fhIp8kBucoYGrfuq/puPYExTDwufjQY/TaGafIewZa1 kLlQYxYeaMZqYICkEvVttSY2/68AI5noKYIEWNkcol5gpb7/rWe37NtSwM4DnrgEoohj +Ww4gedrw3Gxb5dCCx8tKLsg81q7BJp6MSi/Nz7j7mfYIdhuCdt7ssxF8/SvMpGvp7Sv scNQ== X-Gm-Message-State: AJIora9bm29jzrbOypn+diL32LTlOGlDwtjXGosDDvoEetbcxJlwdjI2 toExdYnZw+PLsHjkPGQEl4upqlCsadLCHuhh6SU= X-Google-Smtp-Source: AGRyM1sZR6GL1htsnWBukclWyHihs96gc3xT5a5EKI1sqC/DDjDMhIIRecuDb5+O1G3G39XAa/SPsnI4q69CLuqUlck= X-Received: by 2002:a05:6402:1455:b0:43a:77bb:af0f with SMTP id d21-20020a056402145500b0043a77bbaf0fmr20824374edx.301.1657912118619; Fri, 15 Jul 2022 12:08:38 -0700 (PDT) MIME-Version: 1.0 References: <6A2F680E-2A62-46AA-8320-B799E1B49357@gmail.com> <00A550FF-E267-496E-B1B0-B2FF9A87589E@gmail.com> <5D9D938E-2360-439F-B625-FA5B31190778@gmail.com> In-Reply-To: <5D9D938E-2360-439F-B625-FA5B31190778@gmail.com> From: Jonathan Wakely Date: Fri, 15 Jul 2022 20:08:27 +0100 Message-ID: Subject: Re: Compiling gcc-3.4.6 on sparc Solaris 9 To: Daniel Santos Cc: gcc-help X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: Fri, 15 Jul 2022 19:08:42 -0000 On Fri, 15 Jul 2022, 19:11 Daniel Santos via Gcc-help, wrote: > Hello, > > I downloader gcc-4.9.4 sources and did a ./configure just to see what it > was the output. > > bash-2.05$ cd ../gcc-4.9.4 > bash-2.05$ ./configure > configure: loading cache /dev/null > ./configure: ./configure:: No such file or directory > checking build system type... sparc-sun-solaris2.9 > checking host system type... sparc-sun-solaris2.9 > checking target system type... sparc-sun-solaris2.9 > checking for a BSD-compatible install... ./install-sh -c > checking whether ln works... yes > checking whether ln -s works... yes > checking for a sed that does not truncate output... /usr/bin/sed > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking for libatomic support... yes > checking for libcilkrts support... no > checking for libitm support... yes > checking for libsanitizer support... no > checking for libvtv support... no > checking for gcc... gcc > checking for C compiler default output file name... > configure: error: in `/export/home/dlsa/code/gcc-4.9.4': > configure: error: C compiler cannot create executables > See `config.log' for more details. > > In config.log I have the following : > > configure:4249: $? =3D 0 > configure:4238: gcc -v >&5 > Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/specs > Configured with: ../configure --with-as=3D/usr/ccs/bin/as > --with-ld=3D/usr/ccs/bin/ld --enable-shared --enable-languages=3Dc,c++,f7= 7 > Thread model: posix > gcc version 3.4.6 > configure:4249: $? =3D 0 > configure:4238: gcc -V >&5 > gcc: `-V' option must have argument > configure:4249: $? =3D 1 > configure:4238: gcc -qversion >&5 > gcc: unrecognized option `-qversion' > gcc: no input files > configure:4249: $? =3D 1 > configure:4269: checking for C compiler default output file name > configure:4291: gcc conftest.c >&5 > gcc: installation problem, cannot exec `cc1': No such file or directory > configure:4295: $? =3D 1 > configure:4332: result: > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:4338: error: in `/export/home/dlsa/code/gcc-4.9.4': > configure:4342: error: C compiler cannot create executables > See `config.log' for more details. > > Most notably I saw the error : gcc: installation problem, cannot exec > `cc1': No such file or directory > But isn=E2=80=99t cc1 the SUN C compiler ? No, you're thinking of cc. cc1 is GCC's C compiler. Your GCC installation is broken if the 'gcc' driver cannot find its own 'cc1' executable. I don=E2=80=99t have it. > > Also, to see the documentation I installed tetex on the machine and then > did a texi2html install.texi and got : > > bash-2.05$ export PATH=3D/usr/local/teTeX/bin/sparc-sun-solaris2.9/:$PATH > bash-2.05$ pwd > /export/home/dlsa/code/gcc-4.9.4/gcc/doc > bash-2.05$ texi2html install.texi > *** Can't find gcc-common.texi, skipping (l. 10) > ** empty document > bash-2.05$ > > Any help appreciated. > > Thanks, > Regards > Daniel Santos > > > > > On 14 Jul 2022, at 19:50, Rainer Orth > wrote: > > > > 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 t= he > > > > Don't mess around with the installed /usr/ccs/bin/ld. Just pass > > --with-ld=3D (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_fi= les > \ > >> /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_fi= les: > >> 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 > >