mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.28k stars 115 forks source link

Illegal Instruction on Raspberry Pi Zero W Rev 1.1 #841

Open aforsythe opened 3 years ago

aforsythe commented 3 years ago

Hi, and thanks for reporting errors! You can help us locating the bug even more by providing detailed information in the sections below:

The issue

Running pegasus-fe alpha15 yields Illegal Instruction

System info

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
processor   : 0
model name  : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 697.95
Features    : half thumb fastmult vfp edsp java tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xb76
CPU revision    : 7

Hardware    : BCM2835
Revision    : 9000c1
Serial      : 000000007839d372
Model       : Raspberry Pi Zero W Rev 1.1

Pegasus version

Tried alpha 15 stable and latest g4be7c848_rpi1, both result in Illegal Instruction Tried loading via retropie package manager ... Illegal Instruction Tried alternate hardware versions ... Illegal Instruction or Segmentation Fault

Pegasus log

No log files available

mmatyas commented 3 years ago

Thanks for the report! I'll see if I can fix this next week.

mmatyas commented 3 years ago

Tried it on my Pi Zero and can confirm the issue. This sounds like a compilation issue, so I've tried to cross-compile a simple Hello World C program, but to my surprise, neither the GCC provided by the distro (tested with 9.3), nor ARM's own toolchains (tested with 8.3-2019.03 and 10.2-2020.11) could compile a working binary: every time the program crashed with illegal instruction or segmentation fault too.

Without a working compiler I can't build a working Pegasus either. I'll see if I can make a custom GCC.

PixelGirl commented 3 years ago

I ran into this exact same issue trying to run Pegasus on the Pi Zero. Hope it gets fixed soon.

mmatyas commented 3 years ago

Just for future reference, here are the methods I've tried so far:

Unfortunately, while all of them could compile a basic "Hello World" program, none of the created executables work on the actual Pi Zero hardware.