Aug 05, 2008 (free download, can download a soalris 8 02/04 flar). Solaris8 7/03 question. 807559 Aug 5, 2008 10:09 PM (in response to 807559). You can get solaris 8 and 9 zones and also canned flars to use as a base system. If you have your own flars for sol8.
I built go under go-sparc64 on a intel-Linux platform. I assume that this go will generate sparc binaries. However if I use this go and compile a 'hello world' program on intel-Linux, the resulting executable runs on intel-Linux but not on sparc-Solaris.
What am I doing wrong? Note: the file VERSION was missing missing in go-sparc64 and this caused the build to fail. I copied this file from the 1.8.1 sources and the build succeeded. Also, is there a way to build go using gccgo? I have gccgo available on sparc-Solaris. Ian Lance Taylor 22/5/2017, 17:21 น. Asus rampage iv black problems. My mistake, I forgot to set GOROOT.
On Tue, May 23, 2017 at 1:53 PM, mu11 via golang-dev wrote: > > > On Monday, May 22, 2017 at 8:38:28 PM UTC-7, Dave Cheney wrote: >> >> >> >> On Tue, 23 May 2017, 13:33 Mukesh Kapoor wrote: >>> >>> I don't have a go binary release for sparc-Solaris and Aram suggested >>> that I build on any platform where I have go available so I built on >>> intel-Linux. Here are the steps I followed: >>> >>> on intel-Linux machine: >>>% cd go-sparc64/src >>>%./make.bash >>> >>> This builds the cross-go and installs under go-sparc64/bin. >> >> >> Unless you have set GOARCH=SPARC64 this will not build a cross compiling >> version. > > > I had not set GOARCH for this step. Then I have no idea how your toolchain produced a solaris/sparc64 binary; it should have produced an intel one. Not sure sorry.
You're using solaris 11 / illumos right? Solaris 10 and earlier are not supported. Mukesh Kapoor 22/5/2017, 21:08 น. On Monday, May 22, 2017 at 8:58:41 PM UTC-7, Dave Cheney wrote: On Tue, May 23, 2017 at 1:53 PM, mu11 via golang-dev wrote: > > > On Monday, May 22, 2017 at 8:38:28 PM UTC-7, Dave Cheney wrote: >> >> >> >> On Tue, 23 May 2017, 13:33 Mukesh Kapoor wrote: >>> >>> I don't have a go binary release for sparc-Solaris and Aram suggested >>> that I build on any platform where I have go available so I built on >>> intel-Linux. Here are the steps I followed: >>> >>> on intel-Linux machine: >>>% cd go-sparc64/src >>>%./make.bash >>> >>> This builds the cross-go and installs under go-sparc64/bin. >> >> >> Unless you have set GOARCH=SPARC64 this will not build a cross compiling >> version.
> > > I had not set GOARCH for this step. Then I have no idea how your toolchain produced a solaris/sparc64 binary; it should have produced an intel one. What is the output of your 'uname -a' command? This is the output on my system and I got a lot further than what you had: uname -a SunOS 5.11 11.3 sun4v sparc sun4v First I built the go toolchain using bootstrap.bash. It installed the solaris-sparc64 go tool chain under $GOROOT/./go-solaris-sparc64-bootstrap Then I go to a Solaris 11 system and change the GOROOT_BOOTSTRAP value to: GOROOT_BOOTSTRAP=/go-solaris-sparc64-bootstrap and that built gofmt successfully. However, the build of 'go' itself using the bootstrapped solaris-sparc64 go failed due to this error: runtime/cgo # runtime/cgo /usr/bin/as: '/var/tmp//ccQuoGbd.s', line 27: error: unknown '%'-symbol /usr/bin/as: '/var/tmp//ccQuoGbd.s', line 27: error: quoted-string operand required /usr/bin/as: '/var/tmp//ccQuoGbd.s', line 27: error: statement syntax but it got pretty far before the failure:) Mukesh Kapoor 7/6/2017, 20:57 น.
I built it on exactly this same system. First I built the go toolchain using bootstrap.bash.
It installed the solaris-sparc64 go tool chain under $GOROOT/./go-solaris-sparc64-bootstrap Then I go to a Solaris 11 system and change the GOROOT_BOOTSTRAP value to: GOROOT_BOOTSTRAP=/go-solaris-sparc64-bootstrap and that built gofmt successfully. However, the build of 'go' itself using the bootstrapped solaris-sparc64 go failed due to this error: runtime/cgo # runtime/cgo /usr/bin/as: '/var/tmp//ccQuoGbd.s', line 27: error: unknown '%'-symbol /usr/bin/as: '/var/tmp//ccQuoGbd.s', line 27: error: quoted-string operand required /usr/bin/as: '/var/tmp//ccQuoGbd.s', line 27: error: statement syntax but it got pretty far before the failure:) Mukesh Kapoor 8/6/2017, 14:19 น. $> /export/home/wmuser/agent/go-solaris-sparc64-bootstrap/bin #./go runtime: address space conflict: map(0xc420000000) = 0xffffffff7e200000 fatal error: runtime: address space conflict runtime stack: runtime.throw(0x74f60d, 0x1f) /home/ayasuda/agent/go-solaris-sparc64-bootstrap/src/runtime/panic.go:567 +0xe4 fp=0xffffffff7fffe230 sp=0xffffffff7fffe170 runtime.sysMap(0xc420000000, 0x100000, 0x0, 0x94b018) /home/ayasuda/agent/go-solaris-sparc64-bootstrap/src/runtime/mem_bsd.go:84 +0x1f4 fp=0xffffffff7.