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

Is this project broken? #185

Open
freemouser opened this issue May 26, 2023 · 2 comments
Open

Is this project broken? #185

freemouser opened this issue May 26, 2023 · 2 comments

Comments

@freemouser
Copy link

freemouser commented May 26, 2023

I tried to compile this without success. Everything seems broken. I couldn't get a single library or arch to compile. All I get is:

Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).

The first problem i encountered is that more recent NDK's have removed make-standalone-toolchain.sh and replaced it with make_standalone_toolchain.py. But even after overcoming that hurdle, it seems zlib is failing. The error output above is entirely unhelpful.

Manually going into contrib//build and running make on zlib results in this error:

./zconf.h:421:14: fatal error: 'sys/types.h' file not found
include <sys/types.h> /* for off_t */

Which is odd considering /usr/include/sys/types.h is clearly there.

Other libs also fail for various reasons. Clang is working fine on the terminal and through Android studio. The only conclusion i can come to is that this project is outdated and broken.

@freemouser
Copy link
Author

freemouser commented May 26, 2023

After a lot of experimentation I found the problem and solution. 'types.h' is missing from the toolchain sysroot /usr/include directory for both x86 and x86_64. I copied my system '/usr/include/sys/types.h' to the toolchain directories and that seemed to fix the problem.

The second problem, which was completely masked by the erroneous description

Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).

Was due to the included toolchain's 'clang'/'clang50' dependency on libncurses.so.5:

./clang50: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I only discovered this by manually running it in the terminal . After installing the compat libs from the AUR It successfully compiles zlib.

pamac build ncurses5-compat-libs lib32-ncurses5-compat-libs

It would have been helpful had the initial error been more descriptive, but hopefully this helps others searching for the cause of it.

@freemouser
Copy link
Author

Unfortunately, it appears many of the module builds are broken - OpenSSL, Jpeg, Box2D. I was able to fix OpenSSL(changed version to 1.1.1q with updated hash) and Jpeg(updated hash), but not Box2D, where the branch no longer exists:

fatal: Remote branch master not found in upstream origin

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

1 participant