lr-gpsp giving "Illegal Instruction" on Raspberry Pi models 0W, 3B and 4.
-
gpsp SegFaults even if compiled from source.
-
Hi,
I've got the same error on my Pi0. Is there any solution for now?
I'm looked forward to play some GBA games and setup retropie today and then this. -
@masterjule said in lr-gpsp giving "Illegal Instruction" on Raspberry Pi models 0W, 3B and 4.:
I've got the same error on my Pi0. Is there any solution for now?
Install another GBA emulator and use it instead - https://retropie.org.uk/docs/Game-Boy-Advance/.
-
Thank you, I installed the gpsp, but got a segmentation fault error.
lr-vba-next ist not available and lr-mgba ist starting, so the rom is ok, but very poor performance -
@masterjule I don't think gpsp will be fast enough on your system anyway. I will look into it when I have a chance but I think you need at least an rpi2 for GBA.
-
I also have started having this problem since I updated. Maybe a previous package version for lr-gpsp would work if there is one. I'll be looking into a workaround until an actual fix is found.
@BuZz said in lr-gpsp giving "Illegal Instruction" on Raspberry Pi models 0W, 3B and 4.:
@masterjule I don't think gpsp will be fast enough on your system anyway. I will look into it when I have a chance but I think you need at least an rpi2 for GBA.
I know for a fact that before, it would run gba games at full speed. I tested it myself.
-
@TechieAndroid What system are you running ? From what I've tested, it's not the emulator version that's the problem, but the compiler used to produce the binary - the one distributed with Raspbian Buster.
-
I'm currently looking into this btw (to avoid duplicate efforts)
-
@mitu Pi 0 W with the latest version of RetroArch.
-
@mitu said in lr-gpsp giving "Illegal Instruction" on Raspberry Pi models 0W, 3B and 4.:
@TechieAndroid From what I've tested, it's not the emulator version that's the problem, but the compiler used to produce the binary - the one distributed with Raspbian Buster.
I see. So when I tried compiling it I ran out of memory on my Pi 0 W. Then I tried compiling it in Arch with
make TARGET=PI1
and then I replaced the binary with the one in /opt/retropie/libretrocores/lr-gpsp/ however it didn't change anything either.So I've been looking over the GitHub page and the maintainer hasn't provided much detail for compilation on various hardware. Do you know what compilation flags I might try on my computer to make it work on the Pi? I was basically guessing earlier.
-
Compiling the code with the mentioned methods doesn't work in any way, you end up receiving "Illegal Instruction".
What I did to temporarily solve this problem is to use a previous build of the gpsp_libretro.so binary and just as expected, it works! -
@Retro-Dee can we have this old build ?
-
Hi folks, here's the 4.5 binary: https://github.com/libretro/gpsp/issues/71#issuecomment-633748977
To install, unzip the file and transfer
gpsp_libretro.so
to your Pi. Replace the file in/opt/retropie/libretrocores/lr-gpsp/
with the version I've posted. Be sure to set the file permissions to 755 by issuing this command:sudo chmod 755 /opt/retropie/libretrocores/lr-gpsp/gpsp_libretro.so
Hope this helps!
-
I did look into this btw but need to revisit. Using older GCC on buster still caused the issue so need to debug further with gdb.
-
I can confirm that the older working version still runs at full speed. So that's nice.
I'm going to install Arch on one of my Pi 0 W's and compile the latest lr-gpsp binary, I'll post it as soon as I can.
-
Is the binary working on Pi0W as well? I can't get it to launch.
-
Replacing the core worked... for a while. As soon as I started playing Shrek 2 it restarted after a while of playing. Switching back to lr-mgba it fixed that problem. But lr-mgba is super slow on Pi0W so that is not an option. Does anyone have any suggestion to way it keeps restarting?
-
@juchong I tried getting in through WinSCP and overwriting the old gpsp_libreto.sp , but the system said "Permission Denied Error Code 3." Have you seen this, and do you know how I can give myself permission? Thanks!
-
@losingteam85 Using an old version shouldn't be needed anymore, try to update and use the latest
lr-gpsp
. -
@mitu I was able to update from source, tried it, restarted my system again, and still lr-gpsp won't load my GBA roms. I'm still getting the "line 1255: 2706 Illegal instruction" problem. The games do seem to work in lr-mgba. Not sure what's up. Thanks for your help!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.