builder for Solaris 10

263 views
Skip to first unread message

heng....@gmail.com

unread,
Jul 16, 2017, 6:37:08 PM7/16/17
to golang-dev
Dear experts:

I was following guild on https://golang.org/doc/install/source to build go from gccgo on Solaris 10 amd64. Unfortunately it is not working properly for some reason, i don't if it is bug or it is intended this way. Following are the steps of the build.

1. Compile gcc5core from opencsw.
2. link src folder form the  lib: ln -s /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10 /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src
3. link go-5.2 to go:  ln -s /opt/csw/bin/go-5.2 /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/bin/go
4. build: cd /tmp/go/src; GOROOT_BOOTSTRAP=/opt/csw/lib/go/5.2.0/i386-pc-solaris2.10 ./make.bash

The error i get is as follows: 

bash-3.2# GOROOT_BOOTSTRAP=/opt/csw/lib/go/5.2.0/i386-pc-solaris2.10 GOPATH=/tmp/go ./make.bash
##### Building Go bootstrap tool.
cmd/dist
encoding/json/decode.go:12:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/encoding
bytes/buffer.go:11:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/io
cmd/dist/test.go:13:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/log
strconv/atof.go:13:8: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/math
fmt/print.go:10:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/os
cmd/dist/test.go:17:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/regexp
package cmd/dist
        imports runtime: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/runtime
reflect/type.go:21:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/sync
bytes/bytes.go:10:2: no buildable Go source files in /opt/csw/lib/go/5.2.0/i386-pc-solaris2.10/src/unicode


Can anyone help explain it to me what is the correct method to build go on Solaris 10 amd64? As I understand that cross-compile in go does not really support Solaris 10, so I am wonderring is there any plans on build port on this Operating system? 


Thanks a lot.

BR//


Aram Hăvărneanu

unread,
Jul 16, 2017, 6:43:19 PM7/16/17
to heng....@gmail.com, golang-dev
> Can anyone help explain it to me what is the correct method
> to build go on Solaris 10 amd64?

No, you just can't, Solaris 10 is not supported,

Unfortunately the standard Go distribution requires Solaris 11 or
later, or derivatives like illumos. It doesn't work on Solaris 10
because it uses APIs only available on Solaris 11, like event ports.

> so I am wonderring is there any plans on build port on this
> Operating system?

There are no plans to add Solaris 10 support.

--
Aram Hăvărneanu
Reply all
Reply to author
Forward
0 new messages