GNU bug report logs - #34872
Cgo fails on aarch64 with "unknown architecture 'armv7-a'"

Previous Next

Package: guix;

Reported by: Leo Famulari <leo <at> famulari.name>

Date: Fri, 15 Mar 2019 19:09:02 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34872 in the body.
You can then email your comments to 34872 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34872; Package guix. (Fri, 15 Mar 2019 19:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Famulari <leo <at> famulari.name>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 15 Mar 2019 19:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: bug-guix <at> gnu.org
Subject: Cgo fails on aarch64 with "unknown architecture 'armv7-a'"
Date: Fri, 15 Mar 2019 15:00:02 -0400
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Tue, 23 Jun 2020 17:26:02 GMT) Full text and rfc822 format available.

Notification sent to Leo Famulari <leo <at> famulari.name>:
bug acknowledged by developer. (Tue, 23 Jun 2020 17:26:02 GMT) Full text and rfc822 format available.

Message #10 received at 34872-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Leo Famulari <leo <at> famulari.name>
Cc: 34872-done <at> debbugs.gnu.org
Subject: Re: bug#34872: Cgo fails on aarch64 with "unknown architecture
 'armv7-a'"
Date: Tue, 23 Jun 2020 20:24:29 +0300
[Message part 1 (text/plain, inline)]
On Fri, Mar 15, 2019 at 03:00:02PM -0400, Leo Famulari wrote:
> 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'".

This should now be fixed with 9b03299544e540ad5975abb306c19eb0168aa5e1.
We now build go-1.13.9 on aarch64 targeting aarch64 and not armhf-linux.

> 
> [0]
> https://www.gnu.org/software/guix/blog/2019/qa-on-non-intel-at-guix-days/



-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 22 Jul 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.