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

Raspberry: Go build ut: open xxxxx: permission denied #38259

Closed
giacomovalenti opened this issue Apr 5, 2020 · 1 comment
Closed

Raspberry: Go build ut: open xxxxx: permission denied #38259

giacomovalenti opened this issue Apr 5, 2020 · 1 comment

Comments

@giacomovalenti
Copy link

giacomovalenti commented Apr 5, 2020

pi@raspberrypi:~/chisel $ go build
go: downloading github.com/gorilla/websocket v1.4.2
go: downloading golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
go: downloading github.com/jpillora/sizestr v1.0.0
go: downloading github.com/jpillora/backoff v1.0.0
go: downloading github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
go: downloading github.com/jpillora/requestlog v1.0.0
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
go: downloading github.com/andrew-d/go-termutil v0.0.0-20150726205930-009166a695 a2
go: downloading github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce
go: downloading github.com/jpillora/ansi v1.0.2
go: downloading golang.org/x/sys v0.0.0-20200331124033-c3d80250170d
go build github.com/jpillora/chisel: copying /tmp/go-build773040487/b001/exe/a.o ut: open chisel: permission denied

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

$ go version
go1.14.1.linux-armv6l

Does this issue reproduce with the latest release? yes

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

go env Output
$ go env

GO111MODULE=""
GOARCH="arm"
GOBIN=""
GOCACHE="/home/pi/.cache/go-build"
GOENV="/home/pi/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/pi/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="6"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/tmp/chisel/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build027536066=/tmp/go-build -gno-record-gcc-switches"

What did you do?

go build

What did you expect to see?

no error

What did you see instead?

ut: open chisel: permission denied

@andybons
Copy link
Member

andybons commented Apr 6, 2020

This appears to be an issue with your environment, and is better posted in a forum suited for questions unless you can demonstrate a bug with the toolchain using (ideally) a minimal example.

If you want to see more detailed steps of the build process, you can pass -x to go build:

$ go build -x

For asking questions, see:

Please ask the question on one of the above forums.

(Quoted from https://golang.org/wiki/Questions)

@andybons andybons closed this as completed Apr 6, 2020
@golang golang locked and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants