From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Build package for multiple platforms Date: Sun, 24 Mar 2019 19:29:50 +0200 Message-ID: <20190324172949.GB28591@macbook41> References: <87tvfu7r7j.fsf@nckx> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86wU-0008N4-Tt for help-guix@gnu.org; Sun, 24 Mar 2019 13:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h86wT-0004DI-Bi for help-guix@gnu.org; Sun, 24 Mar 2019 13:29:54 -0400 Received: from flashner.co.il ([178.62.234.194]:50384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86wT-0004AK-0N for help-guix@gnu.org; Sun, 24 Mar 2019 13:29:53 -0400 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: mikadoZero Cc: Help Guix --wq9mPyueHGvFACwf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 22, 2019 at 07:20:42PM -0400, mikadoZero wrote: >=20 > Tobias Geerinckx-Rice writes: >=20 > > mikadoZero, > > > > mikadoZero wrote: > >> (service qemu-binfmt-service-type > >> (qemu-binfmt-configuration > >> (platforms (lookup-qemu-platforms "arm" "aarch64" "ppc" > >> "mips64el")) > >> (guix-support? #t))) > >> > >> When I try to do a system reconfigure I get this error: > >> > >> error: qemu-binfmt-service-type: unbound variable > >> hint: Did you forget a `use-modules' form? > > > > qemu-binfmt-service-type is defined in (gnu services virtualization). > > > > I just use grep, but found out while researching this mail that we > > provide a nice =E2=80=98guix system search=E2=80=99 command to find out= which module > > provides a service > > > > =CE=BB guix system search qemu > > name: qemu-binfmt > > location: gnu/services/virtualization.scm:745:2 > > extends: file-systems shepherd-root guix > > shepherdnames: qemu-binfmt > > description: This service supports transparent emulation of binaries > > compiled for other architectures using QEMU and the `binfmt_misc' > > functionality of the kernel Linux. > > relevance: 5 > > > >> The closest package I can find using `guix package -s` is proot but > >> adding the module linux and the package proot does not solve this > >> error > >> message. > > > > Adding packages to your system configuration won't (and can't and > > mustn't) affect services in this way. > > > > Kind regards, > > > > T G-R >=20 > Thank you for pointing out that command. I will read more of the manual > for system and services. >=20 > Now I can reconfigure. >=20 > After rebooting the computer and setting up a guix environment in the > Guix repository, I can build for both arm platforms. I am have issues > with powerpc and mips.=20 >=20 > What should I do to get powerpc and mips to work? >=20 > # arm >=20 > Both of these commands are successful. >=20 > `./pre-inst-env guix build --system=3Darmhf-linux --rounds=3D4 emacs-ace-= link` > `./pre-inst-env guix build --system=3Daarch64-linux --rounds=3D4 emacs-ac= e-link` >=20 > # power-pc >=20 > `./pre-inst-env guix build --system=3Dpowerpc-linux --rounds=3D4 emacs-ac= e-link` >=20 > guix build: error: could not find bootstrap binary 'tar' for system 'powe= rpc-linux' >=20 powerpc isn't actually supported yet in Guix. There's been some work on it but this isn't unexpected > # mips >=20 > `./pre-inst-env guix build --system=3Dmips64el-linux --rounds=3D4 emacs-a= ce-link` >=20 > building /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0.= drv... > @ unsupported-platform /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-= bootstrap-2 > .0.drv mips64el-linux = =20 > while setting up the build environment: a `mips64el-linux' is required to= build `/gn > u/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0.drv', but I = am a `x86_6 > 4-linux' = =20 This error suggests that the emulation layer isn't set up correctly. I'm not sure what the correct answer is here. > builder for `/gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-= 2.0.drv' fa > iled with exit code 1 = =20 > build of /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0.= drv failed > View build log at '/var/log/guix/drvs/62/kxpiayyak6dkzlvs8lhlpb23yddry1-g= uile-bootst > rap-2.0.drv.bz2'. = =20 > cannot build derivation `/gnu/store/nk29013g6k2asl91w6hqvjvxh22dynv0-acl-= 2.2.52.src. > tar.xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/4f5ays7bp7flpp316hrlni2dhgsf0jid-bash= -minimal-4. > 4.23.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/02i7vn874xh5crjmksr15432l2cima42-binu= tils-2.31.1 > .drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/b968c534pxdngpcx8psqz8s9wcvgm6j9-binu= tils-cross- > boot0-2.31.1.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/ggsch6ijpbp812bkkc54iyiz8dbqvpfw-boot= strap-binar > ies-0.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/1mb95adrm5wsgznbl1gni86561pj1vf7-diff= utils-3.6.t > ar.xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/9jfbc0sfsyfndsx5wrkazm9b8cjcb7is-diff= utils-boot0 > -3.6.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/y25fs9wc5xkkc3cn3mlawcy3ixq3ylbl-file= -boot0-5.33 > .drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/r5mv2ysz8jp36hc5pm9105p3zmv1slwy-find= utils-4.6.0 > .tar.xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/fx5vpkcb2bb50d1pv3a0d9wzjp2hjxkh-find= utils-boot0 > -4.6.0.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/i4fj03xds43d30lgv8hs6l1vb4w9p5ag-gcc-= 5.5.0.drv': > 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/3mdbzqidjjry236m39m6mc6jn1ckpjf5-gett= ext-0.19.8. > 1.tar.xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/9dnygq2j5vnakp5fcbdblvwdjn8h8g0d-glib= c-2.28.drv' > : 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/syqwc8p35wrlncfwvk7fy8ply8w9nq9d-gmp-= 6.1.2.drv': > 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/g69k7s7s6kfn9xxh0c0cq0h0bifgyy15-gmp-= 6.1.2.tar.x > z.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/sp533p4d3gxpr5pndn9l4g41jxvwxa40-grep= -3.1.tar.xz > .drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/5kbrmfgyz5n4558dngqgdc4dk5wxcqgy-guil= e-2.2.4.drv > ': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/9ywgb8wkq3bl8cbp1n8qgfj8ycg9lh34-gzip= -1.9.drv':=20 > 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/m6dvkfdfnfmnly0il1jc7pb56sld6dyy-ld-w= rapper-boot > 0-0.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/h2l11p0v3bsnr4fwcm8ww2xw4pyjv1rq-ld-w= rapper-boot > 3-0.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/r6paw4h3aymihaf6pz7bmbyw4c8yh1m6-libg= c-7.6.6.drv > ': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/8wwc5cc6ggwa53jzcn4wm21jgrgyai33-libl= tdl-2.4.6.d > rv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/92pkqgnyh00grv9l9a69nj720iz08y51-libu= nistring-0. > 9.10.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/05mbs64prj8lg5ywh9cfcjahc7wn78jr-linu= x-libre-hea > ders-4.14.67.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/2vvkrpa03g71kwa9rmknbrkxrhwwcaj5-m4-1= =2E4.18.tar.x > z.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/zby125pysp9h38ks72h44mf13xbkia1j-make= -4.2.1.tar. > xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/19b6m025vh6g2h40mlhixwp963q1jgp3-make= -boot0-4.2. > 1.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/wa7xpi1ajs7clhxii9cq0wyb7n6fddib-patc= h-2.7.6.tar > .xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/6szmf0dxh6w64hpgj6gpc4ii487w297r-perl= -5.28.0.tar > .xz.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/vz1rnjlbb0gssnaylnj28d5dan2jc89c-perl= -boot0-5.28 > .0.drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/nndz20akij3vcdnjbmvx7lmcd09f4v2k-tar-= 1.30.tar.xz > .drv': 1 dependencies couldn't be built = =20 > cannot build derivation `/gnu/store/jhhvlb2vl5vghbwkhfcqfjjh6h6z13ps-sqli= te-3.26.0.d > rv': 1 dependencies couldn't be built = =20 > guix build: error: build of `/gnu/store/jhhvlb2vl5vghbwkhfcqfjjh6h6z13ps-= sqlite-3.26 > .0.drv' failed >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --wq9mPyueHGvFACwf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlyXvooACgkQQarn3Mo9 g1HWYxAAslhWM8/wuVwMup4EDYGDYTT40PsZHVs8ldL9xKAAT0XrbVgqFRSysilJ QG+pHydgPWG6F1J6a6eP4rk9n6SUXP2MucVzFk6sxGLN2XvGjjFQrcXJB4lRazKe PJVLPiawmX3hvoq1pf7Fukz7SQ5fFJcPr49m8hcPwFGqlas6wiZ59Ly8zt60SX3d 0EBrOghlw9RT7N7cMz0ziNYC41mInlFnZXM+509Ia4mRH5FwhcSMSb06oV4zqvkt 69bwGwsDNIk6tlBSn5aJfTlJfyg6jJbNuU+UX22aqORQowyA6lIR2W7fJqWqhTLO uYeJ/hRRFd0tgXemTI3H/NxYT1JPR1qjdwR1I4T0+BExM4nWeG41J7TFTaFUEfOH Jnm1umhHbp7CIk1ONktS+eJHNruvG9gbhCMHbcH8QaooEdCcw5qb+6WjhZzo1790 R5KswgJt3oSolpv2H6JO1pmWQ10mm9TQphqjX21KGiKD+APIZZrNPa1mehXGgpPj BAgtOn5Un9MgqrdYy61qrMg6ZGYb4qGl9HFWcDEe4YL2r7A6NPwKDmO6T0Nveqhh KvJjoxJdyBgBot/H/QDsKnhZcAt02irT4ElywEHsHKlh0WlS9VXzXjttIysgOA4z mcIMFCVUS8E11/qIzHAjkerxj/KDicWoSfWu4HV/b9OokX09tCU= =sf5J -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--