From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mengyan1223.wang (mengyan1223.wang [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 4116E3858C50 for ; Tue, 29 Mar 2022 15:57:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4116E3858C50 Received: from [IPv6:240e:358:1104:b400:dc73:854d:832e:3] (unknown [IPv6:240e:358:1104:b400:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@mengyan1223.wang) by mengyan1223.wang (Postfix) with ESMTPSA id 30F4765997; Tue, 29 Mar 2022 11:57:44 -0400 (EDT) Message-ID: <6247a12143870e5ca945896b0ce2cd10c65953f7.camel@mengyan1223.wang> Subject: Re: Need to build libgfortran.a and libquadmath.a From: Xi Ruoyao To: Andy Bowery , Jonathan Wakely , "gcc-help@gcc.gnu.org" Date: Tue, 29 Mar 2022 23:57:41 +0800 In-Reply-To: <1606762617.1111945.1648567787021@mail.yahoo.com> References: <222147991.846192.1648491515241.ref@mail.yahoo.com> <222147991.846192.1648491515241@mail.yahoo.com> <1606762617.1111945.1648567787021@mail.yahoo.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3031.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, KAM_SHORT, SPF_HELO_PASS, 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: Tue, 29 Mar 2022 15:57:50 -0000 On Tue, 2022-03-29 at 15:29 +0000, Andy Bowery via Gcc-help wrote: > =C2=A0Thank you Jonathan for your quick response. I am afraid at the mome= nt > I don't have access to such a multicore system. I will investigate > setting one up. > I tried a different approach and that was to build within the > libgfortran subfolder, by running 'configure' followed by 'make' in > that subfolder. I needed to make libbacktrace.la and=C2=A0libbacktrace.a > available. However this worked and 'libgfortran.a' was created. > So I tried the same approach in the libquadmath subfolder in order to > build 'libquadmath.a'. So in this subfolder I ran: > automake./configuremake > However all I got was the following output and no files created: > make=C2=A0 all-am > make[1]: Entering directory '/home/root/gcc/libquadmath' >=20 > make=C2=A0 DO=3Dall multi-do # make >=20 > make[2]: Entering directory '/home/root/gcc/libquadmath' >=20 > make[2]: Leaving directory '/home/root/gcc/libquadmath' > make[1]: Leaving directory '/home/root/gcc/libquadmath' >=20 > What should I do here? I presume that this is what the higher Makefile > in gcc runs in this subfolder. So if I was run 'make' of the gcc > folder all the through, I presume that it wouldn't make the file > 'libquadmath.a' either.=C2=A0How do I get it to make libquadmath.a using > the Makefile in the libquadmath subfolder? I don't think this is supported by GCC building system. libquadmath, like other GCC target libraries, is only expected to be built with the exact same GCC version in the release tarball. Using another compiler may cause failure. For this specific issue, take a look at configure.ac: AM_CONDITIONAL(BUILD_LIBQUADMATH, [test "x$libquad_cv_have_float128" =3D xy= es]) So, if your compiler does not support __float128, libquadmath building system will do nothing. >From https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html: __float128 is available on i386, x86_64, IA-64, and hppa HP-UX, as well as on PowerPC GNU/Linux targets that enable the vector scalar=C2= =A0 (VSX) instruction set. So I guess __float128 is simply not available for your target. Then there is no way to build libquadmath for it. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University