[OE-core] [PATCH] go: Allow bootstrapping using host go compiler

Adrian Bunk bunk at stusta.de
Fri Apr 12 19:45:07 UTC 2019


On Fri, Apr 12, 2019 at 01:30:46PM +0100, Daniel Thompson wrote:
> Currently go-native bootstraps without any dependency on the host go
> compiler by building go-1.4 (the last version written in C) and using
> that to build a more recent version of go. This does not work on host
> architectures, such as arm64, that are not supported by go-1.4. To
> support these host architectures we must rely on an existing host go
> compiler and use that to build go-native instead.
>...

Why is this the only option for you?

The clean way to bootstrap go would be by building gccgo and using that 
as starting point for the bootstrap.

Haven't tried how trivial or difficult it is to make that work,
but it sounds more long-term maintainable than having different
problems depending on what architecture and host distribution
is used - it doesn't sound like a good idea to have to test
and maintain all combinations, e.g. whether Go 1.6 on arm64
in Ubuntu 16.04 manages to bootstrap the latest Go.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the Openembedded-core mailing list