sm64pc / sm64ex

Fork of https://github.com/sm64-port/sm64-port with additional features.
1.57k stars 486 forks source link

[Linux /Arm] - Tips of solving pi zero make fails #476

Open retropieuser opened 3 years ago

retropieuser commented 3 years ago

Now I know officially only pi3b+ and pi4 are supported, but just wondering if there's anything that someone can suggest that might help compiling for a pi0w or other pi versions?

make: Leaving directory '/home/pi/sm64pc/tools' gcc -c -march=armv6zk+fp -mfpu=vfp -Ofast -I include -I build/us_pc -I build/us_pc/include -I src -I . -DRAPI_GL=1 -DWAPI_SDL2=1 -DAAPI_SDL2=1 -DCAPI_SDL2=1 -DHAVE_SDL2=1sdl2-config --cflags-DVERSION_US -DNON_MATCHING -DAVOID_UB -DUSE_GLES -DF3DEX_GBI_2E -fno-strict-aliasing -fwrapv -DEXT_OPTIONS_MENU -o build/us_pc/src/engine/behavior_script.o src/engine/behavior_script.c gcc -c -march=armv6zk+fp -mfpu=vfp -Ofast -I include -I build/us_pc -I build/us_pc/include -I src -I . -DRAPI_GL=1 -DWAPI_SDL2=1 -DAAPI_SDL2=1 -DCAPI_SDL2=1 -DHAVE_SDL2=1sdl2-config --cflags-DVERSION_US -DNON_MATCHING -DAVOID_UB -DUSE_GLES -DF3DEX_GBI_2E -fno-strict-aliasing -fwrapv -DEXT_OPTIONS_MENU -o build/us_pc/src/engine/surface_collision.o src/engine/surface_collision.c gcc: error: unrecognized argument in option '-march=armv6zk+fp' gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native Makefile:1034: recipe for target 'build/us_pc/src/engine/behavior_script.o' failed make: *** [build/us_pc/src/engine/behavior_script.o] Error 1 make: *** Waiting for unfinished jobs....

Hyenadae commented 2 years ago

Hi/Hy! I'm the original creator / porter / fixer for Super Mario 64 PC Pi / OpenGL ES. Note that you should try to run this on the freshest, latest Raspbian 10 and see if the pi.sh script I wrote works still.

It's been over a year, but I did all the porting on a Pi 1 (yep!) with 512MB of RAM and HDMI out for my system. Your GCC seems to be complaining that -march (the optimization flags) do not exist. What's strange is that those worked on my Pi 1's GCC, which was Debian 10 / Raspbian from May 2020 with the latest repos installed and updated.

It would really help if you could post your Raspbian release version (/etc/lsb-release I think) and also gcc -v, on top of inxi -Gx in a terminal so I can see what your system configuration is.

I do recommend you upgrade to a Pi 0 W2 (latest tiny one) or a Raspberry Pi 2, and then run the script to set up the 'desktop free' environment for maximum speed and GPU acceleration.