From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#36518: [core-updates] python-boot0 fails to build on armhf and aarch64 Date: Sun, 07 Jul 2019 16:42:35 +0200 Message-ID: <87d0ilrjms.fsf@devup.no> References: <87o928qc5p.fsf@devup.no> <871rz3sdxe.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51411) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hk8Ng-0004ZO-En for bug-guix@gnu.org; Sun, 07 Jul 2019 10:43:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hk8Ne-0003JY-1H for bug-guix@gnu.org; Sun, 07 Jul 2019 10:43:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hk8Nb-0003I7-O4 for bug-guix@gnu.org; Sun, 07 Jul 2019 10:43:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hk8Nb-0000Fc-KV for bug-guix@gnu.org; Sun, 07 Jul 2019 10:43:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <871rz3sdxe.fsf@elephly.net> 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: Ricardo Wurmus Cc: 36518-done@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus writes: > Hi Marius, > >> But the interpreter fails with 'unbound variable: this' upon running >> glibcs Python scripts. > > This means it fell through to the case where =E2=80=9Cpython=E2=80=9D is = called with > more than one argument: > > --8<---------------cut here---------------start------------->8--- > (define* (main #:optional (args (command-line))) > (match args > ((_ file) > (let ((compiled (string-append file ".go"))) > (compile-file file > #:from python > #:output-file compiled) > (load-compiled compiled))) > ((_) > (repl-default-option-set! 'prompt ">>> ") > (set! (@@ (system repl common) repl-welcome) > (const (display "\ > Python on Guile, version 0.1.0 > (Hit Ctrl-D to exit.) > "))) > (start-repl python) > #t) > (_ (format (current-error-port) > "usage: ~a file.py~%" this)))) > --8<---------------cut here---------------end--------------->8--- > > =E2=80=9Cthis=E2=80=9D was supposed to be the first match, i.e. the =E2= =80=9Cpython=E2=80=9D executable > itself. Anyway, the problem is that =E2=80=9Cpython=E2=80=9D doesn=E2=80= =99t handle any flags > at all. I=E2=80=99ll implement option =E2=80=9Chandling=E2=80=9D soon (m= aybe we can ignore most > options to =E2=80=9Cpython=E2=80=9D). I pushed a workaround in 4f5fe46388eb70055b6935df053f74b7ccdaf55f, which uses an older version of Python that can be built without threads. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0iBNwACgkQoqBt8qM6 VPpAHQgArziLhu0Wg4IkB+M4KuF2c244g592zr0Oz0T6CvKoaC+2L65AvRdOD07O TnyXiXvCPubSLtfjRvfCuOJC1n/BpAmuE7mbX/zTmQPTDhsk08qZj9Qldj9juwj4 iTijyu9bE206iVIX4CIu4OjUObfWkn6phJuT/xv4UVqZsXeLImi3AO4z1bzEtZ3E eQx+MdWNwd2cI6YVRtNl5JokJ8VNu7CWcNVneEDeWH79jBbyj4qKkLIeiZNiPsrJ N78m0CGKALGdX/RYNTSBdiVs3jZidkuSopdHIABB7VzlL3Sv6vB8VBQI3vpGH8tk TS/A8BrG9Jkg3zXEojLsiMAhfADcKA== =D5eX -----END PGP SIGNATURE----- --=-=-=--