Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/sys/unix: Access() syscall is missing on AIX/ppc #42001

Closed
aklyachkin opened this issue Oct 15, 2020 · 2 comments
Closed

x/sys/unix: Access() syscall is missing on AIX/ppc #42001

aklyachkin opened this issue Oct 15, 2020 · 2 comments
Labels
FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-AIX
Milestone

Comments

@aklyachkin
Copy link

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

$ go version
go version go1.14.7 aix/ppc64

Does this issue reproduce with the latest release?

This is the latest release available from IBM

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

go env Output
$ go env
GO111MODULE=""
GOARCH="ppc64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="ppc64"
GOHOSTOS="aix"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="aix"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/freeware/lib/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/freeware/lib/golang/pkg/tool/aix_ppc64"
GCCGO="gccgo"
GOPPC64="power8"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -maix64 -pthread -mcmodel=large -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build467576586=/tmp/go-build -gno-record-gcc-switches"

What did you do?

compiling a package:
./segment-readonly.go:12:5: undefined: unix.Access

What did you expect to see?

the package is compiled.

What did you see instead?

./segment-readonly.go:12:5: undefined: unix.Access

The problem is missing Access() in golang.org/x/sys/unix on AIX platform. AIX has access() syscall and is fully compatible with the Linux counterpart:

Syntax

       #include  
       int access (PathName,Mode)
       char *PathName;
       int Mode;

AFAIU it is just an addition of a line something like:

//sys        Access(path string, mode uint32) (err error)

into syscall_aix.go

@gopherbot gopherbot added this to the Unreleased milestone Oct 15, 2020
@ianlancetaylor
Copy link
Contributor

CC @Helflym @laboger

@ianlancetaylor ianlancetaylor added help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-AIX labels Oct 15, 2020
@gopherbot
Copy link

Change https://golang.org/cl/262897 mentions this issue: unix: add missing syscalls on AIX

@golang golang locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-AIX
Projects
None yet
Development

No branches or pull requests

3 participants