From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#21987: Version 0.9 Fails to Compile on Raspbian Date: Tue, 24 Nov 2015 21:49:04 -0500 Message-ID: <87610qyesf.fsf@netris.org> References: <56524494.5060507@softf1.com> <87d1v0srpq.fsf@gnu.org> <56538E5A.60907@softf1.com> <874mgbixba.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]:50268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Q9v-0002t5-Pe for bug-guix@gnu.org; Tue, 24 Nov 2015 21:50:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1Q9j-0004Kq-3T for bug-guix@gnu.org; Tue, 24 Nov 2015 21:50:15 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:34029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Q9i-0004Kd-TC for bug-guix@gnu.org; Tue, 24 Nov 2015 21:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1Q9i-0003C1-DC for bug-guix@gnu.org; Tue, 24 Nov 2015 21:50:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874mgbixba.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 24 Nov 2015 10:03:21 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Martin Vahi , 21987@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > (Please keep 21987@debbugs.gnu.org Cc=E2=80=99d.) > > Martin Vahi skribis: > >> checking build system type... armv6l-unknown-linux-gnueabihf >> checking host system type... armv6l-unknown-linux-gnueabihf > > [...] > >> checking for the Guix system type... armhf-linux > > This is the problem: =E2=80=98configure=E2=80=99 should bail out when it = encounters > =E2=80=9Carmv6l=E2=80=9D. I believe the patch below solves that. > > The triplet we pass to =E2=80=98./configure --build=E2=80=99 starts with = =E2=80=9Carm-=E2=80=9D > (computed from =E2=80=98nix-system->gnu-triplet=E2=80=99.) However, when= running > config.guess outside of the Guix environment on hydra-slave1, I get > =E2=80=9Carmv7l=E2=80=9D. So I think we have to allow both. > > Mark? We should allow arm8* as well, no? Actually armN* for N >=3D 7. Ideally, we would test for the processor features we actually need. Mark =20=20=20=20=20=20 > diff --git a/m4/guix.m4 b/m4/guix.m4 > index 842249a..4f586b6 100644 > --- a/m4/guix.m4 > +++ b/m4/guix.m4 > @@ -51,7 +51,12 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [ > machine_name=3D"i686";; > amd64) > machine_name=3D"x86_64";; > - arm*) > + arm|armv7*) > + # Here we want to exclude CPUs such as "armv6l". On ARMv7 > + # machines, we normally get "armv7l". However, in Guix, we > + # configure with --build=3Darm-unknown-linux-gnueabihf, leading > + # to just "arm", so we also have to allow it. > + # > # TODO: If not cross-compiling, add a sanity check to make > # sure this build machine has the needed features to > # support executables compiled using our armhf gcc,