unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: 34872@debbugs.gnu.org
Subject: bug#34872: Cgo fails on aarch64 with "unknown architecture 'armv7-a'"
Date: Fri, 15 Mar 2019 15:00:02 -0400	[thread overview]
Message-ID: <20190315190002.GA27033@jasmine.lan> (raw)

[-- Attachment #1: Type: text/plain, Size: 2149 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2019-03-15 19:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-15 19:00 Leo Famulari [this message]
2020-06-23 17:24 ` bug#34872: Cgo fails on aarch64 with "unknown architecture 'armv7-a'" Efraim Flashner

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=20190315190002.GA27033@jasmine.lan \
    --to=leo@famulari.name \
    --cc=34872@debbugs.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).