From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Jul 2019 23:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36813@debbugs.gnu.org Cc: ludovic.courtes@inria.fr X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156409732527606 (code B ref -1); Thu, 25 Jul 2019 23:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jul 2019 23:28:45 +0000 Received: from localhost ([127.0.0.1]:40607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqnAD-0007BC-76 for submit@debbugs.gnu.org; Thu, 25 Jul 2019 19:28:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:52938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqnAA-0007B3-7P for submit@debbugs.gnu.org; Thu, 25 Jul 2019 19:28:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41972) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqnA9-00039g-8W for bug-guix@gnu.org; Thu, 25 Jul 2019 19:28:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqnA6-0006Pc-Oa for bug-guix@gnu.org; Thu, 25 Jul 2019 19:28:41 -0400 Received: from ol.sdf.org ([205.166.94.20]:58404 helo=mx.sdf.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hqnA6-0006Mg-FN for bug-guix@gnu.org; Thu, 25 Jul 2019 19:28:38 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6PNSSv8020001 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO); Thu, 25 Jul 2019 23:28:32 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Date: Thu, 25 Jul 2019 19:25:45 -0400 Message-ID: <87imrp3ddy.fsf@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, I believe there is an issue with 'lower-gexp'. Running the following snippet to lower a G-Expression for "i686-linux" yields output that references store paths built for x86_64. In this case, the Guile interpreter used is an x86_64 binary. #+BEGIN_SRC scheme (define (display-exp exp) (mlet* %store-monad ((lowered (lower-gexp exp #:system "i686-linux" #:target "i686-linux")) (to-build -> (cons (lowered-gexp-guile lowered) (lowered-gexp-inputs lowered))) (_ (built-derivations to-build))) (return (format #t "~a~%" (lowered-gexp-sexp lowered))))) (with-store store (run-with-store store (display-exp #~(primitive-load #$(switch-system-program %system))))) #+END_SRC --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=output Content-Transfer-Encoding: quoted-printable Content-Description: Command-line output. jakob@Epsilon ~ $ guile ~/test.scm=20 (primitive-load /gnu/store/v7v1b7375j9j82dvfycv56v36nv5jq3y-switch-to-syste= m.scm) jakob@Epsilon ~ $ cat /gnu/store/v7v1b7375j9j82dvfycv56v36nv5jq3y-switch-to= -system.scm #!/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile --no-au= to-compile !# ... jakob@Epsilon ~ $ file /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.= 2.4/bin/guile /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile: ELF 64-b= it LSB executable, x86-64, version 1 (SYSV), dynamically linked, interprete= r /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-6= 4.so.2, for GNU/Linux 2.6.32, not stripped --=-=-= Content-Type: text/plain This doesn't seem to be an issue if '%current-system' is parameterized, as in the following. #+BEGIN_SRC scheme (parameterize ((%current-system "i686-linux")) (with-store store (run-with-store store (display-exp #~(primitive-load #$(switch-system-program %system)))))) #+END_SRC Regards, Jakob --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl06OnkACgkQ9Qb9Fp2P 2VrvoRAAhubsIhquhACxwIPqjeu1/P76U5wKT8NdxAvtNB5qXQB7ZRbmzxHmNwfO vWIdb/fbxi1Euwn6uGESg52EGJFbmKeNhL1Xw6JyruomEMNHTTkwAY1CNxJic+t2 5It8ThQK6GgZtJNllmODTAe4KJRzCs7d/TKo6yw4Y5R/xpJeX2z4m65LiSsfgHuT VCYfztlQGCdwaOVDoItkGNeqxb/75z8yOUfY/GmBkxw0FnY4iLQTSr9gL7ibTKMQ JQOoHEFoqv1TKeAGk8Y8JMffEhvVlNMxpbYQ9wSkcQhGLO71tiE/hRo146LpL67i dpm5mBccGKwE0LRZHKwf/wgxBN5hvT/kt3Ssb3l4iHvpVT6qe6OrB67f4hZcXaNA hU8FtQ+ptFCZbSwC4r2Dw5akdsMJlFdVVQgupUVs9VKUST+IEzBfRabprOOvDx74 FE1OhF7MEHs8hkjWXJYfaPLTiIjVDQ4GAG6LP7rp/WZ8GUPAvJyenD3L+G1+p2nc Lhqx+oV0u7xX0X53FUWx7+hXabUm9zl/j8u1QgjpYOrlI+7mqLf0yD8m+hV2nelK cj+HfR59yYMiuh8N+MqggfS8nRptzxI2YzlJ5oeAYfN+0VKmv2uaNqLsMIfJfliw hf3LBz05NjGXfsdaV3DBeOzeYaOdlT+EhQq/8UT5jsyN9wi0/oQ= =sWp3 -----END PGP SIGNATURE----- --==-=-=-- From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Jul 2019 08:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Cc: 36813@debbugs.gnu.org Received: via spool by 36813-submit@debbugs.gnu.org id=B36813.15641293214373 (code B ref 36813); Fri, 26 Jul 2019 08:23:01 +0000 Received: (at 36813) by debbugs.gnu.org; 26 Jul 2019 08:22:01 +0000 Received: from localhost ([127.0.0.1]:40792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqvUH-00018P-4L for submit@debbugs.gnu.org; Fri, 26 Jul 2019 04:22:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqvUC-00017x-Ph for 36813@debbugs.gnu.org; Fri, 26 Jul 2019 04:22:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hqvU5-0008GS-Jm; Fri, 26 Jul 2019 04:21:49 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=57182 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hqvU5-0003Jg-3C; Fri, 26 Jul 2019 04:21:49 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87imrp3ddy.fsf@sdf.lonestar.org> Date: Fri, 26 Jul 2019 10:21:47 +0200 In-Reply-To: <87imrp3ddy.fsf@sdf.lonestar.org> (Jakob L. Kreuze's message of "Thu, 25 Jul 2019 19:25:45 -0400") Message-ID: <87ftmtqk84.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Jakob, zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) skribis: > I believe there is an issue with 'lower-gexp'. Running the following > snippet to lower a G-Expression for "i686-linux" yields output that > references store paths built for x86_64. In this case, the Guile > interpreter used is an x86_64 binary. > > #+BEGIN_SRC scheme > (define (display-exp exp) > (mlet* %store-monad ((lowered (lower-gexp exp > #:system "i686-linux" > #:target "i686-linux")) > (to-build -> (cons (lowered-gexp-guile lowered) > (lowered-gexp-inputs lowered))) > (_ (built-derivations to-build))) > (return (format #t "~a~%" (lowered-gexp-sexp lowered))))) > > (with-store store > (run-with-store store > (display-exp #~(primitive-load #$(switch-system-program %system))))) > #+END_SRC Note: #:target must be a =E2=80=9CGNU triplet=E2=80=9D like =E2=80=9Carm-li= nux-gnueabihf=E2=80=9D, not a system type like =E2=80=9Ci686-linux=E2=80=9D. > jakob@Epsilon ~ $ guile ~/test.scm=20 > (primitive-load /gnu/store/v7v1b7375j9j82dvfycv56v36nv5jq3y-switch-to-sys= tem.scm) > jakob@Epsilon ~ $ cat /gnu/store/v7v1b7375j9j82dvfycv56v36nv5jq3y-switch-= to-system.scm > #!/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile --no-= auto-compile > !# > ... > jakob@Epsilon ~ $ file /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-= 2.2.4/bin/guile > /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile: ELF 64= -bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpre= ter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86= -64.so.2, for GNU/Linux 2.6.32, not stripped That=E2=80=99s because the Guile used here comes from the #:guile-for-build 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 defaul= t, though. WDYT? Thanks, Ludo=E2=80=99. From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Jul 2019 14:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36813@debbugs.gnu.org Received: via spool by 36813-submit@debbugs.gnu.org id=B36813.156415160426108 (code B ref 36813); Fri, 26 Jul 2019 14:34:02 +0000 Received: (at 36813) by debbugs.gnu.org; 26 Jul 2019 14:33:24 +0000 Received: from localhost ([127.0.0.1]:43112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr1Hf-0006n1-J1 for submit@debbugs.gnu.org; Fri, 26 Jul 2019 10:33:23 -0400 Received: from mx.sdf.org ([205.166.94.20]:58310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr1He-0006ms-9I for 36813@debbugs.gnu.org; Fri, 26 Jul 2019 10:33:22 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6QEXIqP015960 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO); Fri, 26 Jul 2019 14:33:19 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> Date: Fri, 26 Jul 2019 10:30:38 -0400 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") Message-ID: <87muh0lvg1.fsf@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= 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 --=-=-=-- From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Jul 2019 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Cc: 36813@debbugs.gnu.org Received: via spool by 36813-submit@debbugs.gnu.org id=B36813.156415490415525 (code B ref 36813); Fri, 26 Jul 2019 15:29:01 +0000 Received: (at 36813) by debbugs.gnu.org; 26 Jul 2019 15:28:24 +0000 Received: from localhost ([127.0.0.1]:43189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr28u-00042L-EL for submit@debbugs.gnu.org; Fri, 26 Jul 2019 11:28:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr28r-000426-4e for 36813@debbugs.gnu.org; Fri, 26 Jul 2019 11:28:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hr28l-0004zV-Mb; Fri, 26 Jul 2019 11:28:15 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60566 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hr28k-0004sX-D5; Fri, 26 Jul 2019 11:28:15 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> <87muh0lvg1.fsf@sdf.lonestar.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Thermidor an 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 26 Jul 2019 17:28:11 +0200 In-Reply-To: <87muh0lvg1.fsf@sdf.lonestar.org> (Jakob L. Kreuze's message of "Fri, 26 Jul 2019 10:30:38 -0400") Message-ID: <87a7d0n7ck.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) skribis: > 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. I can=E2=80=99t reproduce it on current =E2=80=98master=E2=80=99: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,run-in-store (lower-gexp #~(+ 2 3) #:guile-for-build = #f #:system "mips64el-linux") $6 =3D #< sexp: (+ 2 3) inputs: () sources: () guile: #< drv: # /gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2.2= .4-debug /gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2.2.4 46e3230> s= ub-derivations: ("out")> load-path: () load-compiled-path: ()> scheme@(guile-user)> (derivation-system (derivation-input-derivation (lower= ed-gexp-guile $6))) $7 =3D "mips64el-linux" --8<---------------cut here---------------end--------------->8--- Not even when cross-compiling (BTW, #:target probably doesn=E2=80=99t make = sense above, since it=E2=80=99s cross-compiling from i686 to i686): --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,run-in-store (lower-gexp #~(+ 2 3) #:guile-for-build = #f #:system "mips64el-linux" #:target "i586-pc-gnu") $8 =3D #< sexp: (+ 2 3) inputs: () sources: () guile: #< drv: # /gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2.2= .4-debug /gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2.2.4 46e3230> s= ub-derivations: ("out")> load-path: () load-compiled-path: ()> scheme@(guile-user)> (derivation-system (derivation-input-derivation (lower= ed-gexp-guile $8))) $9 =3D "mips64el-linux" --8<---------------cut here---------------end--------------->8--- Am I missing something? Thanks, Ludo=E2=80=99. From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: "Jakob L. Kreuze" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Jul 2019 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , zerodaysfordays@sdf.lonestar.org Cc: 36813@debbugs.gnu.org Received: via spool by 36813-submit@debbugs.gnu.org id=B36813.156415707419255 (code B ref 36813); Fri, 26 Jul 2019 16:05:01 +0000 Received: (at 36813) by debbugs.gnu.org; 26 Jul 2019 16:04:34 +0000 Received: from localhost ([127.0.0.1]:43247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr2hr-00050S-NQ for submit@debbugs.gnu.org; Fri, 26 Jul 2019 12:04:34 -0400 Received: from mx.sdf.org ([205.166.94.20]:60864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr2Hg-0004Hw-8t for 36813@debbugs.gnu.org; Fri, 26 Jul 2019 11:37:31 -0400 Received: from [10.0.43.233] (mobile-166-172-63-40.mycingular.net [166.172.63.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPA id x6QFbPeY001901; Fri, 26 Jul 2019 15:37:26 GMT Date: Fri, 26 Jul 2019 11:37:20 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87a7d0n7ck.fsf@gnu.org> References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> <87muh0lvg1.fsf@sdf.lonestar.org> <87a7d0n7ck.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----V5YHWJ4QJR0RL3A3QPD6GYG5VIGVF1" Content-Transfer-Encoding: 7bit From: "Jakob L. Kreuze" Message-ID: X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 26 Jul 2019 12:04:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------V5YHWJ4QJR0RL3A3QPD6GYG5VIGVF1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Could you please try to reproduce using the example I provided? The derivat= ion itself is handled appropriately, but its references are not=2E On July 26, 2019 11:28:11 AM EDT, "Ludovic Court=C3=A8s" = wrote: >zerodaysfordays@sdf=2Elonestar=2Eorg (Jakob L=2E Kreuze) skribis: > >> 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=2E > >I can=E2=80=99t reproduce it on current =E2=80=98master=E2=80=99: > >--8<---------------cut here---------------start------------->8--- >scheme@(guile-user)> ,run-in-store (lower-gexp #~(+ 2 3) >#:guile-for-build #f #:system "mips64el-linux") >$6 =3D #< sexp: (+ 2 3) inputs: () sources: () guile: >#< drv: #/gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2Edrv =3D> >/gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-debug >/gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> >sub-derivations: ("out")> load-path: () load-compiled-path: ()> >scheme@(guile-user)> (derivation-system (derivation-input-derivation >(lowered-gexp-guile $6))) >$7 =3D "mips64el-linux" >--8<---------------cut here---------------end--------------->8--- > >Not even when cross-compiling (BTW, #:target probably doesn=E2=80=99t mak= e >sense >above, since it=E2=80=99s cross-compiling from i686 to i686): > >--8<---------------cut here---------------start------------->8--- >scheme@(guile-user)> ,run-in-store (lower-gexp #~(+ 2 3) >#:guile-for-build #f #:system "mips64el-linux" #:target "i586-pc-gnu") >$8 =3D #< sexp: (+ 2 3) inputs: () sources: () guile: >#< drv: #/gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2Edrv =3D> >/gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-debug >/gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> >sub-derivations: ("out")> load-path: () load-compiled-path: ()> >scheme@(guile-user)> (derivation-system (derivation-input-derivation >(lowered-gexp-guile $8))) >$9 =3D "mips64el-linux" >--8<---------------cut here---------------end--------------->8--- > >Am I missing something? > >Thanks, >Ludo=E2=80=99=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E ------V5YHWJ4QJR0RL3A3QPD6GYG5VIGVF1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Could you please try to reproduce using the exampl= e I provided? The derivation itself is handled appropriately, but its refer= ences are not=2E

On July 26, 2019 11:28:1= 1 AM EDT, "Ludovic Court=C3=A8s" <ludo@gnu=2Eorg> wrote:
zerodaysfordays@sdf=2Elonestar=2Eorg (Jakob L=2E Kre=
uze) skribis:

Chan= ging 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=2E

I can=E2= =80=99t reproduce it on current =E2=80=98master=E2=80=99:

--8<---= ------------cut here---------------start------------->8---
scheme@(gu= ile-user)> ,run-in-store (lower-gexp #~(+ 2 3) #:guile-for-build #f #:sy= stem "mips64el-linux")
$6 =3D #<<lowered-gexp> sexp: (+ 2 3) in= puts: () sources: () guile: #<<derivation-input> drv: #<derivat= ion /gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2Edrv =3D&g= t; /gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-debug /gnu/s= tore/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> sub-deriv= ations: ("out")> load-path: () load-compiled-path: ()>
scheme@(gui= le-user)> (derivation-system (derivation-input-derivation (lowered-gexp-= guile $6)))
$7 =3D "mips64el-linux"
--8<---------------cut here---= ------------end--------------->8---

Not even when cross-compiling= (BTW, #:target probably doesn=E2=80=99t make sense
above, since it=E2= =80=99s cross-compiling from i686 to i686):

--8<---------------cu= t here---------------start------------->8---
scheme@(guile-user)> = ,run-in-store (lower-gexp #~(+ 2 3) #:guile-for-build #f #:system "mips64el= -linux" #:target "i586-pc-gnu")
$8 =3D #<<lowered-gexp> sexp: (= + 2 3) inputs: () sources: () guile: #<<derivation-input> drv: #&l= t;derivation /gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2E= drv =3D> /gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-deb= ug /gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> = sub-derivations: ("out")> load-path: () load-compiled-path: ()>
sc= heme@(guile-user)> (derivation-system (derivation-input-derivation (lowe= red-gexp-guile $8)))
$9 =3D "mips64el-linux"
--8<---------------cu= t here---------------end--------------->8---

Am I missing somethi= ng?

Thanks,
Ludo=E2=80=99=2E


= --
Sent from my Android device with K-9 Mail=2E Please excuse my brevit= y=2E ------V5YHWJ4QJR0RL3A3QPD6GYG5VIGVF1-- From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: "Jakob L. Kreuze" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Jul 2019 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , zerodaysfordays@sdf.lonestar.org Cc: 36813@debbugs.gnu.org Received: via spool by 36813-submit@debbugs.gnu.org id=B36813.156415707419262 (code B ref 36813); Fri, 26 Jul 2019 16:05:02 +0000 Received: (at 36813) by debbugs.gnu.org; 26 Jul 2019 16:04:34 +0000 Received: from localhost ([127.0.0.1]:43249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr2hu-00050W-EH for submit@debbugs.gnu.org; Fri, 26 Jul 2019 12:04:34 -0400 Received: from mx.sdf.org ([205.166.94.20]:59863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr2LX-0004Oo-LW for 36813@debbugs.gnu.org; Fri, 26 Jul 2019 11:41:28 -0400 Received: from [10.0.43.233] (mobile-166-172-63-40.mycingular.net [166.172.63.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPA id x6QFfPZG029297; Fri, 26 Jul 2019 15:41:25 GMT Date: Fri, 26 Jul 2019 11:41:20 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> <87muh0lvg1.fsf@sdf.lonestar.org> <87a7d0n7ck.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----ACQFYBCBHTKO0BHKZQECC2ZLRCL01M" Content-Transfer-Encoding: 7bit From: "Jakob L. Kreuze" Message-ID: <8F7CDE5F-9E4D-463A-A19F-C99EDFCA3791@sdf.org> X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 26 Jul 2019 12:04:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------ACQFYBCBHTKO0BHKZQECC2ZLRCL01M Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Apologies, I should clarify -- the Guile for the S-Expression appears to be= fine, but the Guile referenced in the shebang of the ungexp'd program-file= does not reflect the system=2E On July 26, 2019 11:37:20 AM EDT, "Jakob L=2E Kreuze" wrote: >Could you please try to reproduce using the example I provided? The >derivation itself is handled appropriately, but its references are not=2E > >On July 26, 2019 11:28:11 AM EDT, "Ludovic Court=C3=A8s" >wrote: >>zerodaysfordays@sdf=2Elonestar=2Eorg (Jakob L=2E Kreuze) skribis: >> >>> 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=2E >> >>I can=E2=80=99t reproduce it on current =E2=80=98master=E2=80=99: >> >>--8<---------------cut here---------------start------------->8--- >>scheme@(guile-user)> ,run-in-store (lower-gexp #~(+ 2 3) >>#:guile-for-build #f #:system "mips64el-linux") >>$6 =3D #< sexp: (+ 2 3) inputs: () sources: () guile: >>#< drv: #>/gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2Edrv =3D> >>/gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-debug >>/gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> >>sub-derivations: ("out")> load-path: () load-compiled-path: ()> >>scheme@(guile-user)> (derivation-system (derivation-input-derivation >>(lowered-gexp-guile $6))) >>$7 =3D "mips64el-linux" >>--8<---------------cut here---------------end--------------->8--- >> >>Not even when cross-compiling (BTW, #:target probably doesn=E2=80=99t ma= ke >>sense >>above, since it=E2=80=99s cross-compiling from i686 to i686): >> >>--8<---------------cut here---------------start------------->8--- >>scheme@(guile-user)> ,run-in-store (lower-gexp #~(+ 2 3) >>#:guile-for-build #f #:system "mips64el-linux" #:target "i586-pc-gnu") >>$8 =3D #< sexp: (+ 2 3) inputs: () sources: () guile: >>#< drv: #>/gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2Edrv =3D> >>/gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-debug >>/gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> >>sub-derivations: ("out")> load-path: () load-compiled-path: ()> >>scheme@(guile-user)> (derivation-system (derivation-input-derivation >>(lowered-gexp-guile $8))) >>$9 =3D "mips64el-linux" >>--8<---------------cut here---------------end--------------->8--- >> >>Am I missing something? >> >>Thanks, >>Ludo=E2=80=99=2E > >--=20 >Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E ------ACQFYBCBHTKO0BHKZQECC2ZLRCL01M Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Apologies, I should clarify -- the Guile for the S= -Expression appears to be fine, but the Guile referenced in the shebang of = the ungexp'd program-file does not reflect the system=2E

On July 26, 2019 11:37:20 AM EDT, "Jakob L=2E Kreuze" <= zerodaysfordays=2Esdf=2Eorg@sdf=2Eorg> wrote:
Could you please try to reproduce using the example I provided? The deriva= tion itself is handled appropriately, but its references are not=2E

=
On July 26, 2019 11:28:11 AM EDT, "Ludovic Court= =C3=A8s" <ludo@gnu=2Eorg> wrote:
zerodaysfordays@sdf=2Elonestar=2Eorg (Jakob L=2E Kre=
uze) skribis:

Chan= ging 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=2E

I can=E2= =80=99t reproduce it on current =E2=80=98master=E2=80=99:

--8<---= ------------cut here---------------start------------->8---
scheme@(gu= ile-user)> ,run-in-store (lower-gexp #~(+ 2 3) #:guile-for-build #f #:sy= stem "mips64el-linux")
$6 =3D #<<lowered-gexp> sexp: (+ 2 3) in= puts: () sources: () guile: #<<derivation-input> drv: #<derivat= ion /gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2Edrv =3D&g= t; /gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-debug /gnu/s= tore/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> sub-deriv= ations: ("out")> load-path: () load-compiled-path: ()>
scheme@(gui= le-user)> (derivation-system (derivation-input-derivation (lowered-gexp-= guile $6)))
$7 =3D "mips64el-linux"
--8<---------------cut here---= ------------end--------------->8---

Not even when cross-compiling= (BTW, #:target probably doesn=E2=80=99t make sense
above, since it=E2= =80=99s cross-compiling from i686 to i686):

--8<---------------cu= t here---------------start------------->8---
scheme@(guile-user)> = ,run-in-store (lower-gexp #~(+ 2 3) #:guile-for-build #f #:system "mips64el= -linux" #:target "i586-pc-gnu")
$8 =3D #<<lowered-gexp> sexp: (= + 2 3) inputs: () sources: () guile: #<<derivation-input> drv: #&l= t;derivation /gnu/store/jsnihqsz6nxwv88pr41i2y3403f959cf-guile-2=2E2=2E4=2E= drv =3D> /gnu/store/n2570pg8cahc8k9iqrg5qngyzf6j0xzr-guile-2=2E2=2E4-deb= ug /gnu/store/j9a8dx25cj045yl5l32ajkkjf92ib3y1-guile-2=2E2=2E4 46e3230> = sub-derivations: ("out")> load-path: () load-compiled-path: ()>
sc= heme@(guile-user)> (derivation-system (derivation-input-derivation (lowe= red-gexp-guile $8)))
$9 =3D "mips64el-linux"
--8<---------------cu= t here---------------end--------------->8---

Am I missing somethi= ng?

Thanks,
Ludo=E2=80=99=2E


--
Sent from my Android device with K-9 Mail=2E Plea= se excuse my brevity=2E ------ACQFYBCBHTKO0BHKZQECC2ZLRCL01M-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 19:08:44 2019 Received: (at control) by debbugs.gnu.org; 26 Jul 2019 23:08:44 +0000 Received: from localhost ([127.0.0.1]:43456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr9KN-0002qZ-P6 for submit@debbugs.gnu.org; Fri, 26 Jul 2019 19:08:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr9KM-0002qH-A5 for control@debbugs.gnu.org; Fri, 26 Jul 2019 19:08:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hr9KC-0007H5-S9 for control@debbugs.gnu.org; Fri, 26 Jul 2019 19:08:35 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33412 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hr9K9-0005WQ-4u for control@debbugs.gnu.org; Fri, 26 Jul 2019 19:08:30 -0400 Date: Sat, 27 Jul 2019 01:08:27 +0200 Message-Id: <87imrojswk.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #36813 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) retitle 36813 'program-file' does not respect 'system' and 'target' quit From unknown Sun Jun 22 00:43:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Subject: bug#36813: closed (Re: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords) Message-ID: References: <87ef2cjsv3.fsf@gnu.org> <87imrp3ddy.fsf@sdf.lonestar.org> X-Gnu-PR-Message: they-closed 36813 X-Gnu-PR-Package: guix Reply-To: 36813@debbugs.gnu.org Date: Fri, 26 Jul 2019 23:10:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1564182602-11107-1" This is a multi-part message in MIME format... ------------=_1564182602-11107-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36813: 'program-file' does not respect 'system' and 'target' which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36813@debbugs.gnu.org. --=20 36813: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36813 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1564182602-11107-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36813-done) by debbugs.gnu.org; 26 Jul 2019 23:09:34 +0000 Received: from localhost ([127.0.0.1]:43460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr9LC-0002sK-1N for submit@debbugs.gnu.org; Fri, 26 Jul 2019 19:09:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr9L9-0002s6-Hd for 36813-done@debbugs.gnu.org; Fri, 26 Jul 2019 19:09:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hr9L2-0007hL-MN; Fri, 26 Jul 2019 19:09:24 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33418 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hr9Kz-0005Y7-QL; Fri, 26 Jul 2019 19:09:22 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "Jakob L. Kreuze" Subject: Re: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> <87muh0lvg1.fsf@sdf.lonestar.org> <87a7d0n7ck.fsf@gnu.org> <8F7CDE5F-9E4D-463A-A19F-C99EDFCA3791@sdf.org> Date: Sat, 27 Jul 2019 01:09:20 +0200 In-Reply-To: <8F7CDE5F-9E4D-463A-A19F-C99EDFCA3791@sdf.org> (Jakob L. Kreuze's message of "Fri, 26 Jul 2019 11:41:20 -0400") Message-ID: <87ef2cjsv3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36813-done Cc: zerodaysfordays@sdf.lonestar.org, 36813-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Jakob L. Kreuze" skribis: > Apologies, I should clarify -- the Guile for the S-Expression appears to = be fine, but the Guile referenced in the shebang of the ungexp'd program-fi= le does not reflect the system. Got it now. This is fixed by 2e8cabb8d630a8423e2e5a3bf150c1c0310b945d. Thanks! Ludo=E2=80=99. ------------=_1564182602-11107-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Jul 2019 23:28:45 +0000 Received: from localhost ([127.0.0.1]:40607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqnAD-0007BC-76 for submit@debbugs.gnu.org; Thu, 25 Jul 2019 19:28:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:52938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqnAA-0007B3-7P for submit@debbugs.gnu.org; Thu, 25 Jul 2019 19:28:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41972) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqnA9-00039g-8W for bug-guix@gnu.org; Thu, 25 Jul 2019 19:28:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqnA6-0006Pc-Oa for bug-guix@gnu.org; Thu, 25 Jul 2019 19:28:41 -0400 Received: from ol.sdf.org ([205.166.94.20]:58404 helo=mx.sdf.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hqnA6-0006Mg-FN for bug-guix@gnu.org; Thu, 25 Jul 2019 19:28:38 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6PNSSv8020001 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO); Thu, 25 Jul 2019 23:28:32 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) To: bug-guix@gnu.org Subject: 'lower-gexp' does not respect 'system' or 'target' keywords Date: Thu, 25 Jul 2019 19:25:45 -0400 Message-ID: <87imrp3ddy.fsf@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: ludovic.courtes@inria.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, I believe there is an issue with 'lower-gexp'. Running the following snippet to lower a G-Expression for "i686-linux" yields output that references store paths built for x86_64. In this case, the Guile interpreter used is an x86_64 binary. #+BEGIN_SRC scheme (define (display-exp exp) (mlet* %store-monad ((lowered (lower-gexp exp #:system "i686-linux" #:target "i686-linux")) (to-build -> (cons (lowered-gexp-guile lowered) (lowered-gexp-inputs lowered))) (_ (built-derivations to-build))) (return (format #t "~a~%" (lowered-gexp-sexp lowered))))) (with-store store (run-with-store store (display-exp #~(primitive-load #$(switch-system-program %system))))) #+END_SRC --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=output Content-Transfer-Encoding: quoted-printable Content-Description: Command-line output. jakob@Epsilon ~ $ guile ~/test.scm=20 (primitive-load /gnu/store/v7v1b7375j9j82dvfycv56v36nv5jq3y-switch-to-syste= m.scm) jakob@Epsilon ~ $ cat /gnu/store/v7v1b7375j9j82dvfycv56v36nv5jq3y-switch-to= -system.scm #!/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile --no-au= to-compile !# ... jakob@Epsilon ~ $ file /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.= 2.4/bin/guile /gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile: ELF 64-b= it LSB executable, x86-64, version 1 (SYSV), dynamically linked, interprete= r /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-6= 4.so.2, for GNU/Linux 2.6.32, not stripped --=-=-= Content-Type: text/plain This doesn't seem to be an issue if '%current-system' is parameterized, as in the following. #+BEGIN_SRC scheme (parameterize ((%current-system "i686-linux")) (with-store store (run-with-store store (display-exp #~(primitive-load #$(switch-system-program %system)))))) #+END_SRC Regards, Jakob --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl06OnkACgkQ9Qb9Fp2P 2VrvoRAAhubsIhquhACxwIPqjeu1/P76U5wKT8NdxAvtNB5qXQB7ZRbmzxHmNwfO vWIdb/fbxi1Euwn6uGESg52EGJFbmKeNhL1Xw6JyruomEMNHTTkwAY1CNxJic+t2 5It8ThQK6GgZtJNllmODTAe4KJRzCs7d/TKo6yw4Y5R/xpJeX2z4m65LiSsfgHuT VCYfztlQGCdwaOVDoItkGNeqxb/75z8yOUfY/GmBkxw0FnY4iLQTSr9gL7ibTKMQ JQOoHEFoqv1TKeAGk8Y8JMffEhvVlNMxpbYQ9wSkcQhGLO71tiE/hRo146LpL67i dpm5mBccGKwE0LRZHKwf/wgxBN5hvT/kt3Ssb3l4iHvpVT6qe6OrB67f4hZcXaNA hU8FtQ+ptFCZbSwC4r2Dw5akdsMJlFdVVQgupUVs9VKUST+IEzBfRabprOOvDx74 FE1OhF7MEHs8hkjWXJYfaPLTiIjVDQ4GAG6LP7rp/WZ8GUPAvJyenD3L+G1+p2nc Lhqx+oV0u7xX0X53FUWx7+hXabUm9zl/j8u1QgjpYOrlI+7mqLf0yD8m+hV2nelK cj+HfR59yYMiuh8N+MqggfS8nRptzxI2YzlJ5oeAYfN+0VKmv2uaNqLsMIfJfliw hf3LBz05NjGXfsdaV3DBeOzeYaOdlT+EhQq/8UT5jsyN9wi0/oQ= =sWp3 -----END PGP SIGNATURE----- --==-=-=-- ------------=_1564182602-11107-1-- From unknown Sun Jun 22 00:43:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36813: 'lower-gexp' does not respect 'system' or 'target' keywords Resent-From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 27 Jul 2019 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36813-done@debbugs.gnu.org Received: via spool by 36813-done@debbugs.gnu.org id=D36813.15642498234048 (code D ref 36813); Sat, 27 Jul 2019 17:51:01 +0000 Received: (at 36813-done) by debbugs.gnu.org; 27 Jul 2019 17:50:23 +0000 Received: from localhost ([127.0.0.1]:45389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrQpr-00013D-A0 for submit@debbugs.gnu.org; Sat, 27 Jul 2019 13:50:23 -0400 Received: from mx.sdf.org ([205.166.94.20]:58213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrQpn-000131-2X for 36813-done@debbugs.gnu.org; Sat, 27 Jul 2019 13:50:22 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6RHoCPP013258 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO); Sat, 27 Jul 2019 17:50:16 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) In-Reply-To: <87ef2cjsv3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 27 Jul 2019 01:09:20 +0200") References: <87imrp3ddy.fsf@sdf.lonestar.org> <87ftmtqk84.fsf@gnu.org> <87muh0lvg1.fsf@sdf.lonestar.org> <87a7d0n7ck.fsf@gnu.org> <8F7CDE5F-9E4D-463A-A19F-C99EDFCA3791@sdf.org> <87ef2cjsv3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Date: Sat, 27 Jul 2019 13:47:29 -0400 Message-ID: <87mugz1ia6.fsf@sdf.lonestar.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > "Jakob L. Kreuze" skribis: > >> Apologies, I should clarify -- the Guile for the S-Expression appears to= be fine, but the Guile referenced in the shebang of the ungexp'd program-f= ile does not reflect the system. > > Got it now. This is fixed by 2e8cabb8d630a8423e2e5a3bf150c1c0310b945d. > > Thanks! > > Ludo=E2=80=99. Just had the opportunity to test it out -- works great! Thanks, Ludo! Regards, Jakob --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl08jjEACgkQ9Qb9Fp2P 2VoDeg/5ATf1ZSIVs+6bbHBbY6joIbeKUvHJ6vbM1Kee26d71e104Q+72DIurxDr diB7qgVAf6Rb5J8KirMC/gkaIlV+BcChfCVcbghIPWqgI6KrUImqout5pHAOsPX0 hVz6vb87eyDf7KMKbdPSjpkB68hn737Gz2Rb+8t8DkesrpnxTzNZy/BjL3niIWJz rfPNkjUYzoRQ34DGCvussqBacY/hd5ggSpDL/QHJAqS0xI4OPOQ1Iqmgyar97DJt +qQxUPbEnp/hTb3Davx5uhkwuL6VH6yQy938DLLdoFgKxfstTnXvzOrXgXFxE2E5 lbJUyiVwRasaFT5Xhrvj0tksgmtiC+2HTs/ItolPS4kxrISdik7LP05EdkMXMW9w sf2C9OkNqC0vbpLHmLg/zDpTltZN4T8bg3JeLLfpM47rygVjZzcsSr9Y6bB7q1N1 cQuJ1FwmbXUIfVdXS1rKXrkLK8uTxpaKdPY9TxoOmVbHIl1gt579FhCSKxSt0/MD MjPXel29HUah/KnOkt6jLqGV2o3mGDCUBYNSz0DcOs5Y2KKL8Qjy0RIVzJieELct Kwnk9pQ/GY8mk5qIhc6Ez8eubvE8pM9TjX8iey7y/4NlE2L91ZHRc9CC7EbY2BUe SHzDS9Vu3QXXGYlXNgLZkZMvStSRE0dVwmC32f+T3uDMK7HZ1jo= =BNxy -----END PGP SIGNATURE----- --=-=-=--