Skip to content

syscall: s390x: fork/exec function not implemented #15963

Closed
@becks

Description

@becks
  1. What version of Go are you using (go version)?
    go version go1.7beta1 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="s390x"
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    CC="gcc"
    GOGCCFLAGS="-fPIC -m64 -march=z196 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build929527714=/tmp/go-build"
    CXX="g++"
    CGO_ENABLED="0"
  3. What did you do?
    https://play.golang.org/p/DaEDa0AMTZ

$ export GOARCH=s390x
$ go install

$ file $GOPATH/bin/linux_s390x/test
/go//bin/linux_s390x/test: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), statically linked, not stripped

  1. What did you see instead?

$ uname -a
Linux myhost 2.6.18-274.el5 #1 SMP Fri Jul 8 17:47:13 EDT 2011 s390x s390x s390x GNU/Linux

$ ./test
fork/exec /bin/ls: function not implemented

$ strace -s8192 -f ./test
[pid 19931] setup() = -1 ENOSYS (Function not implemented)
[pid 19931] setup() = -1 ENOSYS (Function not implemented)
[pid 19931] close(0) = 0
[pid 19931] close(0) = -1 EBADF (Bad file descriptor)
[pid 19931] write(2, "fork/exec /bin/ls: function not implemented", 43fork/exec /bin/ls: function not implemented) = 43

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions