unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: mikadoZero <mikadozero@yandex.com>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Build package for multiple platforms
Date: Sun, 24 Mar 2019 14:10:49 -0400	[thread overview]
Message-ID: <cuch8bs5eja.fsf@yandex.com> (raw)
In-Reply-To: <20190324172949.GB28591@macbook41>


Efraim Flashner writes:

 > On Fri, Mar 22, 2019 at 07:20:42PM -0400, mikadoZero wrote:
> 
>> Tobias Geerinckx-Rice writes:
>> 
>> > 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 ‘guix system search’ command to find out which module
>> > provides a service
>> >
>> >  λ 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
>> 
>> Thank you for pointing out that command.  I will read more of the manual
>> for system and services.
>> 
>> Now I can reconfigure.
>> 
>> 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. 
>> 
>> What should I do to get powerpc and mips to work?
>> 
>> # arm
>> 
>> Both of these commands are successful.
>> 
>> `./pre-inst-env guix build --system=armhf-linux --rounds=4 emacs-ace-link`
>> `./pre-inst-env guix build --system=aarch64-linux --rounds=4 emacs-ace-link`
>> 
>> # power-pc
>> 
>> `./pre-inst-env guix build --system=powerpc-linux --rounds=4 emacs-ace-link`
>> 
>> guix build: error: could not find bootstrap binary 'tar' for system 'powerpc-linux'
>> 
>
> 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
>> 
>> `./pre-inst-env guix build --system=mips64el-linux --rounds=4 emacs-ace-link`
>> 
>> building /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2.0.drv...
>> @ unsupported-platform /gnu/store/62kxpiayyak6dkzlvs8lhlpb23yddry1-guile-bootstrap-2
>> .0.drv mips64el-linux                                                              
>> 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'                                                                           
>
> 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                                                              
>> 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'.                                                                  
>> cannot build derivation `/gnu/store/nk29013g6k2asl91w6hqvjvxh22dynv0-acl-2.2.52.src.
>> tar.xz.drv': 1 dependencies couldn't be built                                      
>> cannot build derivation `/gnu/store/4f5ays7bp7flpp316hrlni2dhgsf0jid-bash-minimal-4.
>> 4.23.drv': 1 dependencies couldn't be built                                        
>> cannot build derivation `/gnu/store/02i7vn874xh5crjmksr15432l2cima42-binutils-2.31.1
>> .drv': 1 dependencies couldn't be built                                            
>> cannot build derivation `/gnu/store/b968c534pxdngpcx8psqz8s9wcvgm6j9-binutils-cross-
>> boot0-2.31.1.drv': 1 dependencies couldn't be built                                
>> cannot build derivation `/gnu/store/ggsch6ijpbp812bkkc54iyiz8dbqvpfw-bootstrap-binar
>> ies-0.drv': 1 dependencies couldn't be built                                       
>> cannot build derivation `/gnu/store/1mb95adrm5wsgznbl1gni86561pj1vf7-diffutils-3.6.t
>> ar.xz.drv': 1 dependencies couldn't be built                                       
>> cannot build derivation `/gnu/store/9jfbc0sfsyfndsx5wrkazm9b8cjcb7is-diffutils-boot0
>> -3.6.drv': 1 dependencies couldn't be built                                        
>> cannot build derivation `/gnu/store/y25fs9wc5xkkc3cn3mlawcy3ixq3ylbl-file-boot0-5.33
>> .drv': 1 dependencies couldn't be built                                            
>> cannot build derivation `/gnu/store/r5mv2ysz8jp36hc5pm9105p3zmv1slwy-findutils-4.6.0
>> .tar.xz.drv': 1 dependencies couldn't be built                                     
>> cannot build derivation `/gnu/store/fx5vpkcb2bb50d1pv3a0d9wzjp2hjxkh-findutils-boot0
>> -4.6.0.drv': 1 dependencies couldn't be built                                      
>> cannot build derivation `/gnu/store/i4fj03xds43d30lgv8hs6l1vb4w9p5ag-gcc-5.5.0.drv':
>>  1 dependencies couldn't be built                                                  
>> cannot build derivation `/gnu/store/3mdbzqidjjry236m39m6mc6jn1ckpjf5-gettext-0.19.8.
>> 1.tar.xz.drv': 1 dependencies couldn't be built                                    
>> cannot build derivation `/gnu/store/9dnygq2j5vnakp5fcbdblvwdjn8h8g0d-glibc-2.28.drv'
>> : 1 dependencies couldn't be built                                                 
>> cannot build derivation `/gnu/store/syqwc8p35wrlncfwvk7fy8ply8w9nq9d-gmp-6.1.2.drv':
>>  1 dependencies couldn't be built                                                  
>> cannot build derivation `/gnu/store/g69k7s7s6kfn9xxh0c0cq0h0bifgyy15-gmp-6.1.2.tar.x
>> z.drv': 1 dependencies couldn't be built                                           
>> cannot build derivation `/gnu/store/sp533p4d3gxpr5pndn9l4g41jxvwxa40-grep-3.1.tar.xz
>> .drv': 1 dependencies couldn't be built                                            
>> cannot build derivation `/gnu/store/5kbrmfgyz5n4558dngqgdc4dk5wxcqgy-guile-2.2.4.drv
>> ': 1 dependencies couldn't be built                                                
>> cannot build derivation `/gnu/store/9ywgb8wkq3bl8cbp1n8qgfj8ycg9lh34-gzip-1.9.drv': 
>> 1 dependencies couldn't be built                                                   
>> cannot build derivation `/gnu/store/m6dvkfdfnfmnly0il1jc7pb56sld6dyy-ld-wrapper-boot
>> 0-0.drv': 1 dependencies couldn't be built                                         
>> cannot build derivation `/gnu/store/h2l11p0v3bsnr4fwcm8ww2xw4pyjv1rq-ld-wrapper-boot
>> 3-0.drv': 1 dependencies couldn't be built                                         
>> cannot build derivation `/gnu/store/r6paw4h3aymihaf6pz7bmbyw4c8yh1m6-libgc-7.6.6.drv
>> ': 1 dependencies couldn't be built                                                
>> cannot build derivation `/gnu/store/8wwc5cc6ggwa53jzcn4wm21jgrgyai33-libltdl-2.4.6.d
>> rv': 1 dependencies couldn't be built                                              
>> cannot build derivation `/gnu/store/92pkqgnyh00grv9l9a69nj720iz08y51-libunistring-0.
>> 9.10.drv': 1 dependencies couldn't be built                                        
>> cannot build derivation `/gnu/store/05mbs64prj8lg5ywh9cfcjahc7wn78jr-linux-libre-hea
>> ders-4.14.67.drv': 1 dependencies couldn't be built                                
>> cannot build derivation `/gnu/store/2vvkrpa03g71kwa9rmknbrkxrhwwcaj5-m4-1.4.18.tar.x
>> z.drv': 1 dependencies couldn't be built                                           
>> cannot build derivation `/gnu/store/zby125pysp9h38ks72h44mf13xbkia1j-make-4.2.1.tar.
>> xz.drv': 1 dependencies couldn't be built                                          
>> cannot build derivation `/gnu/store/19b6m025vh6g2h40mlhixwp963q1jgp3-make-boot0-4.2.
>> 1.drv': 1 dependencies couldn't be built                                           
>> cannot build derivation `/gnu/store/wa7xpi1ajs7clhxii9cq0wyb7n6fddib-patch-2.7.6.tar
>> .xz.drv': 1 dependencies couldn't be built                                         
>> cannot build derivation `/gnu/store/6szmf0dxh6w64hpgj6gpc4ii487w297r-perl-5.28.0.tar
>> .xz.drv': 1 dependencies couldn't be built                                         
>> cannot build derivation `/gnu/store/vz1rnjlbb0gssnaylnj28d5dan2jc89c-perl-boot0-5.28
>> .0.drv': 1 dependencies couldn't be built                                          
>> cannot build derivation `/gnu/store/nndz20akij3vcdnjbmvx7lmcd09f4v2k-tar-1.30.tar.xz
>> .drv': 1 dependencies couldn't be built                                            
>> cannot build derivation `/gnu/store/jhhvlb2vl5vghbwkhfcqfjjh6h6z13ps-sqlite-3.26.0.d
>> rv': 1 dependencies couldn't be built                                              
>> guix build: error: build of `/gnu/store/jhhvlb2vl5vghbwkhfcqfjjh6h6z13ps-sqlite-3.26
>> .0.drv' failed
>> 

      reply	other threads:[~2019-03-24 18:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-22 17:08 Build package for multiple platforms mikadoZero
2019-03-22 17:29 ` Tobias Geerinckx-Rice
2019-03-22 23:20   ` mikadoZero
2019-03-24 17:29     ` Efraim Flashner
2019-03-24 18:10       ` mikadoZero [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cuch8bs5eja.fsf@yandex.com \
    --to=mikadozero@yandex.com \
    --cc=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).