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: 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" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41985) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjXu0-0006kl-3U for bug-guix@gnu.org; Fri, 05 Jul 2019 19:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjXty-0004JA-Qm for bug-guix@gnu.org; Fri, 05 Jul 2019 19:46:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjXty-0004Iy-MT for bug-guix@gnu.org; Fri, 05 Jul 2019 19:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hjXty-0007Yk-Ff for bug-guix@gnu.org; Fri, 05 Jul 2019 19:46:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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 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 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) 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: 36518@debbugs.gnu.org --==-=-= 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----- --==-=-=--