据我了解,您需要使用guix build
,指定目标平台和包名称。
我试过这个但没有成功:
$ guix build --target=i586-pc-gnu gcc
...
building /gnu/store/2byqh17pv16wayzscxszmi1njycqrgm0-gawk-mesboot-3.1.8.drv...
...
starting phase `check'
error: in phase 'check': uncaught exception:
srfi-34 #<condition &invoke-error [program: "./gawk" arguments: ("--version") exit-status: #f term-signal: 11 stop-signal: #f] 1504440>
phase `check' failed after 0.0 seconds
command "./gawk" "--version" failed with signal 11
builder for `/gnu/store/2byqh17pv16wayzscxszmi1njycqrgm0-gawk-mesboot-3.1.8.drv' failed with exit code 1
build of /gnu/store/2byqh17pv16wayzscxszmi1njycqrgm0-gawk-mesboot-3.1.8.drv failed
View build log at '/var/log/guix/drvs/2b/yqh17pv16wayzscxszmi1njycqrgm0-gawk-mesboot-3.1.8.drv.bz2'.
cannot build derivation `/gnu/store/i86785np132ja1s3nig1j26pawhzbl83-bash-minimal-5.1.8.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/2ya7ahb9058sdzghz3mww0xw7mhyv0l6-binutils-2.37.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/w8vi4byxf2brzhh43fr1m1lynd9hpls3-gcc-10.3.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/pnj0ann8r7sxb09sj8k1rkra3axqsks6-glibc-2.33.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/djg0pj29h1gn58j8x1lsxqwz95r4cpf7-guile-3.0.7.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/9qvm4sschajnx1x7qxrrs5sxj4vxgphq-libatomic-ops-7.6.10.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/wwqdxm9xqrdl2xwwf4v7rdi4q2r0w51h-libgc-8.0.4.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/v84prklf86izcyvxkm4bdl4mck0v0qm3-libunistring-0.9.10.drv': 1 dependencies couldn't be built
building /gnu/store/am0cafkm6mywhchml2c73bplmqbj6ks4-linux-libre-headers-5.10.35.drv...
cannot build derivation `/gnu/store/1mnrv6fjx2a0jxq5xzfdrgay1apfz0yw-gcc-toolchain-10.3.0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/1mnrv6fjx2a0jxq5xzfdrgay1apfz0yw-gcc-toolchain-10.3.0.drv' failed
我究竟做错了什么?如何用guix交叉编译gcc?