phantom icon indicating copy to clipboard operation
phantom copied to clipboard

Compiled on Raspberry Pi 4 and the binary fails to execute.

Open trixtur opened this issue 4 years ago • 6 comments

I compiled this many times. Reinstalled Go and I'm still struggling to make progress. Once I compile and add exec permissions, I go to run the binary and I get:

-bash: ./phantom-linux: cannot execute binary file: Exec format error

Also additional note. I had to add SHELL=/bin/bash to the top of the Makefile to get it to work. Otherwise it threw an error about pushd.

trixtur avatar Jun 18 '20 22:06 trixtur

Just tried your arm8 binary and it gave me the same error.

trixtur avatar Jun 18 '20 22:06 trixtur

-bash: ./phantom-linux-arm8: cannot execute binary file: Exec format error

trixtur avatar Jun 18 '20 22:06 trixtur

Hey @trixtur, hmmmmm.

  • What OS is the Pi running?
  • Have you tried the arm7 binary instead?

This shows that it should be ARMv8 so I'm not sure why that one isn't working. The specs say that it should be backwards compatible though.

jhead avatar Jun 19 '20 18:06 jhead

My Pi 4 is running Raspbian buster. I did try to run arm7 with a similar result. Sorry for the delayed response. I ended up compiling the arm7 on my Pi 3 and running it there instead. I'd be happy to keep testing it on the Pi 4 though.

trixtur avatar Jun 23 '20 18:06 trixtur

I just pulled a fresh copy of the code and built arm8 again and I got the same error. However this time when I built arm7 it worked.

trixtur avatar Jun 23 '20 18:06 trixtur

Hey - I can also confirm that running v0.5.3/phantom-linux-arm7 works on my RhaspberryPi4.

OS: Linux raspberrypi 5.4.83-v7l+ armv7l

Specifically (and no root needed):

wget https://github.com/jhead/phantom/releases/download/v0.5.3/phantom-linux-arm7
chmod u+x ./phantom-linux-arm7
./phantom-linux-arm8 -server $my_server_ip:19132

It worked almost immediately on my Xbox One Minecraft. I may have had to close & re-open it.

This is a great little tool @jhead nice work. I can prep a PR into the readme with this info if you'd like. Next task for me will be setting it up as a service so it's always running.

You can at least close this issue!

nhudacin avatar Apr 02 '21 01:04 nhudacin