https://rancher.com/ logo
Title
h

happy-island-57258

10/18/2022, 3:51 PM
RPi3 should be 64-bit as well, but I suspect the proximal issue is that kairos recompiled
elemental-cli
on 32-bit arch, which sets
runtime.GOARCH
!=
arm64
, which causes
GolangArchToArch
to return “invalid arch”.
r

ripe-mechanic-63260

10/18/2022, 3:55 PM
No idea bout this but doesn't go sets the proper goarch when cross compiling? Like you need to set the goos and goarch to cross compile?
h

happy-island-57258

10/18/2022, 3:58 PM
I’m not a go developer, but https://pkg.go.dev/runtime#hdr-Environment_Variables says:
GOARCH, GOOS, and GOROOT are recorded at compile time and made available by constants or functions in this package
Consequently, I presume this means those parameters must be set during cross compilation.