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

cmd/go: not able to install revel on raspberry pi #25566

Closed
sujeet03 opened this issue May 25, 2018 · 5 comments
Closed

cmd/go: not able to install revel on raspberry pi #25566

sujeet03 opened this issue May 25, 2018 · 5 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@sujeet03
Copy link

sujeet03 commented May 25, 2018

Please answer these questions before submitting your issue. Thanks!

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

go version go1.9 linux/arm

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

GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/pi/gocode"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="6"
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build101436108=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?

I tried installing revel by go get -u github.com/revel/cmd/revel.

What did you expect to see?

revel installed

What did you see instead?

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5190b8]
goroutine 1 [running]:
cmd/compile/internal/gc.dumpasmhdr()
/usr/local/go/src/cmd/compile/internal/gc/export.go:389 +0x20c
cmd/compile/internal/gc.Main(0x6c5f88)
/usr/local/go/src/cmd/compile/internal/gc/main.go:633 +0x2660
main.main()
/usr/local/go/src/cmd/compile/main.go:49 +0x7c

@kardianos
Copy link
Contributor

If this is a first gen rpi, set GOARM=5.

@sujeet03
Copy link
Author

No its not first gen rpi

@mvdan
Copy link
Member

mvdan commented May 25, 2018

I can't reproduce any crash on linux/amd64 on neither tip nor 1.10.2. Not even after setting GOARCH=arm.

@sujeet03 have you tried Go 1.10?

@tklauser
Copy link
Member

This is probably due to #25561/#25563, i.e. a type alias in golang.org/x/sys/unix which was fixed by https://golang.org/cl/114596.

@sujeet03 does this still reproduce with the latest tip of golang.org/x/sys/unix?

@agnivade agnivade changed the title Not able to install revel on raspberry pi cmd/go: not able to install revel on raspberry pi May 25, 2018
@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label May 25, 2018
@sujeet03
Copy link
Author

@mvdan got it! I am able to install revel with latest go version 1.10.2. I think latest revel v0.19 has some issues with older go versions.

@golang golang locked and limited conversation to collaborators May 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

6 participants