As noted in Efraim's report from the 2019 Guix Days [0], Go (I think Cgo
specifically?) has issues on aarch64.

Certain builds will fail with messages like "unknown architecture
'armv7-a'".

For example, this build of go-github-com-burntsushi-toml [1]:

------
starting phase `check'
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization 
failure: mkdir /homeless-shelter: permission denied
# runtime/cgo
Assembler messages:
Error: unknown architecture `armv7-a'

Error: unrecognized option -march=armv7-a
FAIL    github.com/BurntSushi/toml [build failed]
Backtrace:
           5 (primitive-load "/gnu/store/h3njbwy4b09v3yacha47slgwdl5…")
In ice-9/eval.scm:
   191:35  4 (_ #f)
In srfi/srfi-1.scm:
   863:16  3 (every1 #<procedure 6e7600 at /gnu/store/nrrpqxjvmpizf…> …)
In 
/gnu/store/nrrpqxjvmpizfgsf9s87aq3rqhgi62v9-module-import/guix/build/gnu-build-system.scm:
   799:28  2 (_ _)
In 
/gnu/store/nrrpqxjvmpizfgsf9s87aq3rqhgi62v9-module-import/guix/build/go-build-system.scm:
    210:4  1 (check #:tests? _ #:import-path _)
In 
/gnu/store/nrrpqxjvmpizfgsf9s87aq3rqhgi62v9-module-import/guix/build/utils.scm:
    616:6  0 (invoke _ . _)

/gnu/store/nrrpqxjvmpizfgsf9s87aq3rqhgi62v9-module-import/guix/build/utils.scm:616:6:
 In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "go" 
arguments: ("test" "github.com/BurntSushi/toml") exit-status: 2 term-signal: #f 
stop-signal: #f] 85ff80>)'.
builder for 
`/gnu/store/0287l329nsf8z56hk0zscpxvx0jz9fi9-go-github-com-burntsushi-toml-0.0.0-0.a368813.drv'
 failed with exit code 1
@ build-failed 
/gnu/store/0287l329nsf8z56hk0zscpxvx0jz9fi9-go-github-com-burntsushi-toml-0.0.0-0.a368813.drv
 - 1 builder for 
`/gnu/store/0287l329nsf8z56hk0zscpxvx0jz9fi9-go-github-com-burntsushi-toml-0.0.0-0.a368813.drv'
 failed with exit code 1
------

This is blocking the deployment of applications like Syncthing on
aarch64.

[0]
https://www.gnu.org/software/guix/blog/2019/qa-on-non-intel-at-guix-days/
[1]
https://berlin.guixsd.org/log/g9gxvilwwqvchngyvilfr3xl7risk814-go-github-com-burntsushi-toml-0.0.0-0.a368813

Attachment: signature.asc
Description: PGP signature

Reply via email to