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

Issues compiling on M2 Mac #283

Open
MMello396 opened this issue Dec 29, 2023 · 2 comments
Open

Issues compiling on M2 Mac #283

MMello396 opened this issue Dec 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MMello396
Copy link

MMello396 commented Dec 29, 2023

Describe your bug here. And how to reproduce it.

Was going through compiling for my laptop(M2 Mac Air) to play on the go and can not get it to compile following the instructions here on github.

BLUF: I think that i'm either experiancing some sort of mismatch in software versions or it's purely a symtom of trying this on an ARM Mac vs an intel mac.

These is are the issues I ran into while attempting to compile through the terminal:
Attempt 1: Followed the guide "to a T" and got this when trying to make:

src/messaging.c:2394:21: error: passing arguments to 'VWF_RenderSingle' without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
VWF_RenderSingle(TEXTCMD_PARAM(cmd));
^
In file included from src/messaging.c:1:
src/messaging.h:110:6: error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Werror,-Wdeprecated-non-prototype]
void VWF_RenderSingle();
^
src/messaging.c:2512:6: note: conflicting prototype is here
void VWF_RenderSingle(int c) { // 8ecab8
^
2 errors generated.
make: *** [src/messaging.o] Error 1

What is your build target?

Mac

@MMello396 MMello396 added the bug Something isn't working label Dec 29, 2023
@alexschwarz89
Copy link

Did you try CFLAGS="-Wno-deprecated-non-protoype" make ? (from: #251)

@MMello396
Copy link
Author

Fixed the issue. Should have dug through the issue history more. Thank you for the pointer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants