I am trying to follow what I believe to be the official instructions for building Go from source. (I am not trying to build my own Go code, I am trying to build the Go project itself.)
The reason I want to do this is to build a Go 1.19 compiler for Solaris, since there are no prebuilt Go 1.19 binaries for Solaris available on the Go downloads page.
On the official instructions page, under the "Optional environment variables" section, it says "The Go compilation environment can be customized by environment variables."
Later in this same section, it then says that the GOOS and GOARCH environment variables can be used to set the target operating system and compilation architecture.
I tried building like this, after cloning the source code and checking out the go1.19 tag, but the build fails:
$ GOOS=solaris GOARCH=amd64 GOROOT_FINAL=../publish ./all.bashI am building on Linux. I have gcc and Go 1.19 installed on my Linux system, and both tools are on my PATH.
I am looking for help fixing these errors.
Best regards,
Shane
Is it expected that linux_syscall.c would be compiled when the GOOS environment variable is set to solaris?
--
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...@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.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ab7f958c-e662-4f2e-a4ed-ef0426c174dcn%40googlegroups.com.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6dd9a30f-d4be-45ff-a80c-499a71933259n%40googlegroups.com.