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

will not compile #8

Open
tomcarroll12 opened this issue Apr 22, 2023 · 4 comments
Open

will not compile #8

tomcarroll12 opened this issue Apr 22, 2023 · 4 comments

Comments

@tomcarroll12
Copy link

didnt compile.
got this error in terminal when compiling
home/tom/Ninecraft/ninecraft/src/main.c:560:23: warning: ‘struct aFILE’ declared inside parameter list will not be visible outside of this definition or declaration
560 | int __my_srget(struct aFILE *astream) {
| ^~~~~
/home/tom/Ninecraft/ninecraft/src/main.c: In function ‘missing_hook’:
/home/tom/Ninecraft/ninecraft/src/main.c:601:5: warning: ‘ftime’ is deprecated [-Wdeprecated-declarations]
601 | hybris_hook("ftime", ftime);
| ^~~~~~~~~~~
In file included from /home/tom/Ninecraft/ninecraft/src/main.c:8:
/usr/include/arm-linux-gnueabihf/sys/timeb.h:39:12: note: declared here
39 | extern int ftime (struct timeb *__timebuf)
| ^~~~~
/home/tom/Ninecraft/ninecraft/src/main.c: In function ‘main’:
/home/tom/Ninecraft/ninecraft/src/main.c:914:30: error: ‘NINECRAFTAPP_SIZE_0_7_0’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_0’?
914 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_0;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_0
/home/tom/Ninecraft/ninecraft/src/main.c:914:30: note: each undeclared identifier is reported only once for each function it appears in
/home/tom/Ninecraft/ninecraft/src/main.c:916:30: error: ‘NINECRAFTAPP_SIZE_0_7_1’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_6_1’?
916 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_1;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_6_1
/home/tom/Ninecraft/ninecraft/src/main.c:918:30: error: ‘NINECRAFTAPP_SIZE_0_7_2’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_2’?
918 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_2;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_2
/home/tom/Ninecraft/ninecraft/src/main.c:920:30: error: ‘NINECRAFTAPP_SIZE_0_7_3’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_3’?
920 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_3;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_3
/home/tom/Ninecraft/ninecraft/src/main.c:922:30: error: ‘NINECRAFTAPP_SIZE_0_7_4’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_0’?
922 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_4;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_0
/home/tom/Ninecraft/ninecraft/src/main.c:924:30: error: ‘NINECRAFTAPP_SIZE_0_7_5’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_0’?
924 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_5;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_0
/home/tom/Ninecraft/ninecraft/src/main.c:926:30: error: ‘NINECRAFTAPP_SIZE_0_7_6’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_0’?
926 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_7_6;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_0
/home/tom/Ninecraft/ninecraft/src/main.c:928:30: error: ‘NINECRAFTAPP_SIZE_0_8_0’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_3_0’?
928 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_8_0;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_3_0
/home/tom/Ninecraft/ninecraft/src/main.c:930:30: error: ‘NINECRAFTAPP_SIZE_0_8_1’ undeclared (first use in this function); did you mean ‘NINECRAFTAPP_SIZE_0_6_1’?
930 | ninecraft_app_size = NINECRAFTAPP_SIZE_0_8_1;
| ^~~~~~~~~~~~~~~~~~~~~~~
| NINECRAFTAPP_SIZE_0_6_1
/home/tom/Ninecraft/ninecraft/src/main.c:1049:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_8_1’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_1’?
1049 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_8_1;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_1
/home/tom/Ninecraft/ninecraft/src/main.c:1051:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_8_0’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_0’?
1051 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_8_0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_0
/home/tom/Ninecraft/ninecraft/src/main.c:1053:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_6’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_0’?
1053 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_6;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_0
/home/tom/Ninecraft/ninecraft/src/main.c:1055:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_5’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_0’?
1055 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_5;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_0
/home/tom/Ninecraft/ninecraft/src/main.c:1057:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_4’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_0’?
1057 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_4;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_0
/home/tom/Ninecraft/ninecraft/src/main.c:1059:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_3’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_3_3’?
1059 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_3;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_3_3
/home/tom/Ninecraft/ninecraft/src/main.c:1061:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_2’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_2’?
1061 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_2;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_2
/home/tom/Ninecraft/ninecraft/src/main.c:1063:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_1’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_1’?
1063 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_1;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_1
/home/tom/Ninecraft/ninecraft/src/main.c:1065:38: error: ‘MINECRAFT_ISGRABBED_OFFSET_0_7_0’ undeclared (first use in this function); did you mean ‘MINECRAFT_ISGRABBED_OFFSET_0_1_0’?
1065 | minecraft_isgrabbed_offset = MINECRAFT_ISGRABBED_OFFSET_0_7_0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MINECRAFT_ISGRABBED_OFFSET_0_1_0
gmake[3]: *** [ninecraft/CMakeFiles/ninecraft.dir/build.make:251: ninecraft/CMakeFiles/ninecraft.dir/src/main.c.o] Error 1
gmake[3]: Leaving directory '/home/tom/Ninecraft/build-arm'
gmake[2]: *** [CMakeFiles/Makefile2:333: ninecraft/CMakeFiles/ninecraft.dir/all] Error 2
gmake[2]: Leaving directory '/home/tom/Ninecraft/build-arm'
gmake[1]: *** [Makefile:149: all] Error 2
gmake[1]: Leaving directory '/home/tom/Ninecraft/build-arm'
make: *** [Makefile:16: build-arm] Error 2

@MFDGaming
Copy link
Member

What distro is this

@tomcarroll12
Copy link
Author

i am on raspberry pi os.

@MFDGaming
Copy link
Member

MFDGaming commented Apr 28, 2023

i am on raspberry pi os.

If its ARMv6 it won't work

@MFDGaming
Copy link
Member

if you use arm64/aarch64 or armhf/armv7 i fixed the issue i think

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