From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 9A03538369E8 for ; Wed, 7 Dec 2022 12:08:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A03538369E8 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,225,1665475200"; d="scan'208";a="89267624" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 07 Dec 2022 04:08:35 -0800 IronPort-SDR: KuyRA3kF8VGctNyRRs77UsT5jUgP4i7C+603PiLoW0ruqE6IjIo5WppZV+cu5o4IEbVY2grIsk TGEo4rxQ83pZb08fN7de9GFUq/TQ1ralPbgyW9W2lUpHzSepavFshdvcKU9aesVYn+Z2SMm990 xP+DutneDGxK8XidBE85XvPUeFs3E6yv6oYMidsIOsazivTewC25EyXEZE3GuI8Ryv/5cF1oXs RvBzlujuVTdkX3UOmeGZFyTZooO9CVg43DFaCGakkQWZhhyah77IPp2GIG06rohjXdITPCXPTt tI0= From: Thomas Schwinge To: Ankur Saini , Dave Blanchard CC: , Subject: Re: GDC environment variable In-Reply-To: <09A2C2E5-F5A5-4D0D-ACCC-B51BA60DFABF@gmail.com> References: <20221207001203.355087816cff8c10a1405ae9@killthe.net> <09A2C2E5-F5A5-4D0D-ACCC-B51BA60DFABF@gmail.com> User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/27.1 (x86_64-pc-linux-gnu) Date: Wed, 7 Dec 2022 13:08:30 +0100 Message-ID: <87fsdrju0x.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 List-Id: Hi! On 2022-12-07T12:05:18+0530, Ankur Saini via Gcc wrote: >> On 07-Dec-2022, at 11:42 AM, Dave Blanchard wrote: >> >> Is there an environment variable like 'CC' or 'CXX', which specifies the= name of the D compiler to use, which I might need to set when bootstrappin= g GCC? Thanks. > > I do see make using =E2=80=98GDC' while building gcc compiler, maybe try = changing that ? Indeed 'GDC' is it. See my for example: > [...] I built myself a stock GCC 9.1 with '--enable-languages=3Dd', and v= ia > '[...]/configure [...] CC=3Dgcc-4.8 CXX=3Dg++-4.8 GDC=3D[GCC 9.1]/bin/gdc= [...]' > I'm able to successfully bootstrap GCC, including GCC/D, in a mixed > GCC 4.8/9.1 configuration, with subsequent good-looking 'make check-d' > results. Per my superficial review of the build log file, the > '[GCC 9.1]/bin/gdc' indeed is only used during stage 1 build, as it > should be. [...] Re GCC 9.1, however beware of "stage1 d21 fails to link with GDC 9.1". Gr=C3=BC=C3=9Fe Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955