[go-nuts] Re: Changes in the language/ Compile Go

2022-08-27 Thread ramki...@hotmail.com
Think I found it here https://go.dev/doc/install/source On Saturday, August 27, 2022 at 5:28:50 PM UTC-4 ramki...@hotmail.com wrote: > I wanted to make changes to golang io package. If I fork golang from > github (https://github.com/golang/go) and make the changes, how do I > access these

[go-nuts] Changes in the language/ Compile Go

2022-08-27 Thread ramki...@hotmail.com
I wanted to make changes to golang io package. If I fork golang from github (https://github.com/golang/go) and make the changes, how do I access these changes in my go project? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Re: abort assembly code profile

2022-08-27 Thread 'Keith Randall' via golang-nuts
For #1, that is https://github.com/golang/go/issues/15808 For #2, the Go compiler is generally not great at optimizing arrays, particularly copies of them (in your case, from ret to the return slot). I would recommend using either slices ([]int) or structs (struct {x, y int}), or even pointer

Re: [go-nuts] go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT

2022-08-27 Thread Ian Lance Taylor
On Sat, Aug 27, 2022 at 12:06 PM Lonnie TC wrote: > > I hope that everyone is doing well today. > I am working on a Golang project to port go-pmem over to MSYS2 using MinGW 64: > > https://github.com/jerrinsg/go-pmem > > In trying to build the patched Go distro toolchain, I am getting some

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread Ian Lance Taylor
On Sat, Aug 27, 2022 at 12:15 PM Shane wrote: > > My understanding then is that cmd/dist first builds for the host here (in my > case, for Linux) and then builds for the target starting here. Since there is > always a build for the host first, then since my host OS is Linux, the >

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread Shane
Ah, I see now, sorry for not noticing that. My understanding then is that cmd/dist first builds for the host here (in my case, for Linux) and then builds for the target starting here

[go-nuts] go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT

2022-08-27 Thread Lonnie TC
Hi All, I hope that everyone is doing well today. I am working on a Golang project to port go-pmem over to MSYS2 using MinGW 64: https://github.com/jerrinsg/go-pmem In trying to build the patched Go distro toolchain, I am getting some strange error in the build that I do not know how to

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread 'Sean Liao' via golang-nuts
make.bash calls cmd/dist which does the build chaining, calling it directly doesn't skip the process. - sean On Sat, Aug 27, 2022, 19:54 Shane wrote: > > Is there some way I can skip straight to building Go for my Solaris > target using my existing Linux Go tools? > Sorry, this question was

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread Shane
> Is there some way I can skip straight to building Go for my Solaris target using my existing Linux Go tools? Sorry, this question was foolish. Of course I can skip straight to building for Solaris, by using the make.bash script. But as I pointed out earlier, > I looked at the POSIX docs

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread Shane
I already have a working Go 1.19 for Linux with cgo support on my build machine that I downloaded and installed from https://go.dev. Given this, is it still necessary to build for the host? Is there some way I can skip straight to building Go for my Solaris target using my existing Linux Go

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread 'Sean Liao' via golang-nuts
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.

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread Shane
I noticed bootstrap.bash just calls make.bash here , and make.bash runs go build with the GOOS and GOARCH set to empty strings here . Does this mean

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-27 Thread Brian Candler
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