From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cP70BfaCeGUVkAAAkFu2QA (envelope-from ) for ; Tue, 12 Dec 2023 16:57:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2IcQA/aCeGUCCQEA62LTzQ (envelope-from ) for ; Tue, 12 Dec 2023 16:57:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=iezJFjzJ; dkim=pass header.d=wolfsden.cz header.s=mail header.b=iezJFjzJ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702396661; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6zKp0HP1w3F2uE7R9In6OvGqkLmmm280s8I6ZaDACAg=; b=fhCxgBMKxNf1XJfi3RKMIm34WylYi3RTOerh4VejxCKl5RJsQdhW0ia3Ccciuu6EIb9JkA QSLNFzDCFsByQLjH2Z3Edp4auNFtzScktqzUtoe/BXgZqNuYwHBjsW2HpEcCrdc/mEVeJA O3pD5gOzuerRiuRsecrTjHTYku7y8rIl2fgB7jFeUac4DuJ2DIUEX9SdUnnbHvNdi1602J YQkGZ5ZBOQ/mwWGYg1EObe4qHNnsaO/ki++k+TAsJ7/zXfWfwjXk/dXS/qO3/6RaOsmUDA EXCgw+SUbEE7JWcqOBNxnk6yuzdI8NAZa9A0oRImdXjFXY6oKt30uZUxgY4U1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=iezJFjzJ; dkim=pass header.d=wolfsden.cz header.s=mail header.b=iezJFjzJ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702396661; a=rsa-sha256; cv=none; b=K3hArjFIWpMPlI87fWQbXTCpWlWpDTX90gWSxxk6lQZewOIIDyuYgN74aWv1dQlkbVrrLs mbGyGReJI+L+BBkvHZatObdiKzKV3Emxd3TIYhoG2gZoblpgxyQG9w7x0UJ4tK4M10nqlp EqHHO7+O52rzhbHOSrcUrmer5zgkPDpg35OyU7VFkQUhqo+FA4ZNSDszvoWsVPDC0aZkfG ynANlNfAWplkISQveadVZffX8OKONU0jRC34S3W0gFuFEMgqZWnnNGmAuNEZ4dieVI0r20 8bOt0HL10rLB6R2zNNL5KQZqtlYycnomYeiVaGA0WP797LetE7LDA8YH7u7gsg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E6A805EFAA for ; Tue, 12 Dec 2023 16:57:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rD585-0008EC-VG; Tue, 12 Dec 2023 10:57:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rD584-0008E2-Ka for help-guix@gnu.org; Tue, 12 Dec 2023 10:57:04 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rD582-0008Jd-55 for help-guix@gnu.org; Tue, 12 Dec 2023 10:57:04 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id B5B4825EDBB; Tue, 12 Dec 2023 15:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1702396618; bh=4dvaStf2OxixYkX+Sv+o0nreJU9YpgRKHgo1+PLmNRQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iezJFjzJFhosWAUWOblKbJj6Hme20OjtRqx51udU8//lx8QWtAzh64bCZ3BayitKE zIikIEGesgD/KXZUL8Lqf5Xyjr1lYEwGw3LNdvX4Zf0lfMTHCVv40uFCZbWdUZcLaU xgul8ArNSNim6Jjd/X1Gf8OqfCkuot797wlofw0QS++ofvlJCSCfF2WumKisjC63Wp aoTNpzaT1/8309D0vgxJ+/i/N3aO4m0/25oZ6YseZ0jnH8M+y7ERrVxNurxO+H/I1J TXcgg4IPLmJuHhSB73/99uNzDceL3Rmys3V1cOeOByQvp1zLFZl5QVEcE94Ld9PBWa agTsafdfqnRQwQg2MezJnItefG9eYehs+bKloJinaXSg1qcJ6oycutC9m7aA2IwICF CC1FIeFaiPpClUmW4wSSxOuAFAw1prGnhY7BOT2083IOp+QjQwCpT9LfutQFVrKTHb 3NCQT07Cg+ANzaYFMl3JKWPRMRl42mWt1BDyFfscmKAJTQVPkrgaV/HotkiH4g5LZZ 2fJoVxV24Ij5AXO/PLDWeDOmqRCI4WHgT6x2I6tIcx3dY1lD/rrWxwi8bxT8SBFTE1 08D8ithJ4iZLav9MIYMA7HYtCdtVwb2l0rWMu5Ui95/Zm/74WXYR5A1n3CliJe86/V Vw/00me5KcM17mNLSguGukAA= Received: from localhost (unknown [146.70.134.143]) by wolfsden.cz (Postfix) with ESMTPSA id 0F67025E53D; Tue, 12 Dec 2023 15:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1702396618; bh=4dvaStf2OxixYkX+Sv+o0nreJU9YpgRKHgo1+PLmNRQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iezJFjzJFhosWAUWOblKbJj6Hme20OjtRqx51udU8//lx8QWtAzh64bCZ3BayitKE zIikIEGesgD/KXZUL8Lqf5Xyjr1lYEwGw3LNdvX4Zf0lfMTHCVv40uFCZbWdUZcLaU xgul8ArNSNim6Jjd/X1Gf8OqfCkuot797wlofw0QS++ofvlJCSCfF2WumKisjC63Wp aoTNpzaT1/8309D0vgxJ+/i/N3aO4m0/25oZ6YseZ0jnH8M+y7ERrVxNurxO+H/I1J TXcgg4IPLmJuHhSB73/99uNzDceL3Rmys3V1cOeOByQvp1zLFZl5QVEcE94Ld9PBWa agTsafdfqnRQwQg2MezJnItefG9eYehs+bKloJinaXSg1qcJ6oycutC9m7aA2IwICF CC1FIeFaiPpClUmW4wSSxOuAFAw1prGnhY7BOT2083IOp+QjQwCpT9LfutQFVrKTHb 3NCQT07Cg+ANzaYFMl3JKWPRMRl42mWt1BDyFfscmKAJTQVPkrgaV/HotkiH4g5LZZ 2fJoVxV24Ij5AXO/PLDWeDOmqRCI4WHgT6x2I6tIcx3dY1lD/rrWxwi8bxT8SBFTE1 08D8ithJ4iZLav9MIYMA7HYtCdtVwb2l0rWMu5Ui95/Zm/74WXYR5A1n3CliJe86/V Vw/00me5KcM17mNLSguGukAA= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id dc71b10f; Tue, 12 Dec 2023 15:56:57 +0000 (UTC) Date: Tue, 12 Dec 2023 16:56:57 +0100 From: Tomas Volf <~@wolfsden.cz> To: "Wicki Gabriel (wicg)" Cc: "help-guix@gnu.org" Subject: Re: 32-bit Python interpreter on a 64-bit system (ARM) Message-ID: Mail-Followup-To: "Wicki Gabriel (wicg)" , "help-guix@gnu.org" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="56UQCUc9YMplCknt" Content-Disposition: inline In-Reply-To: Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.21 X-Spam-Score: -4.21 X-Migadu-Queue-Id: E6A805EFAA X-TUID: ZgC2vwQUwZrY --56UQCUc9YMplCknt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2023-12-12 15:09:52 +0000, Wicki Gabriel (wicg) wrote: > Hi > > Thanks for the input, Csepp, this seems to be exactly what I was looking for! > > Now I include the altered package like so: > ` > > (package > (name foo) > ... > (propagated-inputs > (list > (with-parameters ((%current-system "armhf-linux")) > some-package))) > ... > ) > > ` > > But this produces the following error message when building package "foo". What am I missing? I am able to ,lower and ,build the (with-parameters) package in a repl so i guess the expression itself is fine? I cannot say what you are doing wrong, but my interest got piqued so I gave it a try as well. It works for me: $ guix build --no-offload -f /tmp/test.scm [..] /gnu/store/867m8dkv9hzsl4c1nqrj1nzg502a4l3c-hello-2.10 $ file /gnu/store/867m8dkv9hzsl4c1nqrj1nzg502a4l3c-hello-2.10/bin/python-native/bin/python3.10 /gnu/store/867m8dkv9hzsl4c1nqrj1nzg502a4l3c-hello-2.10/bin/python-native/bin/python3.10: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped $ file /gnu/store/867m8dkv9hzsl4c1nqrj1nzg502a4l3c-hello-2.10/bin/python-i686/bin/python3.10 /gnu/store/867m8dkv9hzsl4c1nqrj1nzg502a4l3c-hello-2.10/bin/python-i686/bin/python3.10: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /gnu/store/0hr9jpczkcgpgqkhf4q4868xd57h5a62-glibc-2.35/lib/ld-linux.so.2, for GNU/Linux 2.6.32, stripped So for me it seems to work. My package definition (adjusted hello package from the cookbook), maybe you can use it as a starting point: (use-modules (gnu) (gnu packages) (gnu packages python) (guix build-system gnu) (guix download) (guix gexp) (guix licenses) (guix packages)) (package (name "hello") (version "2.10") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/hello/hello-" version ".tar.gz")) (sha256 (base32 "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i")))) (inputs `(("python-native" ,python) ("python-i686" ,(with-parameters ((%current-system "i686-linux")) python)))) (build-system gnu-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'install 'link-pythons (lambda* (#:key inputs #:allow-other-keys) (symlink (assoc-ref inputs "python-native") (string-append #$output "/bin/python-native")) (symlink (assoc-ref inputs "python-i686") (string-append #$output "/bin/python-i686"))))))) (synopsis "Hello, GNU world: An example GNU package") (description "GNU Hello prints the message \"Hello, world!\" and then exits. It serves as an example of standard GNU coding practices. As such, it supports command-line arguments, multiple languages, and so on.") (home-page "https://www.gnu.org/software/hello/") (license gpl3+)) Hope this helps, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --56UQCUc9YMplCknt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmV4gskACgkQL7/ufbZ/ wantSQ/6Ani4Z/AUjDMYSIYSMPXfxnUuxj5pcdIWIFpU2qLjd7tGCqvehZ1bCW17 YrggllI6S1gh1lUMYwP77BZJEJDRlEkWiiv3nupYjquo0H4++xDFDkY6L5MBGtxe fJDo6SjovHUfj+1QYuHW9gRwVHN/LBqPes6FzNxYoTnguQz3F6hwzi0p+vbeONRq ZYyDBWm8che1BiRIawHzHQQIsyGgetFX0md9Q8OJy2XSu/3aG97bA+RHXVc3/ayz +KQWZ+o3yKGSSAJ5x5opdfGQ4PyPsRSBYX9eTW2qjBo3Tk73TZIXap9nyazFKNkN DEBXS4MHnMIllHlhiFVgASQ08FHDt8xheBOdbRQKeg1aGaORrwe83Hf+ajYmcw2N WTm1DuzoGNudapdHktzJ9h8xLxtL6COV8brkiHh5NwvkXkuRGfBWJJOa5ob+pfLa AEKYwNDQ8rM+uD58/CiPveUrqrR5HAMwKAZvs+KewXmp58yyQ+xMuII+HUX6P2GY UKxSQz6uVwlaNUsq+ztQQwc7bPEMfFU/cGs6AqO70HnxJtxdIS24nrBrx1ERp5E7 2mdpvLl7p7bg8mdCA+c0zGm/uccac7cgX4JiKtf+lxfC7v2WXfcoN+jti21HwxMB 9EFJhlEMkVZVDyCZbQoTm1FuizYkLAJwGLCPYXjCrIRKJTZQ1+w= =8OPP -----END PGP SIGNATURE----- --56UQCUc9YMplCknt--