I have a need for the software Syncthing, it requires the software Go. This is on/for an Sparc 64bit machine. I believe that I am reading that I cant use the cgo (see instruction sets supported here: https://golang.org/doc/install/source#environment), so I believe I can use gogcc to compile a version of the Go software?
ok…so I have gcc 4.8.2 installed on my server. Please help me figure out the below…
Can I just go and download go source code and compile go on a SPARC machine? I would need Go 1.5 specifically, but apparently I could possibly use 1.3 or 1.4.
Do I need to download a newer gcc software than 4.8.2 to be able to use or compile gccgo? Once I compile gccgo I would get the binary go so I can build my package?
Might I possibly have to compile a newer version of gcc, then compile gccgo, then run go install_package to get the package I need…this all on SPARC.
I am trying to install syncthing on SPARC and I don’t compile, etc very often and need help/more direction than most to get to where I need to be.
Someone has written a guide on cross compiling a GCC with GCCgo from Linux, which may be a starting point:
If I understand things correctly, you need at least GCC 5 to get a Go 1.3+ compatible compiler.
All of this will probably be complicated, painful and difficult. As the author of syncthing I applaud your enthusiasm, but I’m not sure the end result will be worth it, if it even runs.