From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id D3AFD3858D1E for ; Wed, 16 Mar 2022 15:46:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D3AFD3858D1E Received: by mail-wr1-x434.google.com with SMTP id j26so3592084wrb.1 for ; Wed, 16 Mar 2022 08:46:01 -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:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dmSRYFadawq/8R5dRqzoMieu6TeENT4jB2MYcynfYik=; b=iMoDkjDZ50jnplSoy0eQsUvxrhPi00+Dt6BbciECfTxxRTYh2RvJKzMC58gMhcT95i WiGvYzh+PFo04apgExOvg+VOk9zZqnxWQP3NbNmYr0+tfkJT1nQQgWI01tCty5uz3Sa0 N9X+sF8XrJGnErjth0XoqBQY6BoMnxxcrnXIWITL8T7aHHUY+HbD/L6/nrULbqnhaUmO QgCHov0ehfvzdOjTlKB6TwrwSCAM4Kig0G21mi6LiVhsbph04XgpmnxXA4cR7dB3kuSW pCAMGXTX3TzTbsCj9ZjmiOsyiaVaTJhleoUxL59coA8bs341ijVh7i73c5Qy3O09DsXw bENA== X-Gm-Message-State: AOAM5338i61Jy5zGFBAX+n0JMKdziNIhV2l19r/k9ABM8bUKxZpEJC7w tntyb9k/+60YHKZJLKXIjBQ= X-Google-Smtp-Source: ABdhPJzlFbw2pgWN+3i0zxrMBUl2vXKd6WiYO96x84ZTZBKPXAsAh0OxTYEV1a35CGP6cZnU9CYQZQ== X-Received: by 2002:a05:6000:170c:b0:203:df21:742c with SMTP id n12-20020a056000170c00b00203df21742cmr454669wrc.574.1647445560596; Wed, 16 Mar 2022 08:46:00 -0700 (PDT) Received: from [192.168.1.214] (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.googlemail.com with ESMTPSA id o20-20020a05600c4fd400b00389ded79198sm5974039wmq.34.2022.03.16.08.45.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Mar 2022 08:46:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH] doc: Document Solaris D bootstrap requirements [PR 103528] From: Iain Sandoe In-Reply-To: Date: Wed, 16 Mar 2022 15:45:58 +0000 Cc: GCC Patches , Iain Buclaw Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Rainer Orth X-Mailer: Apple Mail (2.3445.104.21) X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 15:46:09 -0000 > On 16 Mar 2022, at 13:28, Rainer Orth = wrote: >=20 > This patch documents the Solaris-specific D bootstrap requirements. >=20 > Tested by building and inspecting gccinstall.{pdf,info}. >=20 > Ok for trunk? >=20 > I've omitted the Darwin-specific stuff so far documented in PRs = d/103577 > and d/103578: >=20 > * needs --enable-libphobos > * top of gcc-11 branch only > * backport of -static-libphobos patch > * Darwin/i386 doesn't work at all =E2=80=94 hopefully we will not need to add that =E2=80=94 The actual problem is known (FWIW there is also some wrong code = generated for x86_64, we just happen to link it to something harmless instead of = failing to link). - I remain hopeful that a solution for 11.x can be found before gcc-12 = branches, since without m32 support it is hard for me to fit D into regular Darwin = testing (at present D is effectively untested on Darwin since the change to require = a D bootstrap) .. at one stage, D did work on m32 Darwin. Iain >=20 > Rainer >=20 > --=20 > = --------------------------------------------------------------------------= --- > Rainer Orth, Center for Biotechnology, Bielefeld University >=20 >=20 > 2022-03-16 Rainer Orth >=20 > 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. >=20 > # HG changeset patch > # Parent 33de4c9d886299fd8cc97e20c0f761c2f28a3eef > doc: Document Solaris D bootstrap requirements [PR 103528] >=20 > 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 >=20 > 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. >=20 > 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=3Dd} is used, the build will fail. >=20 > +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 >=20 > 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. >=20 > +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 >=20 > @html