Skip to content

x/sys/unix: Does not build on mipsel/mips64el/alpha/powerpc with gccgo #18031

Open
@NightTsarina

Description

@NightTsarina

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

  • go version go1.6.1 gccgo (Debian 6.2.1-4) 6.2.1 20161119 linux/mipsn64
  • go version go1.6.1 gccgo (Debian 6.2.1-4) 6.2.1 20161119 linux/mipso32

Same for alpha and powerpc (the 4 arches use gccgo in Debian).

What operating system and processor architecture are you using (go env)?

GOARCH="mipsn64"
GOHOSTARCH="mipsn64"
GOHOSTOS="linux"
GOOS="linux"

What did you do?

$ go build golang.org/x/sys/unix
# golang.org/x/sys/unix
obj-mips64el-linux-gnuabi64/src/golang.org/x/sys/unix/flock.go:15:30: error: reference to undefined name 'SYS_FCNTL'
 var fcntl64Syscall uintptr = SYS_FCNTL
                              ^
obj-mips64el-linux-gnuabi64/src/golang.org/x/sys/unix/sockcmsg_linux.go:15:30: error: reference to undefined name 'SizeofUcred'
  b := make([]byte, CmsgSpace(SizeofUcred))
                              ^
obj-mips64el-linux-gnuabi64/src/golang.org/x/sys/unix/sockcmsg_linux.go:16:9: error: reference to undefined name 'Cmsghdr'
  h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
         ^

(The log of errors is huge, you can see a complete build log here: https://buildd.debian.org/status/fetch.php?pkg=mtail&arch=powerpc&ver=0.0%2Bgit20161027.a7b3e3c-1&stamp=1479766693)


For mips64el, I pressume it is just a disparity of GOARCH between gccgo and gc, and possibly could be fixed by renaminng. But I don't see any support in the code for mipsel/mipso32, alpha, or powerpc (32bits)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions