-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go version devel +ff37d0e Tue Aug 9 17:13:43 2016 +0000 linux/ppc64le - What operating system and processor architecture are you using (
go env)?
ppc64le Ubuntu 16.04 - What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Set up a directory and set the GOPATH to it.
go install -buildmode=shared std
go get -u -linkshared -buildmode=shared golang.org/x/sys/unix - What did you expect to see?
No output, correct shared library built for golang.org/x/sys/unix. - What did you see instead?
go get -u -linkshared -buildmode=shared golang.org/x/sys/unix
//# /tmp/go-build737614428/libgolang.org-x-sys-unix.so
/home/boger/golang/upstream/go/pkg/tool/linux_ppc64le/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-742945850/go.o: In functionlocal.golang.org/x/sys/unix.Syscall': go.go:(.text+0x1b4c8): call tosyscall.Syscall' lacks nop, can't restore toc; recompile with -fPIC
/usr/bin/ld: go.go:(.text+0x1b4c8): unresolvable R_PPC64_REL24 againstsyscall.Syscall' /usr/bin/ld: /tmp/go-link-742945850/go.o: In functionlocal.golang.org/x/sys/unix.Syscall6':
go.go:(.text+0x1b4d8): call tosyscall.Syscall6' lacks nop, can't restore toc; recompile with -fPIC /usr/bin/ld: go.go:(.text+0x1b4d8): unresolvable R_PPC64_REL24 againstsyscall.Syscall6'
/usr/bin/ld: /tmp/go-link-742945850/go.o: In functionlocal.golang.org/x/sys/unix.RawSyscall': go.go:(.text+0x1b4e8): call tosyscall.RawSyscall' lacks nop, can't restore toc; recompile with -fPIC
/usr/bin/ld: go.go:(.text+0x1b4e8): unresolvable R_PPC64_REL24 againstsyscall.RawSyscall' /usr/bin/ld: /tmp/go-link-742945850/go.o: In functionlocal.golang.org/x/sys/unix.RawSyscall6':
go.go:(.text+0x1b4f8): call tosyscall.RawSyscall6' lacks nop, can't restore toc; recompile with -fPIC /usr/bin/ld: go.go:(.text+0x1b4f8): unresolvable R_PPC64_REL24 againstsyscall.RawSyscall6'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Reactions are currently unavailable