From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: rfh: mingw guile.exe stalled by impact of 28dc10a4 Date: Sun, 05 Jun 2016 22:13:06 +0200 Message-ID: <87oa7fpf71.fsf@gnu.org> References: <87eg8bu9gu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9eQK-0004dT-Kt for guix-devel@gnu.org; Sun, 05 Jun 2016 16:13:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9eQH-0005Ib-D6 for guix-devel@gnu.org; Sun, 05 Jun 2016 16:13:28 -0400 In-Reply-To: <87eg8bu9gu.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sun, 05 Jun 2016 14:05:37 +0200") 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.org@gnu.org Sender: "Guix-devel" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org Hello! Jan Nieuwenhuizen skribis: > Since then I got somewhat closer but still do not understand what's > going on. When I revert > > commit 28dc10a455689c807abc9241ed1094d902a9d9fa > Author: Ludovic Court=C3=A8s > Date: Sun May 29 23:15:14 2016 +0200 > > gnu: glibc: Refer to the target kernel headers when cross-compili= ng. > > ... > > diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm > index beb689e..b5e229e 100644 > --- a/gnu/packages/base.scm > +++ b/gnu/packages/base.scm > @@ -532,7 +532,10 @@ store.") > ,version) > > (string-append "--with-headers=3D" > - (assoc-ref %build-inputs "linux-headers") > + (assoc-ref ,(if (%current-target-system) > + '%build-target-inputs > + '%build-inputs) > + "linux-headers") > "/include") > > ;; This is the default for most architectures as of GNU = libc 2.21, > > then readline (and guile) can be cross-built for mingw. > > However, with this commit present, when cross building readline on my v9 > branch (https://gitlab.com/janneke/guix) like so: > > ./pre-inst-env guix build --target=3Di686-w64-mingw32 readline > > this now triggers the build of gcc-cross-sans-libc-x86_64-linux-gnu > and gcc-x86_64-linux-gnu. Hmm the above commit normally cannot trigger anything since it simply modifies =E2=80=9Cbuild-side=E2=80=9D code (that is, it does not change the= inputs of packages; it just changes the content of the build program.) Are you sure that reverting this commit solves the problem? Maybe we=E2=80=99re entering a cross-build context with =E2=80=98%current-t= arget-system=E2=80=99 set to =E2=80=98x86_64-linux-gnu=E2=80=99 at some point? Ludo=E2=80=99.