From unknown Fri Jun 13 11:19:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36518: [core-updates] python-boot0 fails to build on armhf and aarch64 Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 Jul 2019 23:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36518 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36518@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156237030328946 (code B ref -1); Fri, 05 Jul 2019 23:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jul 2019 23:45:03 +0000 Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjXt0-0007WT-As for submit@debbugs.gnu.org; Fri, 05 Jul 2019 19:45:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:43114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjXsy-0007W2-Ay for submit@debbugs.gnu.org; Fri, 05 Jul 2019 19:45:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41828) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjXsw-0006bH-Vb for bug-guix@gnu.org; Fri, 05 Jul 2019 19:45:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjXsu-0003g5-UT for bug-guix@gnu.org; Fri, 05 Jul 2019 19:44:58 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:32893) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjXss-0003eW-Vp for bug-guix@gnu.org; Fri, 05 Jul 2019 19:44:55 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2312421C57 for ; Fri, 5 Jul 2019 19:44:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 05 Jul 2019 19:44:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=HsDtHTCNqeHclK1d+t0HefmFWuXR+dhDOw0yhOv2z6Y=; b=y0ZCvl6A kNBBi1+UiZW1D4sWCNy0k7xrR0DhSywaX7rx6IWzKY0G4RYYgDVNjYnYhl/DX9xw xOGRIBBdyGCPb9zP7vQwIN02x0JTETk4QTmKyeKouOWB6JiiCnzUhc8vBcInwbj+ U/IdXavDf1Q3ozxOwme1jsq2xRsfiMIdIdfnerPyUguZaspmAMVz9j66NRjzTz+e DwggCRZoVzT4+Wbh/WGyc8xLSdNm1bqs5ZGPcIBTtTUkAyZ7tNI2kPsoEX/bqMui ALsjzl7pOyjjuMJ7QENhC/abGNB1XTjJ/mu0vhtrF0xKSupKEt96TfCkONVi3iFU 7pP61PPvlVTtJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=HsDtHTCNqeHclK1d+t0HefmFWuXR+ dhDOw0yhOv2z6Y=; b=t4o+/w3ZpQmCnszUIwmxqmzrQySBXgc3kKOEXjC+WOF1t U2z4fxtqyyvBVm5ivn8PuEllC/oP3rCnhVw807bl3izLkzjh2MKwg6D/sCn/7z5/ EYQF9sMpFkyvRNKULjBgewqcRDTXT7yRhAl7HiC+Tgo50QcUaSkX97qQkqOkAJjb uqrpWvdcBC9xeIIQl/zT9ZvxKIL3FB0AFg5GqRxavSXiZPumGX2JQ70e6Mc5B192 bVP2WtGT2dMSI9QbUpkDUY6KbBQ/h4q0OIJssFHMJ3IrPZfLt0ifIEl7VoePoTvf nLpfvAEsXUb5yyaM4eFWVQ2siwEK+5AXGB4VXk8FA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfeehgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtsehgtderredtre dtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgr ihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpehmrg hilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushhtvghr ufhiiigvpedt X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 84B4180059 for ; Fri, 5 Jul 2019 19:44:51 -0400 (EDT) From: Marius Bakke User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Sat, 06 Jul 2019 01:44:50 +0200 Message-ID: <87o928qc5p.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-Spam-Score: -1.6 (-) 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: -2.6 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On the core-updates branch, since commit 5f3f70391809f8791c55c05bd1646bc58508fa2c, bootstrapping fails early for armhf-linux and aarch64 when trying to build pkg-config (for python-boot0). That can be easily worked around with this patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index d28296449d..183536d0b4 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -1866,6 +1866,7 @@ the bootstrap environment." (inherit python-minimal) (inputs `(("expat" ,expat-sans-tests))) ;remove OpenSSL, zlib, etc. + (native-inputs '()) ;and pkg-config (arguments (substitute-keyword-arguments (package-arguments python-minimal) --=-=-= Content-Type: text/plain But then Python fails at the configure stage because pthreads is not working with the bootstrap compiler on those platforms. I'm not sure what to do about it. I tried using 'python-on-guile' with this patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index f26145cb0b..747ec7c594 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -816,6 +816,33 @@ with the Linux kernel.") (license lgpl2.0+) (home-page "https://www.gnu.org/software/libc/"))) +(define-public glibc-sans-python + (package + (inherit glibc) + (name "glibc-with-guile-python") + (arguments + (substitute-keyword-arguments (package-arguments glibc) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'patch-configure + (lambda _ + ;; Relax Python version check. + (substitute* "configure" + (("\\$critic_missing python") "") + (("\\$PYTHON_PROG -B") "$PYTHON_PROG")) + #t)))))) + (native-inputs `(("texinfo" ,texinfo) + ("perl" ,perl) + ("bison" ,bison) + ("gettext" ,gettext-minimal) + ("python" ,(@ (gnu packages guile-xyz) python-on-guile)) + ,@(if (hurd-target?) + `(("mig" ,mig) + ("perl" ,perl)) + '()))))) + + + ;; Below are old libc versions, which we use mostly to build locale data in ;; the old format (which the new libc cannot cope with.) --=-=-= Content-Type: text/plain But the interpreter fails with 'unbound variable: this' upon running glibcs Python scripts. Until python-on-guile is complete enough to run the glibc scripts, I think we'll have to insert an older version of glibc into the bootstrap graph, so that Python can be built with pthreads on all platforms. WDYT? --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0f4PIACgkQoqBt8qM6 VPrQiAgAtmQWj7WTCaVlq3RMvzN9QBquRfmGwi+G79uO5fctTwQOB0Z8WpLDsqRB TA035flOWuSnKSxaIJ/VKhiF+4mPU5Rl/iR8R+hVyQTq8KgGEPWhpN0Ha7t2YKKM omo6FXD3xJr0Di6i5ZnNa9UVsaIYEkAlz4/DtZfOjEjCiBzb2VPsupDTwzm5G72C EHyftm+nhGN+HxLJAM3FdtcbmBChrotM+ZiJPetEV+Yi4hjmoX+iD7qbFE3Mo0zi /6otDB3DHPMMzu/fHKr7E/LtRzdkGAz2Afp6j2dCZH86qbU0mhJUaBoxNA7KmqSP UarteivPcJpLv0wDIjHLtV3lGC5SKQ== =1PGz -----END PGP SIGNATURE----- --==-=-=-- From unknown Fri Jun 13 11:19:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36518: [core-updates] python-boot0 fails to build on armhf and aarch64 Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 06 Jul 2019 09:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36518 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: mbakke@fastmail.com Cc: 36518@debbugs.gnu.org Received: via spool by 36518-submit@debbugs.gnu.org id=B36518.156240668421731 (code B ref 36518); Sat, 06 Jul 2019 09:52:02 +0000 Received: (at 36518) by debbugs.gnu.org; 6 Jul 2019 09:51:24 +0000 Received: from localhost ([127.0.0.1]:54232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjhLn-0005eR-Nw for submit@debbugs.gnu.org; Sat, 06 Jul 2019 05:51:23 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjhLl-0005eI-SC for 36518@debbugs.gnu.org; Sat, 06 Jul 2019 05:51:22 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1562405761; cv=none; d=zoho.com; s=zohoarc; b=HN/zXR/1CE1LKnwa5WOEpPP8NnUCAdJNR5LBUAKrXO7/DL0eodURJbaTCsqLPkb+RXK/Gh9ddWPhNOx5OZXv5WqKdhCjWAy74Fgs4o0izu7XLeCrYeEIX2H6olFia7E1Qd39AACSleC9y0Kz897/hpaGElIdpbZ3YmhAZ0c54bE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562405761; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=ViGDRQAOWc2YY9RrDvubJSH8RHy8zwDwdvRbKoHKKCE=; b=PFGWUnf+cnkrHwf/3UExNfcmwHYlqM5VbX+ihGDrJqhnGMNDZ9JPn1QiE+h9WFNk1xvWKEvDDr1wiJj/T6f0TSXeXehfn9F/+LqQCUv54tP2bIObD0Pt8vV2lJJXjh1lzErJSgqIH8kS6LmrL+zSp9qTtAPjWCygIFs8cHeoSMU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1562405761; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1218; bh=ViGDRQAOWc2YY9RrDvubJSH8RHy8zwDwdvRbKoHKKCE=; b=UpIYnK8WmbqmmfgDtTJaI2B1b7gXT3S5wl4yhepHO53l5wwpqVISllRlgeYlIJo5 9kqZM1ja9HFD+xTvYm69gAYmIiyYNH8UNDMvM+W93EfdTY/8ULsBiUHDdP0cXj1HTDQ nrs8OPmqDiCRTeel3x6eq5aiiii0nFMfGvZ+BwPY= Received: from localhost (p54AD437E.dip0.t-ipconnect.de [84.173.67.126]) by mx.zohomail.com with SMTPS id 1562405760823951.3591648490464; Sat, 6 Jul 2019 02:36:00 -0700 (PDT) References: <87o928qc5p.fsf@devup.no> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus In-reply-to: <87o928qc5p.fsf@devup.no> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sat, 06 Jul 2019 11:35:57 +0200 Message-ID: <871rz3sdxe.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External 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 (-) 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 ca= lled 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 (may= be we can ignore most options to =E2=80=9Cpython=E2=80=9D). -- Ricardo From unknown Fri Jun 13 11:19:20 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: Marius Bakke Subject: bug#36518: closed (Re: bug#36518: [core-updates] python-boot0 fails to build on armhf and aarch64) Message-ID: References: <87d0ilrjms.fsf@devup.no> <87o928qc5p.fsf@devup.no> X-Gnu-PR-Message: they-closed 36518 X-Gnu-PR-Package: guix Reply-To: 36518@debbugs.gnu.org Date: Sun, 07 Jul 2019 14:43:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1562510583-962-1" This is a multi-part message in MIME format... ------------=_1562510583-962-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36518: [core-updates] python-boot0 fails to build on armhf and aarch64 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 36518@debbugs.gnu.org. --=20 36518: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36518 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1562510583-962-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36518-done) by debbugs.gnu.org; 7 Jul 2019 14:42:47 +0000 Received: from localhost ([127.0.0.1]:57300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk8NL-0000Ey-0q for submit@debbugs.gnu.org; Sun, 07 Jul 2019 10:42:47 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:35625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk8NJ-0000Ek-1A for 36518-done@debbugs.gnu.org; Sun, 07 Jul 2019 10:42:45 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 848472106A; Sun, 7 Jul 2019 10:42:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 07 Jul 2019 10:42:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=jUXf/x6PKczFB9+mF0leHPnsJM vW8lUDE9A0PcNbMuk=; b=XEwHeO8F74BahaPG2kJotsVPG0Ze6080GDk2hFIHed IxCsNS1NiyLmDNku+GA7ij/D8zcI2P/GWnhM8AS3Odm5G0UToiXRU4cCNh025EAQ XjFxSEI8YUc/CuF0D4xlvzsnHClneCFaaPwFJvlH+A/Q5rKeIQ9HMNy78wW5fcoP P6kJwyC06ohsa2/XP/sl8M0uHsoVUfn0MawyPkFAzbS63JFeRLKP0Kwza8UPsvb/ 5IU+UcxMSXXrSStoq83q04Y1UuxsdTJSW8zmamsKXzdRdehcu5ACi4UuscjlwetI aHf4UgcWE9S+3iWCODNAw5gizW9UciSThqaklhgnxwUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=jUXf/x 6PKczFB9+mF0leHPnsJMvW8lUDE9A0PcNbMuk=; b=VjeFG10+9I9lqaqNWbXsx9 QUb4iDy5U6CXTDwwdwudfhPEQeU9sqM7EJwUlneaKR9LYTqTfa3+IgWDujT3PTcN okfIS+YbWKpXLjA6ek4fzi5DJVTAw4lmInMVV+GUxvtHleomW5WuwbblhOVTnJk6 fAqbP8PV6e7sOFulyXGPm5U2hL4bj/+R9o/S9RtBd47yreOivNqZ/dq6ScQi0A2O cvCCUYOtUmOY+EKHuacT5b51lz4sHtsrUe3FFNFt3hWq757+JhM7KeKYYcw887gn bsbyDTmjdlSlOBGuBPhny9mrahuYFEGEcmBzTNyc43DT8KMO8DWJtJA2Jc3cRA7Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfeekgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre dtreejnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht mhgrihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpe hmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id D765D380086; Sun, 7 Jul 2019 10:42:38 -0400 (EDT) From: Marius Bakke To: Ricardo Wurmus Subject: Re: bug#36518: [core-updates] python-boot0 fails to build on armhf and aarch64 In-Reply-To: <871rz3sdxe.fsf@elephly.net> References: <87o928qc5p.fsf@devup.no> <871rz3sdxe.fsf@elephly.net> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Sun, 07 Jul 2019 16:42:35 +0200 Message-ID: <87d0ilrjms.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36518-done Cc: 36518-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: -1.7 (-) --=-=-= 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----- --=-=-=-- ------------=_1562510583-962-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Jul 2019 23:45:03 +0000 Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjXt0-0007WT-As for submit@debbugs.gnu.org; Fri, 05 Jul 2019 19:45:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:43114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjXsy-0007W2-Ay for submit@debbugs.gnu.org; Fri, 05 Jul 2019 19:45:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41828) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjXsw-0006bH-Vb for bug-guix@gnu.org; Fri, 05 Jul 2019 19:45:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjXsu-0003g5-UT for bug-guix@gnu.org; Fri, 05 Jul 2019 19:44:58 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:32893) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjXss-0003eW-Vp for bug-guix@gnu.org; Fri, 05 Jul 2019 19:44:55 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2312421C57 for ; Fri, 5 Jul 2019 19:44:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 05 Jul 2019 19:44:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=HsDtHTCNqeHclK1d+t0HefmFWuXR+dhDOw0yhOv2z6Y=; b=y0ZCvl6A kNBBi1+UiZW1D4sWCNy0k7xrR0DhSywaX7rx6IWzKY0G4RYYgDVNjYnYhl/DX9xw xOGRIBBdyGCPb9zP7vQwIN02x0JTETk4QTmKyeKouOWB6JiiCnzUhc8vBcInwbj+ U/IdXavDf1Q3ozxOwme1jsq2xRsfiMIdIdfnerPyUguZaspmAMVz9j66NRjzTz+e DwggCRZoVzT4+Wbh/WGyc8xLSdNm1bqs5ZGPcIBTtTUkAyZ7tNI2kPsoEX/bqMui ALsjzl7pOyjjuMJ7QENhC/abGNB1XTjJ/mu0vhtrF0xKSupKEt96TfCkONVi3iFU 7pP61PPvlVTtJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=HsDtHTCNqeHclK1d+t0HefmFWuXR+ dhDOw0yhOv2z6Y=; b=t4o+/w3ZpQmCnszUIwmxqmzrQySBXgc3kKOEXjC+WOF1t U2z4fxtqyyvBVm5ivn8PuEllC/oP3rCnhVw807bl3izLkzjh2MKwg6D/sCn/7z5/ EYQF9sMpFkyvRNKULjBgewqcRDTXT7yRhAl7HiC+Tgo50QcUaSkX97qQkqOkAJjb uqrpWvdcBC9xeIIQl/zT9ZvxKIL3FB0AFg5GqRxavSXiZPumGX2JQ70e6Mc5B192 bVP2WtGT2dMSI9QbUpkDUY6KbBQ/h4q0OIJssFHMJ3IrPZfLt0ifIEl7VoePoTvf nLpfvAEsXUb5yyaM4eFWVQ2siwEK+5AXGB4VXk8FA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfeehgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtsehgtderredtre dtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgr ihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpehmrg hilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushhtvghr ufhiiigvpedt X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 84B4180059 for ; Fri, 5 Jul 2019 19:44:51 -0400 (EDT) From: Marius Bakke To: bug-guix@gnu.org Subject: [core-updates] python-boot0 fails to build on armhf and aarch64 User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Sat, 06 Jul 2019 01:44:50 +0200 Message-ID: <87o928qc5p.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.6 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On the core-updates branch, since commit 5f3f70391809f8791c55c05bd1646bc58508fa2c, bootstrapping fails early for armhf-linux and aarch64 when trying to build pkg-config (for python-boot0). That can be easily worked around with this patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index d28296449d..183536d0b4 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -1866,6 +1866,7 @@ the bootstrap environment." (inherit python-minimal) (inputs `(("expat" ,expat-sans-tests))) ;remove OpenSSL, zlib, etc. + (native-inputs '()) ;and pkg-config (arguments (substitute-keyword-arguments (package-arguments python-minimal) --=-=-= Content-Type: text/plain But then Python fails at the configure stage because pthreads is not working with the bootstrap compiler on those platforms. I'm not sure what to do about it. I tried using 'python-on-guile' with this patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index f26145cb0b..747ec7c594 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -816,6 +816,33 @@ with the Linux kernel.") (license lgpl2.0+) (home-page "https://www.gnu.org/software/libc/"))) +(define-public glibc-sans-python + (package + (inherit glibc) + (name "glibc-with-guile-python") + (arguments + (substitute-keyword-arguments (package-arguments glibc) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'patch-configure + (lambda _ + ;; Relax Python version check. + (substitute* "configure" + (("\\$critic_missing python") "") + (("\\$PYTHON_PROG -B") "$PYTHON_PROG")) + #t)))))) + (native-inputs `(("texinfo" ,texinfo) + ("perl" ,perl) + ("bison" ,bison) + ("gettext" ,gettext-minimal) + ("python" ,(@ (gnu packages guile-xyz) python-on-guile)) + ,@(if (hurd-target?) + `(("mig" ,mig) + ("perl" ,perl)) + '()))))) + + + ;; Below are old libc versions, which we use mostly to build locale data in ;; the old format (which the new libc cannot cope with.) --=-=-= Content-Type: text/plain But the interpreter fails with 'unbound variable: this' upon running glibcs Python scripts. Until python-on-guile is complete enough to run the glibc scripts, I think we'll have to insert an older version of glibc into the bootstrap graph, so that Python can be built with pthreads on all platforms. WDYT? --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0f4PIACgkQoqBt8qM6 VPrQiAgAtmQWj7WTCaVlq3RMvzN9QBquRfmGwi+G79uO5fctTwQOB0Z8WpLDsqRB TA035flOWuSnKSxaIJ/VKhiF+4mPU5Rl/iR8R+hVyQTq8KgGEPWhpN0Ha7t2YKKM omo6FXD3xJr0Di6i5ZnNa9UVsaIYEkAlz4/DtZfOjEjCiBzb2VPsupDTwzm5G72C EHyftm+nhGN+HxLJAM3FdtcbmBChrotM+ZiJPetEV+Yi4hjmoX+iD7qbFE3Mo0zi /6otDB3DHPMMzu/fHKr7E/LtRzdkGAz2Afp6j2dCZH86qbU0mhJUaBoxNA7KmqSP UarteivPcJpLv0wDIjHLtV3lGC5SKQ== =1PGz -----END PGP SIGNATURE----- --==-=-=-- ------------=_1562510583-962-1--