Cgo fails on aarch64 with "unknown architecture 'armv7-a'"

DoneSubmitted by Leo Famulari.
Details
2 participants
  • Efraim Flashner
  • Leo Famulari
Owner
unassigned
Severity
normal
L
L
Leo Famulari wrote on 15 Mar 2019 20:00
(address . bug-guix@gnu.org)
20190315190002.GA27033@jasmine.lan
As noted in Efraim's report from the 2019 Guix Days [0], Go (I think Cgospecifically?) 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/cgoAssembler messages:Error: unknown architecture `armv7-a'
Error: unrecognized option -march=armv7-aFAIL 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 onaarch64.
[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
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlyL9i8ACgkQJkb6MLrKfwhduA//VsRlqwBbR0GPNlQo8gxCDN7Y0aWuvPXeko2o1K6Z/1pTtGwNIozFsPqLcBxEFAbMWkwvMtT4j1dVa7eLrJPdJ6azb29SrWP2b0TBjRRYQsUMANhl3SLY4yEkuepENMaN4YS8BfLbbukJfl6A6slG2fG4puB5EPpd4JdsNXzYxHs4w5uRk5XcMPLNURUxTIyRai+GUss/mt3mAXvCRg+2CGR21o9xkTEbrezlp9kSITM5tKJiPk2jV34PRx9AF07qWnos2HyV/PlE5JD/CZuAZHLtoQQncVOM22HDmMYM7IiQ2fxOAei/2cVeebsFYhVTkHEd5QaYTeMdvoM3GO5QoeeSnZX4PanZswR1bCunX5dIfDXSUV9jsT0vcKifOqI4VqZ1WJiTggadPagzqGnGY9rq0zthF/N3gKlUIeIOI+xaBKJQoQQ3amKgFf860LTbr3T/9tQTHh2GecemLJy57u/JCXeFHmc7DpCAcZS0WVVFfxS2hSk5yrSwdrZBympLHgSkBBjoSk6ax7DfIbtA+6XbPdp0WXSki9d8KsW9EmaZ6ErNpVXOyn/jiNdHIDaOhJwIns6dIM+Q19TN7zdWp1pF1OAyzGZJXy6mgWLeGsb0QZsZB4iv+mJENpAQMDEIeDBQj1RhIOf22g0SksW7TzKQc6pc4uEj7v5iF/wir6s==sAsw-----END PGP SIGNATURE-----

E
E
Efraim Flashner wrote on 23 Jun 19:24 +0200
(name . Leo Famulari)(address . leo@famulari.name)(address . 34872-done@debbugs.gnu.org)
20200623172429.GH22974@E5400
On Fri, Mar 15, 2019 at 03:00:02PM -0400, Leo Famulari wrote:
Toggle quote (6 lines)> 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.
Toggle quote (6 lines)> > [0]> https://www.gnu.org/software/guix/blog/2019/qa-on-non-intel-at-guix-days/


-- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנרGPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7yOsgACgkQQarn3Mo9g1EMng//XmTU8HTp2SSxtDgzJUhZe0jFSn2NrJKSWbPJ4qcNfzYCfE1wSUWYMD1+n2T7Mr2qLS4sShUrVqAe2WuDa3Dr/gtUbVpAyyAgYxJ6NZAGH5Ug7osKzkOVUPH0JROvQeue0GeP/mBGl+iVI8zjC8aDQt/oXcojb3Z9F2I5KyRjc3XzVmeuKE0L2aBSW8y+zBpxas3GSjAfZoL1Bm7yTKfXIYAn/OR9pVKhaHipmosxw/TJcgwIVDoSsjgvlJFh1HggKlF8/gY8M1CxyUDjWDrdf60l0L6Qxtbv3v6gtbocpKCxqGc0lZifMWdJ5XcuZwBPU1Y5PXdi9jt9ENNy+XpFfhqdRuE7cuUXniruITYcvdgAY41llho4iq+kLquUE35xKbpOUxcgeBdDxdeajEFGPqUWQ/syAhzmldphPvL9swXLq2ILkhRy0jblQmQBgG33lZkqqOUJTSRXACIrHcy5MjiVz7jqV3kkfIRnDNDRz793cuOquoCIVgdLsmVfrtxoua7e1/PhGrNs1rNxOCa3NQ50+ZoSmxQKlEIsX6f5gd83ORAfaEsUPEdYe10couefZi0kmVUfwkwbO7l0h+KN1+8TftEYgS4wHOpGUjLKEEj39ynZu9qUENFJT6gobidmVcu7RE0AkaARyrrRYG0/oCys+lO6hChFa8oEzoSV9BQ==ntYG-----END PGP SIGNATURE-----

Closed
?