Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on Mac OS Sonoma 14.3.1 #236

Open
tankrobbers opened this issue Feb 25, 2024 · 2 comments
Open

Errors on Mac OS Sonoma 14.3.1 #236

tankrobbers opened this issue Feb 25, 2024 · 2 comments

Comments

@tankrobbers
Copy link

I'm new to terminal and have this error when trying to compile on my Mac running Sonoma 14.3.1.

cc -I. -D_POSIX_C_SOURCE=200112L -DMODES_DUMP1090_VERSION="unknown" -DMODES_DUMP1090_VARIANT="dump1090-fa" -DMISSING_NANOSLEEP -DENABLE_CPUFEATURES -Icpu_features/include -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_HACKRF -DENABLE_SOAPYSDR -DSTARCH_MIX_X86 -O3 -g -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -Wformat-signedness -W -I/opt/local/include/ -I/opt/local/include/ -I/opt/local/include -I/opt/local/include/libhackrf -I/opt/local/include/libusb-1.0 -I/opt/local/include -c dump1090.c -o dump1090.o
error: unknown warning option '-Wformat-signedness' [-Werror,-Wunknown-warning-option]
make: *** [dump1090.o] Error 1

Can anybody tell me what I've done wrong and how to fix it.

Thanks
Rob

@kieran
Copy link

kieran commented Mar 2, 2024

I removed the flag from the Makefile and it built

--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ PROGNAME=dump1090
 DUMP1090_VERSION ?= unknown

 CFLAGS ?= -O3 -g
-DUMP1090_CFLAGS := -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -Wformat-signedness -W
+DUMP1090_CFLAGS := -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -W
 DUMP1090_CPPFLAGS := -I. -D_POSIX_C_SOURCE=200112L -DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\" -DMODES_DUMP1090_VARIANT=\"dump1090-fa\"

 LIBS = -lpthread -lm

@tankrobbers
Copy link
Author

Thanks, will give that a go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants