You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.6 linux/mips64le
What operating system and processor architecture are you using (go env)?
GOARCH="mips64le"
GOBIN=""
GOEXE=""
GOHOSTARCH="mips64le"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_mips64le"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -fmessage-length=0"
CXX="g++"
CGO_ENABLED="0"
What did you do?
download http://dl.fedoraproject.org/pub/fedora/linux/updates/23/SRPMS/r/runc-0.0.8-0.1.git1a124e9.fc23.src.rpm and build it. The build process is exit by ld returned 1 exit status.
The full error msg is as follow:
gcc -I . -fPIC -pthread -fmessage-length=0 -o $WORK/runtime/cgo/_obj/cgo.o $WORK/runtime/cgo/_obj/_cgo_main.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o -g -O2 -lpthread
runtime/cgo
/tmp/go-build507880994/runtime/cgo/_obj/gcc_util.o: In function x_cgo_thread_start': /usr/lib/golang/src/runtime/cgo/gcc_util.c:42: undefined reference to_cgo_sys_thread_start'
/usr/lib/golang/src/runtime/cgo/gcc_util.c:48: undefined reference to `_cgo_sys_thread_start'
collect2: error: ld returned 1 exit status
What did you expect to see?
build pass and no such error report.
What did you see instead?
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
undefined reference to `_cgo_sys_thread_start'
runtime/cgo: mips64le undefined reference to `_cgo_sys_thread_start'
Apr 7, 2016
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.6 linux/mips64le
What operating system and processor architecture are you using (
go env
)?GOARCH="mips64le"
GOBIN=""
GOEXE=""
GOHOSTARCH="mips64le"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_mips64le"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -fmessage-length=0"
CXX="g++"
CGO_ENABLED="0"
What did you do?
download http://dl.fedoraproject.org/pub/fedora/linux/updates/23/SRPMS/r/runc-0.0.8-0.1.git1a124e9.fc23.src.rpm and build it. The build process is exit by ld returned 1 exit status.
The full error msg is as follow:
gcc -I . -fPIC -pthread -fmessage-length=0 -o $WORK/runtime/cgo/_obj/cgo.o $WORK/runtime/cgo/_obj/_cgo_main.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o -g -O2 -lpthread
runtime/cgo
/tmp/go-build507880994/runtime/cgo/_obj/gcc_util.o: In function
x_cgo_thread_start': /usr/lib/golang/src/runtime/cgo/gcc_util.c:42: undefined reference to
_cgo_sys_thread_start'/usr/lib/golang/src/runtime/cgo/gcc_util.c:48: undefined reference to `_cgo_sys_thread_start'
collect2: error: ld returned 1 exit status
What did you expect to see?
build pass and no such error report.
What did you see instead?
The text was updated successfully, but these errors were encountered: