All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC] package/go: switch to gcc go instead of go-bootstrap
@ 2022-05-25 21:07 Christian Stewart via buildroot
  2022-05-25 21:43 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Stewart via buildroot @ 2022-05-25 21:07 UTC (permalink / raw)
  To: Buildroot Mailing List; +Cc: Joel Stanley, Thomas Petazzoni, Yann E. MORIN


[-- Attachment #1.1: Type: text/plain, Size: 882 bytes --]

Hi all,

Go will soon require Go >= 1.16 to bootstrap.

See: https://github.com/golang/go/issues/44505

Go1.4 was the last version written in C.

Today, in Buildroot, we:

 - build gcc and/or use external toolchain
 - build go-bootstrap (go 1.4) with gcc
 - use go-bootstrap to build host-go

I propose that we switch to using Gccgo:

 - build gcc and/or use external toolchain
    - add flags to enable the "go" language in Gcc
    - GCC 11 or later
 - depend on the "go" language in Gcc to build host-go
 - use the gccgo compiler to bootstrap "host-go"

See: https://go.dev/doc/install/source#bootstrapFromGccgo

This will be more future proof, and also solve the issue of the upcoming
switch to requiring Go 1.11 or newer to compile the Go compiler.

If this looks good to everyone, I'll send a patch series.

Thanks & best,
Christian Stewart

https://github.com/skiffos/skiffos

[-- Attachment #1.2: Type: text/html, Size: 1531 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-27  0:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-25 21:07 [Buildroot] [RFC] package/go: switch to gcc go instead of go-bootstrap Christian Stewart via buildroot
2022-05-25 21:43 ` Thomas Petazzoni via buildroot
2022-05-26  2:17   ` Joel Stanley
2022-05-26 13:46     ` Thomas Petazzoni via buildroot
2022-05-27  0:30       ` Christian Stewart via buildroot
2022-05-26  7:43   ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.