-
Notifications
You must be signed in to change notification settings - Fork 148
gb build failed for go1.5 #319
Comments
It's likely that gb didn't get rebuilt, you can try adding the Personally, I recommend removing |
Same issue. I even manually deleted .a and binary. rm -rf pkg/linux_amd64/github.com/constabulary/gb/* |
Are you saying that go install did nothing ? Can you please include the On Sun, Aug 23, 2015 at 4:07 PM, linuxerwang notifications@github.com
|
|
Can you please include the ouput of |
gb and gb-vendor were installed correctly, I can run "gb vendor fetch" without problem. The problem is when running "gb build". I build my go1.5 from source code. And there is no 6g under /usr/share/go-golang/pkg/tool/linux_amd64/6g. I think go1.5 removed all 6g/6l etc. according to the release notes: https://golang.org/doc/go1.5#compiler_and_tools No I did not set GOROOT. |
Thank you for confirming. My suspicion is that your go installation is not correct, and that incorrect value is being encoded into gb when it is compiled (because it must know this value to know where to find the compiler). The fact that gb is using the go 1.4 behavior (looking for How have you installed go ? If you uninstall go and then issue |
I downloaded the go1.5 source tarball, set GOROOT and GOROOT_FINAL to /usr/share/go-golang; compile the source with all.bash; the copy the whole source folder to /usr/share/go-golang; then create a symbol link /usr/bin/go to /usr/share/go-golang/bin/go. user@host:/usr/share/go-golang$ tree -L 1 Thanks. |
And go env output: $ go env $ go version |
Why would you do this ? Just download the binary tarball from the Go website and unpack it to the recommended location. This binary tarball is very well tested and known to work. If you do wish to compile from source, my strongest recommendation is to not set GOROOT and compile to a directory owned by your user. I outline the procedure here. http://dave.cheney.net/2014/09/13/how-to-install-multiple-versions I recommend following the advice outlined above and expect that this will resolve your problem installing gb. |
Still not working for me. a). I rebuilt go from source. This time I didn't set any GOROOT paths. I untar source code to /home/tools/go-go1.5, built there, put bin in path. Removed pkg/ bin/ for gb. Generated gb and gb-vendor. "gb build" failed the same way. $ /home/tools/go-go1.5/bin/go env b) I downloaded the prebuilt go tarball from golang.org. Note that it needs to be extracted to /usr/local/go. Repeated the above steps, "gb build" failed the same way. $ /usr/local/go/bin/go env |
I have to go to bed now. But please let me know if anything else I should do to figure out the problem. Thanks. |
I'm sorry I haven't been able to fix it for you. Can you please confirm the modification time on your I added a check to gb in 34bdc62 that should fail if the version of Go that build gb does not match the version of Go that is installed. Can you please try
To download the latest version. |
The last look before go to bed. You are right! Didn't remember when I copied gb/gb-vendor to /usr/bin. That gave me a hard time. It's totally my fault. Thank you so much, Dave. |
You're welcome, I'm glad you were able to find the problem. |
I upgraded to go1.5, rebuilt the whole gb pkg/cmds, and "gb build" gave error:
FATAL command "build" failed: fork/exec /usr/share/go-golang/pkg/tool/linux_amd64/6g: no such file or directory
Also tried to rebuild gb with build tag (I know it's redundant):
go install --tags 'go1.5' github.com/constabulary/gb/cmd/gb
go install --tags 'go1.5' github.com/constabulary/gb/cmd/gb-vendor
But still "gb build" failed with the above error.
Thanks.
The text was updated successfully, but these errors were encountered: