From mboxrd@z Thu Jan 1 00:00:00 1970 From: mikadoZero Subject: Re: Build package for multiple platforms Date: Sun, 24 Mar 2019 14:10:49 -0400 Message-ID: References: <87tvfu7r7j.fsf@nckx> <20190324172949.GB28591@macbook41> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h87al-0005V8-Mp for help-guix@gnu.org; Sun, 24 Mar 2019 14:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h87ak-0003ol-2V for help-guix@gnu.org; Sun, 24 Mar 2019 14:11:31 -0400 Received: from forward101j.mail.yandex.net ([5.45.198.241]:37158) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h87ai-0003nf-P3 for help-guix@gnu.org; Sun, 24 Mar 2019 14:11:30 -0400 In-reply-to: <20190324172949.GB28591@macbook41> 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: Efraim Flashner Cc: Help Guix Efraim Flashner writes: > 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 ou= t 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-a= ce-link` >>=20 >> # power-pc >>=20 >> `./pre-inst-env guix build --system=3Dpowerpc-linux --rounds=3D4 emacs-a= ce-link` >>=20 >> guix build: error: could not find bootstrap binary 'tar' for system 'pow= erpc-linux' >>=20 > > powerpc isn't actually supported yet in Guix. There's been some work on > it but this isn't unexpected > Thank you, that is good to know. >> # mips >>=20 >> `./pre-inst-env guix build --system=3Dmips64el-linux --rounds=3D4 emacs-= ace-link` >>=20 >> building /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0= .drv... >> @ unsupported-platform /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile= -bootstrap-2 >> .0.drv mips64el-linux=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> while setting up the build environment: a `mips64el-linux' is required t= o build `/gn >> u/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0.drv', but I= am a `x86_6 >> 4-linux'=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 > > This error suggests that the emulation layer isn't set up correctly. I'm > not sure what the correct answer is here. > The only set up I have done for qemu is in the system configuration file. Here are the relevant section: (use-service-modules virtualization ...) (use-package-modules virtualization ...) (packages (cons* qemu ... %base-packages)) (services (cons* ... (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms (lookup-qemu-platforms "arm" "aarch64" "ppc" "mips64el")) (guix-support? #t))) %base-services))) >> builder for `/gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap= -2.0.drv' fa >> iled with exit code 1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> build of /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0= .drv failed >> View build log at '/var/log/guix/drvs/62/kxpiayyak6dkzlvs8lhlpb23yddry1-= guile-bootst >> rap-2.0.drv.bz2'.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/nk29013g6k2asl91w6hqvjvxh22dynv0-acl= -2.2.52.src. >> tar.xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 >> cannot build derivation `/gnu/store/4f5ays7bp7flpp316hrlni2dhgsf0jid-bas= h-minimal-4. >> 4.23.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/02i7vn874xh5crjmksr15432l2cima42-bin= utils-2.31.1 >> .drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/b968c534pxdngpcx8psqz8s9wcvgm6j9-bin= utils-cross- >> boot0-2.31.1.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/ggsch6ijpbp812bkkc54iyiz8dbqvpfw-boo= tstrap-binar >> ies-0.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 >> cannot build derivation `/gnu/store/1mb95adrm5wsgznbl1gni86561pj1vf7-dif= futils-3.6.t >> ar.xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 >> cannot build derivation `/gnu/store/9jfbc0sfsyfndsx5wrkazm9b8cjcb7is-dif= futils-boot0 >> -3.6.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/y25fs9wc5xkkc3cn3mlawcy3ixq3ylbl-fil= e-boot0-5.33 >> .drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/r5mv2ysz8jp36hc5pm9105p3zmv1slwy-fin= dutils-4.6.0 >> .tar.xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 >> cannot build derivation `/gnu/store/fx5vpkcb2bb50d1pv3a0d9wzjp2hjxkh-fin= dutils-boot0 >> -4.6.0.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 >> cannot build derivation `/gnu/store/i4fj03xds43d30lgv8hs6l1vb4w9p5ag-gcc= -5.5.0.drv': >> 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/3mdbzqidjjry236m39m6mc6jn1ckpjf5-get= text-0.19.8. >> 1.tar.xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 >> cannot build derivation `/gnu/store/9dnygq2j5vnakp5fcbdblvwdjn8h8g0d-gli= bc-2.28.drv' >> : 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/syqwc8p35wrlncfwvk7fy8ply8w9nq9d-gmp= -6.1.2.drv': >> 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/g69k7s7s6kfn9xxh0c0cq0h0bifgyy15-gmp= -6.1.2.tar.x >> z.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/sp533p4d3gxpr5pndn9l4g41jxvwxa40-gre= p-3.1.tar.xz >> .drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/5kbrmfgyz5n4558dngqgdc4dk5wxcqgy-gui= le-2.2.4.drv >> ': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/9ywgb8wkq3bl8cbp1n8qgfj8ycg9lh34-gzi= p-1.9.drv':=20 >> 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/m6dvkfdfnfmnly0il1jc7pb56sld6dyy-ld-= wrapper-boot >> 0-0.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/h2l11p0v3bsnr4fwcm8ww2xw4pyjv1rq-ld-= wrapper-boot >> 3-0.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/r6paw4h3aymihaf6pz7bmbyw4c8yh1m6-lib= gc-7.6.6.drv >> ': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/8wwc5cc6ggwa53jzcn4wm21jgrgyai33-lib= ltdl-2.4.6.d >> rv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/92pkqgnyh00grv9l9a69nj720iz08y51-lib= unistring-0. >> 9.10.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/05mbs64prj8lg5ywh9cfcjahc7wn78jr-lin= ux-libre-hea >> ders-4.14.67.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/2vvkrpa03g71kwa9rmknbrkxrhwwcaj5-m4-= 1.4.18.tar.x >> z.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/zby125pysp9h38ks72h44mf13xbkia1j-mak= e-4.2.1.tar. >> xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/19b6m025vh6g2h40mlhixwp963q1jgp3-mak= e-boot0-4.2. >> 1.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/wa7xpi1ajs7clhxii9cq0wyb7n6fddib-pat= ch-2.7.6.tar >> .xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/6szmf0dxh6w64hpgj6gpc4ii487w297r-per= l-5.28.0.tar >> .xz.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 >> cannot build derivation `/gnu/store/vz1rnjlbb0gssnaylnj28d5dan2jc89c-per= l-boot0-5.28 >> .0.drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/nndz20akij3vcdnjbmvx7lmcd09f4v2k-tar= -1.30.tar.xz >> .drv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> cannot build derivation `/gnu/store/jhhvlb2vl5vghbwkhfcqfjjh6h6z13ps-sql= ite-3.26.0.d >> rv': 1 dependencies couldn't be built=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 >> guix build: error: build of `/gnu/store/jhhvlb2vl5vghbwkhfcqfjjh6h6z13ps= -sqlite-3.26 >> .0.drv' failed >>=20