golang/go

runtime, syscall: we require pipe2 but Solaris before 11.4 reportedly does not have it

Open

#56,499 opened on Oct 31, 2022

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationOS-Solariscompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Env: Solaris: SunOS hyperion 5.11 11.3 i86pc i386 i86pc GCC:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc --enable-shared --with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2  -mtune=opteron -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron'
Thread model: posix
gcc version 4.8.2 (GCC)

Building toolchain:

[root@hyperion src]# pwd
/home/emz/src/go-go1.19.2/src
[root@hyperion src]# export CFLAGS="-g -m64"
[root@hyperion src]# export CXXFLAGS="-g -m64"
[root@hyperion src]# export LDFLAGS="-g -m64"
[root@hyperion src]# export PKG_CONFIG_PATH=/usr/local/pkgconf/lib
[root@hyperion src]# export GOROOT_BOOTSTRAP=/usr/local/go-1.4.3
[root@hyperion src]# rm -rf ../../go-solaris-amd64-bootstrap
[root@hyperion src]# GOOS=solaris GOARCH=amd64 ./bootstrap.bash
#### Copying to ../../go-solaris-amd64-bootstrap

#### Cleaning ../../go-solaris-amd64-bootstrap

#### Building ../../go-solaris-amd64-bootstrap

Building Go cmd/dist using /usr/local/go-1.4.3. (go1.4.3 solaris/amd64)
Building Go toolchain1 using /usr/local/go-1.4.3.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
ld.so.1: go_bootstrap: fatal: relocation error: file /home/emz/src/go-solaris-amd64-bootstrap/pkg/tool/solaris_amd64/go_bootstrap: symbol pipe2: referenced symbol not found
ld.so.1: go_bootstrap: fatal: relocation error: file /home/emz/src/go-solaris-amd64-bootstrap/pkg/tool/solaris_amd64/go_bootstrap: symbol pipe2: referenced symbol not foundgo tool dist: FAILED: /home/emz/src/go-solaris-amd64-bootstrap/pkg/tool/solaris_amd64/go_bootstrap install -i cmd/asm cmd/cgo cmd/compile cmd/link: signal: killed

Doesn't matter if I'm trying to built 32bit or 64 bit version of go binaries, the error stack is the same.

Contributor guide