From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 2F5643858D39 for ; Sat, 16 Jul 2022 18:54:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2F5643858D39 Received: by mail-wm1-x32c.google.com with SMTP id p26-20020a1c545a000000b003a2fb7c1274so2425941wmi.1 for ; Sat, 16 Jul 2022 11:54:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=fNsqPdEDOQbvmC/GIiqBBf9FtyekZyUM3pG1mS/6v7c=; b=1xNuU6GaUNqN4oBelLXiSBP+lvenOlm5Kt9rvHsDW2XWJSEC+XMikheMDkiR/jKItv yxXJ2SejyvZvFyQJpuSreG5Xrytm6WzoZwAMnss/qntKix5Zmu1HgktfHI/PAnnMiFI3 9KxR5j42ljT0CWT5BKiqIhM2QWbdlwr8gQPowbVc30j56rkRAtA59Py5BjKpk7Ub7nmq v3N9NgI/U4R2jB6KuuIr0rvJkDDiLDBDjT7lIlGKJCjg3JuRtYjgE0GIEpZdFWFbBCfw qvVZxKNSg/LzJ+LHHf+8IJ9TUnN18sBu3BLCGDjO+ly2olD2d5J7OKB/YkER++igvnLi OyVg== X-Gm-Message-State: AJIora8X/4cld2Wo6Y/C2Nm9lpaTJDBP7arCCy9iRC03r/XacJg30B+8 FsNmh4+fYtBf7ykbUsupyg== X-Google-Smtp-Source: AGRyM1snwRFOT2gFupRKech057OL4Mickx0y1LWdvZJgE4DghO/a950HZw3ILpXQK9NKUsKkjl/J9w== X-Received: by 2002:a05:600c:28d:b0:3a2:d06d:3894 with SMTP id 13-20020a05600c028d00b003a2d06d3894mr26137869wmk.51.1657997646692; Sat, 16 Jul 2022 11:54:06 -0700 (PDT) Received: from smtpclient.apple ([2001:8a0:57a5:8200:295d:6ea9:cef1:5a86]) by smtp.gmail.com with ESMTPSA id b4-20020a05600c150400b003a03185231bsm9016473wmg.31.2022.07.16.11.54.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Jul 2022 11:54:05 -0700 (PDT) From: Daniel Santos Message-Id: 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 Date: Sat, 16 Jul 2022 19:54:04 +0100 In-Reply-To: Cc: gcc-help To: Jonathan Wakely References: <6A2F680E-2A62-46AA-8320-B799E1B49357@gmail.com> <00A550FF-E267-496E-B1B0-B2FF9A87589E@gmail.com> <5D9D938E-2360-439F-B625-FA5B31190778@gmail.com> 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, 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: Sat, 16 Jul 2022 18:54:11 -0000 Hello, So I re-installed the gcc 3.4.6 from sunfkeeware packages. I am now able = to do ./configure on the gcc base directory. I got gmp-4.3.2, mpfr-2.4.2 and mpc-1.0.1 sources because gcc depends on = them. I compiled gmp-4.3.2 and it finished. I then did a =E2=80=98make = check=E2=80=99 and at the end of the output i got : make check-TESTS make[4]: Entering directory `/export/home/dlsa/code/gmp-4.3.2/tests' ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-bswap: fatal: = /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-bswap ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-constants: = fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-constants ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-count_zeros: = fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-count_zeros ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-gmpmax: fatal: = /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-gmpmax ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-hightomask: = fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-hightomask ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-modlinv: fatal: = /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-modlinv ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-popc: fatal: = /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-popc ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-parity: fatal: = /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-parity ld.so.1: /export/home/dlsa/code/gmp-4.3.2/tests/.libs/t-sub: fatal: = /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32 FAIL: t-sub =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 9 of 9 tests failed Please report to gmp-bugs@gmplib.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D make[4]: *** [check-TESTS] Error 1 make[4]: Leaving directory `/export/home/dlsa/code/gmp-4.3.2/tests' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/export/home/dlsa/code/gmp-4.3.2/tests' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/export/home/dlsa/code/gmp-4.3.2/tests' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/export/home/dlsa/code/gmp-4.3.2' make: *** [check] Error 2 Which probably means that the gcc version I have installed is 32 bit. Am = I correct ? Can it be used to build a 64 bit 4.9.4 gcc ? Thanks, Regards Daniel Santos > On 15 Jul 2022, at 20:08, Jonathan Wakely = wrote: >=20 >=20 >=20 > On Fri, 15 Jul 2022, 19:11 Daniel Santos via Gcc-help, = > wrote: > Hello, >=20 > I downloader gcc-4.9.4 sources and did a ./configure just to see what = it was the output.=20 >=20 > 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...=20 > configure: error: in `/export/home/dlsa/code/gcc-4.9.4': > configure: error: C compiler cannot create executables > See `config.log' for more details. >=20 > In config.log I have the following : >=20 > 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++,f77= > 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:=20 > 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. */ > |=20 > | int > | main () > | { > |=20 > | ; > | 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. >=20 > 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 ? >=20 > No, you're thinking of cc. >=20 > cc1 is GCC's C compiler. Your GCC installation is broken if the 'gcc' = driver cannot find its own 'cc1' executable. >=20 >=20 >=20 > I don=E2=80=99t have it. >=20 > Also, to see the documentation I installed tetex on the machine and = then did a texi2html install.texi and got : >=20 > bash-2.05$ export = PATH=3D/usr/local/teTeX/bin/sparc-sun-solaris2.9/:$PATH > bash-2.05$ pwd =20 > /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$=20 >=20 > Any help appreciated. >=20 > Thanks, > Regards > Daniel Santos >=20 >=20 >=20 > > On 14 Jul 2022, at 19:50, Rainer Orth > wrote: > >=20 > > Hi Daniel, > >=20 > >> As to switching to gcc 4.9, can my currently installed gcc 3.4.6 = build it ? > >=20 > > 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). > >=20 > >> While sticking to the 3.4.6 version, I removed the solaris ld out = of the > >=20 > > 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. > >=20 > >> way and am building it with gnu ld. > >=20 > > Again: why are you so adamant on using GNU ld here? Solaris ld = works > > way better. > >=20 > >> Right now I have the following error : > >>=20 > >> 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 > >=20 > > 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. > >=20 > > 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. > >=20 > > Rainer > >=20 > > --=20 > > = --------------------------------------------------------------------------= --- > > Rainer Orth, Center for Biotechnology, Bielefeld University >=20