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

Still can't install on ARM #1933

Closed
kevindtimm opened this issue Mar 15, 2020 · 6 comments
Closed

Still can't install on ARM #1933

kevindtimm opened this issue Mar 15, 2020 · 6 comments

Comments

@kevindtimm
Copy link

kevindtimm commented Mar 15, 2020

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

  1. What version of Delve are you using (dlv version)? latest
  2. What version of Go are you using? (go version)? 1.14
  3. What operating system and processor architecture are you using? raspbian armv7l
  4. What did you do? go get and then make install
  5. What did you expect to see? delve installed
  6. What did you see instead? found packages native (proc.go) and your_operating_system_and_architecture_combination_is_not_supported_by_delve (support_sentinel.go) in /home/pi/go/src/github.com/go-delve/delve/pkg/proc/native

I suspect I have to make a change to my architecture but don't know what it should be. When I run

If I do:
export GOARCH=arm64 make install
I get
fork/exec /tmp/go-build292453166/b001/exe/make: exec format error
make: *** [Makefile:10: install] Error 1

@kevindtimm kevindtimm changed the title Still can install on ARM Still can't install on ARM Mar 15, 2020
@chainhelen
Copy link
Contributor

Armv7l is 32bit, delve only support 64bit for ARM linux at present.

@aarzilli
Copy link
Member

Closing, what @chainhelen said.

@kevindtimm
Copy link
Author

Isn't the RPI 4 a 64 bit processor?

@dlsniper
Copy link
Contributor

@kevindtimm it is, but Raspbian, the default OS, is still 32bit.

You can use something like Ubuntu Server for getting a proper 64bit OS on it (note, there are alternatives out there like Balena OS, Majaro, Gentoo). I wrote this article on getting GoLand to work on a Raspberry Pi 4, but it should give you some insights into running other software on it as well. Delve setup is included in the process. Maybe that helps.

@kevindtimm
Copy link
Author

@kevindtimm it is, but Raspbian, the default OS, is still 32bit.

You can use something like Ubuntu Server for getting a proper 64bit OS on it (note, there are alternatives out there like Balena OS, Majaro, Gentoo). I wrote this article on getting GoLand to work on a Raspberry Pi 4, but it should give you some insights into running other software on it as well. Delve setup is included in the process. Maybe that helps.

Thank you very much!

@cusspvz
Copy link

cusspvz commented Dec 31, 2020

Same on the Macbook M1 while installing the Golang extension tools

Tools environment: GOPATH=/Users/redacted/go
Installing 1 tool at /Users/redacted/go/bin in module mode.
  dlv

Installing github.com/go-delve/delve/cmd/dlv FAILED
{
 "killed": false,
 "code": 1,
 "signal": null,
 "cmd": "/opt/homebrew/Cellar/go/1.15.6/libexec/bin/go get -v github.com/go-delve/delve/cmd/dlv",
 "stdout": "",
 "stderr": "/Users/redacted/go/pkg/mod/github.com/go-delve/delve@v1.5.1/service/debugger/debugger.go:26:2: found packages native (nonative_darwin.go) and your_operating_system_and_architecture_combination_is_not_supported_by_delve (support_sentinel.go) in /Users/redacted/go/pkg/mod/github.com/go-delve/delve@v1.5.1/pkg/proc/native\n"
}

1 tools failed to install.

dlv: failed to install dlv(github.com/go-delve/delve/cmd/dlv): Error: Command failed: /opt/homebrew/Cellar/go/1.15.6/libexec/bin/go get -v github.com/go-delve/delve/cmd/dlv
/Users/redacted/go/pkg/mod/github.com/go-delve/delve@v1.5.1/service/debugger/debugger.go:26:2: found packages native (nonative_darwin.go) and your_operating_system_and_architecture_combination_is_not_supported_by_delve (support_sentinel.go) in /Users/redacted/go/pkg/mod/github.com/go-delve/delve@v1.5.1/pkg/proc/native
 no output 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants