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 3260A385781A for ; Wed, 16 Mar 2022 13:28:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3260A385781A 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 BA5D6A9C34; Wed, 16 Mar 2022 14:28:25 +0100 (CET) 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 QcAaF3RVlU48; Wed, 16 Mar 2022 14:28:25 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508554ce.dip0.t-ipconnect.de [80.133.84.206]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 3E8A3A98ED; Wed, 16 Mar 2022 14:28:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1647437305; bh=PAiJNB162pnfjUah5/2Wsyv78FrkKFy3B40pKy4sTnc=; h=From:To:Cc:Subject:Date:From; b=XqIJBJrBqnrVfrdc/qQBQGmT/IAHShVPSARbqxAh/L+UqnLBr8mnueTQw+8rCuX1u kRcfMqN6UcGzynuHy3q1yxotlAZ9yvqbGaCwUKkLLvyg44DdtM97dIMgDDYYrxIieK b4fdccJTwTLHMIC9Oq512sjOlbOyGflyc1mSpJ4RejfBsQXFAV0xldlQHnCMbSi/gh F4GVOC2ESaUIqLQC7nEl9Y9Nz1S9R1WkF+DGgaACMxQU34IvixTkm2SRXFUmq+5/RD Xf/JsJe13O+OaFEVBbSRCu6HNLoykyBUsdOJCwHCryvEc1D9E8oniBwvqcOV4lTpWA YXxOx8wENHaNw== From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [PATCH] doc: Document Solaris D bootstrap requirements [PR 103528] Date: Wed, 16 Mar 2022 14:28:24 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Status: No, score=-3794.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2022 13:28:29 -0000 --=-=-= Content-Type: text/plain This patch documents the Solaris-specific D bootstrap requirements. Tested by building and inspecting gccinstall.{pdf,info}. Ok for trunk? I've omitted the Darwin-specific stuff so far documented in PRs d/103577 and d/103578: * needs --enable-libphobos * top of gcc-11 branch only * backport of -static-libphobos patch * Darwin/i386 doesn't work at all Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2022-03-16 Rainer Orth gcc: PR d/103528 * doc/install.texi (Tools/packages necessary for building GCC) (GDC): Document libphobos requirement. (Host/target specific installation notes for GCC, *-*-solaris2*): Document libphobos and GDC specifics. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=sol2-d-bootstrap-doc.patch # HG changeset patch # Parent 33de4c9d886299fd8cc97e20c0f761c2f28a3eef doc: Document Solaris D bootstrap requirements [PR 103528] diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -287,7 +287,8 @@ section. @item @anchor{GDC-prerequisite}GDC In order to build GDC, the D compiler, you need a working GDC -compiler (GCC version 9.1 or later), as the D front end is written in D. +compiler (GCC version 9.1 or later) and D runtime library, +@samp{libphobos}, as the D front end is written in D. Versions of GDC prior to 12 can be built with an ISO C++11 compiler, which can then be installed and used to bootstrap newer versions of the D front end. @@ -303,6 +304,10 @@ front end does not make use of any GDC-s of the D language, if too old a GDC version is installed and @option{--enable-languages=d} is used, the build will fail. +On some targets, @samp{libphobos} isn't enabled by default, but compiles +and works if @option{--enable-libphobos} is used. Specifics are +documented for affected targets. + @item A ``working'' POSIX compatible shell, or GNU bash Necessary when running @command{configure} because some @@ -4851,6 +4856,12 @@ GNU binutils. @samp{libstdc++} symbol v appropriate version is found. Solaris @command{c++filt} from the Solaris Studio compilers does @emph{not} work. +In order to build the GNU D compiler, GDC, a working @samp{libphobos} is +needed. That library wasn't built by default in GCC 9--11 on SPARC, or +on x86 when the Solaris assembler is used, but can be enabled by +configuring with @option{--enable-libphobos}. Also, GDC 9.4.0 is +required on x86, while GDC 9.3.0 is known to work on SPARC. + The versions of the GNU Multiple Precision Library (GMP), the MPFR library and the MPC library bundled with Solaris 11.3 and later are usually recent enough to match GCC's requirements. There are two @@ -4864,6 +4875,7 @@ need to configure with @option{--with-gm @item The version of the MPFR libary included in Solaris 11.3 is too old; you need to provide a more recent one. + @end itemize @html --=-=-=--