captain-amygdala / pistorm

68k Hardware Emulator
MIT License
737 stars 103 forks source link

Raspberry Pi 4B problem with make #64

Closed physcopanda closed 1 year ago

physcopanda commented 1 year ago

Hi there - I can't seem to build the software on my Pi for some reason. It's a brand new Pi 4B arrived today. I've done a full upgrade on my pi and installed everything the instructions ask for.

The Raspberry Pi OS I started with was: Raspberry Pi OS Lite Release date: September 22nd 2022 System: 64-bit Kernel version: 5.15 Debian version: 11 (bullseye)

when running make, I get this error:

pi@jamie1200pi:~/pistorm $ make gcc -Wall -Wextra -pedantic -I. -I./raylib -I/opt/vc/include/ -march=armv8-a -mfloat-abi=hard -mfpu=neon-fp-armv8 -O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -lstdc++ -c -o emulator.o emulator.c gcc: error: unrecognized command-line option ‘-mfloat-abi=hard’ gcc: error: unrecognized command-line option ‘-mfpu=neon-fp-armv8’ make: *** [: emulator.o] Error 1

Hope you can help

LemaruX commented 1 year ago

Are you using the 64bit version of PiOS? If so you need to switch to using the 32bit version

On Fri, 27 Jan 2023, 13:50 Jamie Howard, @.***> wrote:

Hi there - I can't seem to build the software on my Pi for some reason. It's a brand new Pi 4B arrived today. I've done a full upgrade on my pi and installed everything the instructions ask for.

The Raspberry Pi OS I started with was: Raspberry Pi OS Lite Release date: September 22nd 2022 System: 64-bit Kernel version: 5.15 Debian version: 11 (bullseye)

when running make, I get this error: @.:~/pistorm $ make gcc -Wall -Wextra -pedantic -I. -I./raylib -I/opt/vc/include/ -march=armv8-a -mfloat-abi=hard -mfpu=neon-fp-armv8 -O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -lstdc++ -c -o emulator.o emulator.c gcc: error: unrecognized command-line option ‘-mfloat-abi=hard’ gcc: error: unrecognized command-line option ‘-mfpu=neon-fp-armv8’ make: [: emulator.o] Error 1

Hope you can help

— Reply to this email directly, view it on GitHub https://github.com/captain-amygdala/pistorm/issues/64, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHEVTCVDHKKT2FORI22EIDWUPHATANCNFSM6AAAAAAUIXBBCM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

physcopanda commented 1 year ago

ahaa yea thats the problem, many thanks

amiga23 commented 1 year ago

you can remove ‘-mfloat-abi=hard’ and ‘-mfpu=neon-fp-armv8’ everywhere in the Makefile. buptest and emulator work generally, but piscsi does not work. Maybe it is some pointer size issue, did not yet investigate deeper. EDIT: For the record, I did test with RPi3 on manjaro linux with gcc 12

LemaruX commented 1 year ago

PiStorm requires 32bit PiOS.