Article 5J5BE Having some trouble installing google-go-lang from Sbo

Having some trouble installing google-go-lang from Sbo

by
burning
from LinuxQuestions.org on (#5J5BE)
I've tried contacting the maintainer of the slackbuild script, but it's been a few days and they haven't responded.

I'm running -current and using Ponce's repo. I was trying to build and install the google-go-lang package through sbopkg and I kept getting this error:

Code:
Building Go cmd/dist using /usr. (go1.14.6 gccgo (GCC) 10.3.0 linux/386)
Building Go toolchain1 using /usr.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
panic: invalid argument

goroutine 1 [running]:
bootstrap..z2fcmd..z2flink..z2finternal..z2fld.Main
/tmp/SBo/package-google-go-lang/usr/lib/go1.16.3/go/src/cmd/link/internal/ld/main.go:333
main.main
/tmp/SBo/package-google-go-lang/usr/lib/go1.16.3/go/src/cmd/link/main.go:68
makecontext
:0

go tool dist: FAILED: /tmp/SBo/package-google-go-lang/usr/lib/go1.16.3/go/pkg/tool/linux_386/link -extld=gcc -o /tmp/SBo/package-google-go-lang/usr/lib/go1.16.3/go/pkg/tool/linux_386/go_bootstrap /tmp/go-tool-dist-382298166/cmd/go/_go_.a: exit status 2
Building Go toolchain2 using go_bootstrap and Go toolchain1.
go tool dist: FAILED: /tmp/SBo/package-google-go-lang/usr/lib/go1.16.3/go/pkg/tool/linux_386/go_bootstrap install -gcflags=all= -ldflags=all= -i
cmd/asm cmd/cgo cmd/compile cmd/link: fork/exec /tmp/SBo/package-google-go-lang/usr/lib/go1.16.3/go/pkg/tool/linux_386/go_bootstrap: exec format
error

google-go-lang:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:So I've since tried downloading the go-lang tar from the official go site instead but I'd like to figure out why I couldn't run the slackbuild. Out of curiosity I tried deleting my /usr/bin/go directory and running the slackbuild again but now I'm getting completely different errors and it doesn't even begin to compile, it throws the following errors:
Code:go/test/uintptrescapes3.go
go/test/undef.go
go/test/utf.go
go/test/varerr.go
go/test/varinit.go
go/test/winbatch.go
go/test/writebarrier.go
go/test/zerodivide.go
ERROR: Cannot find /usr/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.

google-go-lang:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:I'm aware I could simply install go into /opt from their website and simply add it to my path, but I'd like to know why the slackbuild isn't working as I'd prefer to have it installed as a slackware package and my own bash skills are not yet up to snuff to make a slackbuild script of my own.latest?d=yIl2AUoC8zA latest?i=WXJdYIMBkas:C2VwPHj7Mlk:F7zBnMy latest?i=WXJdYIMBkas:C2VwPHj7Mlk:V_sGLiP latest?d=qj6IDK7rITs latest?i=WXJdYIMBkas:C2VwPHj7Mlk:gIN9vFwWXJdYIMBkas
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments