From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: 23/33: gnu: commencement: gcc-boot0: Build fix for the Hurd. Date: Thu, 12 Mar 2020 08:02:13 +0100 Message-ID: <87k13qqcne.fsf@gnu.org> References: <20200310075832.7126.86402@vcs0.savannah.gnu.org> <20200310075850.035F02125B@vcs0.savannah.gnu.org> <87imjcwp1a.fsf@gnu.org> <20200310091810.GT1423@E5400> <87fteg2u56.fsf@gnu.org> <87lfo7t19i.fsf@gnu.org> <259D409F-FF42-4DDB-8F61-075C12E2EF39@flashner.co.il> <87d09iualx.fsf@gnu.org> <6E631CC8-3381-4172-9825-308659BBA5B5@flashner.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34206) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCHrQ-0000fe-Td for guix-devel@gnu.org; Thu, 12 Mar 2020 03:02:30 -0400 In-Reply-To: <6E631CC8-3381-4172-9825-308659BBA5B5@flashner.co.il> (Efraim Flashner's message of "Wed, 11 Mar 2020 16:27:25 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Efraim Flashner Cc: guix-devel@gnu.org Efraim Flashner writes: > On March 11, 2020 4:20:26 PM UTC, Jan Nieuwenhuizen wro= te: >>Efraim Flashner writes: >> >>> If you're using gcc-7 as the bootstrap gcc for the Hurd then IMO you >>> should go ahead and either use gcc-7 or gcc for the libstdc++-boot0 >> >>Ah...your patch but then with gcc-7 instead of gcc-5; gosh why didn't I >>think of that. Thank you! >> >>I'll give that a try...although that patch won't get in, in its current >>form, right? We'd have to think of some solution... >> >>janneke >> > > For new architectures it can go in, but there's no actual need for it > for aarch64 Tried to try this (define libstdc++-boot0 ;; GCC's libcc1 is always built as a shared library (the top-level ;; 'Makefile.def' forcefully adds --enable-shared) and thus needs to refer ;; to libstdc++.so. We therefore use a version of GCC which most closely ;; matches the bootstrap compiler of that architecture. (let ((lib (make-libstdc++ (match (warn 'CS: (or (%current-target-system) (%current-system))) ("i586-gnu" gcc-7) (_ gcc-4.9))))) overnight, but I realised that this diversification does not work; CS is still x86_64-linux here when cross building for the Hurd. janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com