The bootstrap process is a chain of builds that each build the next stage, to minimize any effects of the host system, in order to produce a consistent final artifact. Your builds are failing before it has successfully built the final host stage, cross compiling hasn't come into the picture yet. Where it fails is the (optional) cgo part, you'll want to fix that before attempting to cross compile.
- sean On Sat, Aug 27, 2022, 18:16 Shane <skullrat...@gmail.com> wrote: > I noticed bootstrap.bash just calls make.bash here > <https://go.googlesource.com/go/+/refs/tags/go1.19/src/bootstrap.bash#61>, > and make.bash runs go build with the GOOS and GOARCH set to empty strings > here > <https://go.googlesource.com/go/+/refs/heads/master/src/make.bash#195>. > > Does this mean that whatever I set for GOOS when I run either > boostrap.bash or make.bash is always ignored? > > On Saturday, August 27, 2022 at 12:53:48 PM UTC-4 Brian Candler wrote: > >> On Saturday, 27 August 2022 at 17:10:21 UTC+1 Shane wrote: >> >>> Is it expected that linux_syscall.c would be compiled when the GOOS >>> environment variable is set to solaris? >> >> >> I see the log output does include this line: >> >> Building packages and commands for host, linux/amd64. >> >> Although I'm not sure why it couldn't use the existing toolchain directly. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/d797bdf4-e0c8-4096-a54d-be792ed50a90n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/d797bdf4-e0c8-4096-a54d-be792ed50a90n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAGabyPptmrHBdtyFxsypaOqRGwKngDU6v3Yr1eTT3KWAGrr0Ug%40mail.gmail.com.