miegl / PiFmAdv

Advanced Raspberry Pi FM transmitter with RDS encoding
GNU General Public License v3.0
484 stars 82 forks source link

gcc: error: unrecognized command-line option ‘-mfloat-abi=hard’ #101

Open cpnetserver opened 1 year ago

cpnetserver commented 1 year ago

Hi Miegl, with Raspberry Pi OS 11 (Bullseye) and Linux cptech 6.1.44-v8+ #1670 SMP PREEMPT Wed Aug 9 11:56:17 BST 2023 aarch64 GNU/Linux, after "make": gcc -Wall -Wno-multichar -std=gnu99 -c -g -O1 -march=armv7-a -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -ffast-math -DRASPI=4 rds.c gcc: error: unrecognized command-line option ‘-mfloat-abi=hard’ gcc: error: unrecognized command-line option ‘-mfpu=vfp’ make: *** [Makefile:36: rds.o] Error 1 Is there a solution...? Thanks for reply!

aaknitt commented 9 months ago

I had the same issue when attempting to build on a Pi4 using 64 bit OS.

I was able to build by replacing the makefile with the one from this pull request: https://github.com/miegl/PiFmAdv/pull/102