From mboxrd@z Thu Jan 1 00:00:00 1970 From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Date: Fri, 26 Jul 2019 10:30:38 -0400 Message-ID: <87muh0lvg1.fsf@sdf.lonestar.org> References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53210) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr1IJ-0003uA-Pg for bug-guix@gnu.org; Fri, 26 Jul 2019 10:34:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr1II-0004U9-NK for bug-guix@gnu.org; Fri, 26 Jul 2019 10:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr1II-0004Tq-K5 for bug-guix@gnu.org; Fri, 26 Jul 2019 10:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hr1II-0006o7-Gh for bug-guix@gnu.org; Fri, 26 Jul 2019 10:34:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87ftmtqk84.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 26 Jul 2019 10:21:47 +0200") 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" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36813@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > Note: #:target must be a =E2=80=9CGNU triplet=E2=80=9D like =E2=80=9Carm-= linux-gnueabihf=E2=80=9D, not > a system type like =E2=80=9Ci686-linux=E2=80=9D. Thanks, is 'nix-system->gnu-triplet' the suggested way of obtaining the triplet for a system? > That=E2=80=99s because the Guile used here comes from the #:guile-for-bui= ld > parameter. > > So the caller is responsible for doing the right thing here. In fact, > if you do: > > (lower-gexp exp #:system whatever #:guile-for-build #f) > > it will automatically take care of computing the right Guile for this > system. For consistency, I don=E2=80=99t think we should change the defa= ult, > though. > > WDYT? Changing it to the following: #+BEGIN_SRC scheme (lower-gexp exp #:system "i686-linux" #:target "i686-unknown-linux-gnu" #:guile-for-build #f) #+END_SRC The Guile used is still a 64-bit LSB executable. Similarly, the that's ungexp'd has a profile containing x86_64 executables. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=output jakob@Epsilon ~ $ readlink /gnu/store/6z5hdxjr8db4qm4d578lly3l87mlgkpv-system/profile/bin/* | xargs file /gnu/store/5s2nib1lrd2101bbrivcl17kjx1mspw6-coreutils-8.30/bin/[: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped /gnu/store/9y5cvqnincp2ax5kxyv43zr7gdd89vs2-man-db-2.8.5/bin/apropos: symbolic link to whatis /gnu/store/lm3i15cvw4ybsnf2lsam5nj76kqbjg2k-libtasn1-4.13/bin/asn1Coding: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped /gnu/store/lm3i15cvw4ybsnf2lsam5nj76kqbjg2k-libtasn1-4.13/bin/asn1Decoding: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped /gnu/store/lm3i15cvw4ybsnf2lsam5nj76kqbjg2k-libtasn1-4.13/bin/asn1Parser: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped ... --=-=-= Content-Type: text/plain Regards, Jakob --=-=-=--