sm64pc / sm64ex

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

macOS Big Sur build error #447

Open jason5122 opened 4 years ago

jason5122 commented 4 years ago

Hi, I encounter this error when building on macOS 11.0.1:

Screen Shot 2020-11-28 at 3 25 28 AM

I ran brew install make mingw-w64 gcc sdl2 pkg-config glew glfw3 libusb before this. I've also mostly followed the instructions and troubleshooting in #26, #235, and #442, though all were unsuccessful. Can anyone help or reproduce? Thanks!

alex-free commented 4 years ago

https://github.com/sm64pc/sm64ex/issues/442#issuecomment-721208910

jason5122 commented 4 years ago

Thanks for the response, but I believe I tried building with -Wno-error (as you can see in the screenshot above), and #include <stdio.h> was already in the header of tools/aiff_extract_codebook.c. Do you know why I am still getting this error even with those steps?

alex-free commented 4 years ago

Thanks for the response, but I believe I tried building with -Wno-error (as you can see in the screenshot above), and #include <stdio.h> was already in the header of tools/aiff_extract_codebook.c. Do you know why I am still getting this error even with those steps?

Hmm, try to cd into the 'tools' directory and 'make clean'. Then try again. If that fails can you copy the contents of 'tools/aiff_extract_codebook.c' and paste it here?

jason5122 commented 4 years ago

Tried again after a fresh clone and no luck. Here is the output I get when running gmake OSX_BUILD=1: output.txt

Here is the aiff_extract_codebook.c: aiff_extract_codebook.c.zip

alex-free commented 4 years ago

Tried again after a fresh clone and no luck. Here is the output I get when running gmake OSX_BUILD=1: output.txt

Here is the aiff_extract_codebook.c: aiff_extract_codebook.c.zip

Thanks, this is so strange. Can you try adding:

-Wno-error=implicit-function-declaration

to the tools makefile instead of -Wno-error? If that fails, maybe you'll want to try using a different compiler then Apple clang as this is clang-specific AFAIK.

rawr51919 commented 3 years ago

My guess is that macOS 11+ needs the vsnprintf declared for this in order to fix this error

Xenthio commented 3 years ago

fixed in #489