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

Comments

Projects
None yet
5 participants
@sujeet03
Copy link

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

This comment has been minimized.

Copy link
Contributor

commented May 25, 2018

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

@sujeet03

This comment has been minimized.

Copy link
Author

commented May 25, 2018

No its not first gen rpi

@mvdan

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member

commented May 25, 2018

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

@sujeet03

This comment has been minimized.

Copy link
Author

commented May 28, 2018

@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.

@sujeet03 sujeet03 closed this May 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.