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

make is whining about undeclared functions, refuses to build #84

Open
rari-teh opened this issue Mar 30, 2023 · 3 comments
Open

make is whining about undeclared functions, refuses to build #84

rari-teh opened this issue Mar 30, 2023 · 3 comments

Comments

@rari-teh
Copy link

rari-teh commented Mar 30, 2023

I've spent almost two hours trying to compile this thing and nothing works. I've installed all dependencies according to the long-ignored pull requests. My only conclusion is that sometime since last October an update to make broke this workflow, because ISO C99 compliance now seems to be mandatory and make errors out and refuses to proceed because of calls to undeclared functions stat and mkdir on pc_main.c and no switches will convince it to budge. Scouring the usual suspects, nobody seems to have uploaded the built APK anywhere either. Help?

Screenshot_20230330-012134

@andrewjose
Copy link

I fixed this by adding the following flags to lines 580 and 581 of the Makefile: -Wno-error=implicit-function-declaration and -Wno-error=incompatible-function-pointer-types

I added the first flag and got past the issue in your screenshot, and subsequently ran into the second error and had to suppress that as well.

@leahstirling
Copy link

leahstirling commented Aug 30, 2023

I fixed this by adding the following flags to lines 580 and 581 of the Makefile: -Wno-error=implicit-function-declaration and -Wno-error=incompatible-function-pointer-types

I added the first flag and got past the issue in your screenshot, and subsequently ran into the second error and had to suppress that as well.

I tried adding these flags, but the Makefile gets overwritten every time. As soon as I try to run the command to build I get the error:

error: Your local changes to the following files would be overwritten by checkout:

Makefile

Please commit your changes or stash them before you switch branches.

Aborting

Did you also face this issue, and if so how did you overcome it?

@Algiuxs
Copy link

Algiuxs commented May 18, 2024

I fixed this by adding the following flags to lines 580 and 581 of the Makefile: -Wno-error=implicit-function-declaration and -Wno-error=incompatible-function-pointer-types

I added the first flag and got past the issue in your screenshot, and subsequently ran into the second error and had to suppress that as well.

I tried adding these flags, but the Makefile gets overwritten every time. As soon as I try to run the command to build I get the error:

error: Your local changes to the following files would be overwritten by checkout:

Makefile

Please commit your changes or stash them before you switch branches.

Aborting

Did you also face this issue, and if so how did you overcome it?

Just don't use android builder, do it manually, the builder is broken, overwrites everything, doesn't install all of dependencies, throws errors.

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

4 participants