I followed the instruction at https://golang.org/doc/install/source to build Go compiler from the source code on my Windows 10’s WSL, and I got the following error:
./all.bash
> Building Go toolchain1 using /usr/local/go.
> Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
> Building Go toolchain2 using go_bootstrap and Go toolchain1.
> Building Go toolchain3 using go_bootstrap and Go toolchain2.
> go install go/token: copying /tmp/go-build3158513450/b083/_pkg_.a: open /mnt/d/software_dev/go/Go_compiler/goroot/pkg/linux_amd64/go/token.a: no such file or directory
> go install cmd/internal/obj/s390x: copying /tmp/go-build3158513450/b063/_pkg_.a: open /mnt/d/software_dev/go/Go_compiler/goroot/pkg/linux_amd64/cmd/internal/obj/s390x.a: no such file or directory
> go tool dist: FAILED: /mnt/d/software_dev/go/Go_compiler/goroot/pkg/tool/linux_amd64/go_bootstrap install -gcflags=all= -ldflags=all= -a -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
Microsoft Windows [Version 10.0.19042.804]
C:\Users\petrus>wsl
petrus:~$ uname -a
Linux petrus 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
petrus:~$