Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: building 1.4 bootstrap toolchain failing on solaris 10 #41468

Closed
GrassInWind2019 opened this issue Sep 18, 2020 · 1 comment
Closed
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Solaris

Comments

@GrassInWind2019
Copy link

GrassInWind2019 commented Sep 18, 2020

I am trying to install Go1.15.2 on solaris 10 from source and it need Bootstrap toolchain.
I download https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz, set CGO_ENABLED=0 in the environment, and run make.bash.
It failed due to "ld.so.1: go_bootstrap: fatal: relocation error: file /export/home/dongsongz/go/go1.4-bootstrap/go/pkg/tool/solaris_amd64/go_bootstrap: symbol sem_reltimedwait_np: referenced symbol not found".

Following is the output:

[root@test:/export/home/dongsongz/go/go1.4-bootstrap/go/src]# export CGO_ENABLED=0
[root@test:/export/home/dongsongz/go/go1.4-bootstrap/go/src]# ./make.bash 
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, solaris/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go
/export/home/dongsongz/go/go1.4-bootstrap/go/pkg/tool/solaris_amd64
ld.so.1: go_bootstrap: fatal: relocation error: file /export/home/dongsongz/go/go1.4-bootstrap/go/pkg/tool/solaris_amd64/go_bootstrap: symbol sem_reltimedwait_np: referenced symbol not found
./make.bash: line 167: 12294 Killed                  "$GOTOOLDIR"/go_bootstrap clean -i std
[root@test:/export/home/dongsongz/go/go1.4-bootstrap/go/src]# uname -a
SunOS test 5.10 Generic_147148-26 i86pc i386 i86pc
@ALTree ALTree changed the title Build Bootstrap toolchain from source on solaris 10 failed cmd/go: building 1.4 bootstrap toolchain failing on solaris 10 Sep 18, 2020
@ALTree ALTree added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Solaris labels Sep 18, 2020
@ALTree
Copy link
Member

ALTree commented Sep 18, 2020

I don't think Solaris 10 (aka SunOS 5.10) is supported. According to this, you need 11+. And even then I think it's amd64 only. There's a solaris/spark out-of-tree port, but that one is also 11+ only.

Since your combination of OS and architecture is not supported (and untested), I'm closing this issue. Feel free to comment if you also fail to build Go on a supported Solaris version (e.g. Solaris 11+ on amd64).

@ALTree ALTree closed this as completed Sep 18, 2020
@golang golang locked and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Solaris
Projects
None yet
Development

No branches or pull requests

3 participants