go tool dist: unknown architecture: aarch64
A message that is not in the archive (sent off-list or not yet received): [email protected]
A bit debug, found out that the go-native.inc depends on go1.4-bootstrap which does not have arm64/aarch64 support. Found out a reference on
- https://golang.org/doc/install/source#bootstrapFromSource
- https://golang.org/doc/install/source#bootstrapFromCrosscompiledSource
To cross-compile a bootstrap toolchain from source, which is necessary on systems Go 1.4 did not target (for example, linux/ppc64le), install Go on a different system and run bootstrap.bash(https://golang.org/src/bootstrap.bash)
When run as (for example)
$ GOOS=linux GOARCH=ppc64 ./bootstrap.bash
How to add this in yocto I am not sure...
any pointers please help
Quoted 41 lines · learning yocto via Lists.Yoctoproject.Org
Hello List,
I am a newbie to yocto world, trying to build poky (zeus) for
qemuarm64 machine on an arm64 board.When I included meta-virtualization layer and add docker-ce
local.conf
-----------DISTRO_FEATURES_append= " virtualization"IMAGE_INSTALL_append= " docker"
-----------bitbake core-image-minimal / bitbake -c configure go-native throws the error
---------------
DEBUG: Executing shell functiondo_configure
# Building C bootstrap tool.
cmd/dist
go tool dist: unknown architecture: aarch64
WARNING: exit code 1 from a shell command.
ERROR: Execution of '/mnt1/yocto_kb/build-rpi/tmp/work/aarch64-linux/go-native/1.12.9-r0/temp/run.do_configure.31724' failed with exit code 1:
# Building C bootstrap tool.
cmd/dist
go tool dist: unknown architecture: aarch64
WARNING: exit code 1 from a shell command.
---------Not sure how to fix this error. Please advice
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.View/Reply Online (#47741): https://lists.yoctoproject.org/g/yocto/message/47741
Mute This Topic: https://lists.yoctoproject.org/mt/68784558/4043142
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 11 lines · learning yocto
A bit debug, found out that the go-native.inc depends on go1.4-bootstrap which does not have arm64/aarch64 support. Found out a reference on
- https://golang.org/doc/install/source#bootstrapFromSource
- https://golang.org/doc/install/source#bootstrapFromCrosscompiledSourceTo cross-compile a bootstrap toolchain from source, which is necessary on systems Go 1.4 did not target (for example, linux/ppc64le), install Go on a different system and run bootstrap.bash(https://golang.org/src/bootstrap.bash)
Quoted 6 lines
When run as (for example)
$ GOOS=linux GOARCH=ppc64 ./bootstrap.bashHow to add this in yocto I am not sure...
any pointers please help
this is a bit more involved issue since go compiler needs go compiler to build, since 1.4 is where it has to start and that means you have to create a bootsrap go cross compiler for aarch64 using go 1.5 first on x86 host. once you have this distribution for aarch64, it should then be installed on your aarch64 host and used to bootstrap the full compiler.
perhaps add it to uninative tarball for aarch64 then or host it somewhere.
another option is to require host to have go compiler and use that to bootstrap the version of go we want to use for OE.
Quoted 54 lines
Quoted 50 lines · learning yocto via Lists.Yoctoproject.Org
Hello List,
I am a newbie to yocto world, trying to build poky (zeus) for
qemuarm64 machine on an arm64 board.When I included meta-virtualization layer and add docker-ce
local.conf
-----------DISTRO_FEATURES_append= " virtualization"IMAGE_INSTALL_append= " docker"
-----------bitbake core-image-minimal / bitbake -c configure go-native throws the error
---------------
DEBUG: Executing shell functiondo_configure
# Building C bootstrap tool.
cmd/dist
go tool dist: unknown architecture: aarch64
WARNING: exit code 1 from a shell command.
ERROR: Execution of '/mnt1/yocto_kb/build-rpi/tmp/work/aarch64-linux/go-native/1.12.9-r0/temp/run.do_configure.31724' failed with exit code 1:
# Building C bootstrap tool.
cmd/dist
go tool dist: unknown architecture: aarch64
WARNING: exit code 1 from a shell command.
---------Not sure how to fix this error. Please advice
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.View/Reply Online (#47741): https://lists.yoctoproject.org/g/yocto/message/47741
Mute This Topic: https://lists.yoctoproject.org/mt/68784558/4043142
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.View/Reply Online (#47746): https://lists.yoctoproject.org/g/yocto/message/47746
Mute This Topic: https://lists.yoctoproject.org/mt/68784558/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-