I have postmarketOS 23.06 installed which is based on Alpine Linux 3.18 on the ASUS MeMO Pad 7 ME176CX
It is a x86 tablet and I use the OS for x86_64
and this distribution uses musl, not glibc and not gnu core utils, but busybox
If you try to run the latest release from the website it says:
Spoiler
asus-me176c:/opt/ClassiCube$ ./ClassiCube
-ash: ./ClassiCube: not found
asus-me176c:/opt/ClassiCube$ bash ClassiCube
ClassiCube: ClassiCube: cannot execute binary file
asus-me176c:/opt/ClassiCube$ sh ClassiCube
ClassiCube: line 5: syntax error: unexpected ")"
asus-me176c:/opt/ClassiCube$ ash ClassiCube
ClassiCube: line 5: syntax error: unexpected ")"
asus-me176c:/opt/ClassiCube$
And if you try to built it, it will:
Spoiler
asus-me176c:/tmp/ClassiCube/src$ gcc *.c -o ClassiCube -rdynamic -lm -lpthread -lX11 -lXi -lGL -ldl Graphics_GL1.c: In function 'GL_SetupVbColoured_Range': Graphics_GL1.c:643:72:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
643 | _glVertexPointer(3, GL_FLOAT, SIZEOF_VERTEX_COLOURED, (void*)(VB_PTR + offset));
| ^ Graphics_GL1.c:644:72:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
644 | _glColorPointer(4, GL_UNSIGNED_BYTE, SIZEOF_VERTEX_COLOURED, (void*)(VB_PTR + offset + 12));
| ^ Graphics_GL1.c: In function 'GL_SetupVbTextured_Range': Graphics_GL1.c:649:72:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
649 | _glVertexPointer(3, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset));
| ^ Graphics_GL1.c:650:72:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
650 | _glColorPointer(4, GL_UNSIGNED_BYTE, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 12));
| ^ Graphics_GL1.c:651:72:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
651 | _glTexCoordPointer(2, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 16));
| ^ Graphics_GL1.c: In function 'Gfx_DrawIndexedTris_T2fC4b': Graphics_GL1.c:700:70:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
700 | _glVertexPointer(3, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset));
| ^ Graphics_GL1.c:701:70:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
701 | _glColorPointer(4, GL_UNSIGNED_BYTE, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 12));
| ^ Graphics_GL1.c:702:70:warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
702 | _glTexCoordPointer(2, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 16));
| ^
In file included from Http_Worker.c:3: _HttpBase.h: In function 'HttpRequest_Free': _HttpBase.h:17:25:warning: passing argument 1 of 'Mem_Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
17 | Mem_Free(request->error);
| ~~~~~~~^~~~~~~
In file included from _HttpBase.h:3: Platform.h:140:29:note: expected 'void *' but argument is of type 'const char *'
140 | CC_API void Mem_Free(void* mem);
| ~~~~~~^~~ Http_Worker.c: In function 'HttpBackend_Do': Http_Worker.c:409:29:warning: passing argument 1 of 'Mem_Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
409 | Mem_Free(req->error);
| ~~~^~~~~~~ Platform.h:140:29:note: expected 'void *' but argument is of type 'const char *'
140 | CC_API void Mem_Free(void* mem);
| ~~~~~~^~~ Logger.c:369:10:fatal error: execinfo.h: No such file or directory
369 | #include <execinfo.h>
| ^~~~~~~~~~~~
compilation terminated. Resources.c: In function 'SoundPatcher_WriteWav': Resources.c:211:39:warning: passing argument 2 of 'Stream_Write' from incompatible pointer type [-Wincompatible-pointer-types]
211 | res = Stream_Write(s, samples, count * 2);
| ^~~~~~~
| |
| cc_int16 * {aka short int *}
In file included from Resources.c:7: Stream.h:44:65:note: expected 'const cc_uint8 *' {aka 'const unsigned char *'} but argument is of type 'cc_int16 *' {aka 'short int *'}
44 | CC_API cc_result Stream_Write(struct Stream* s, const cc_uint8* buffer, cc_uint32 count);
| ~~~~~~~~~~~~~~~~^~~~~~ Resources.c: At top level: Resources.c:416:73:warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
416 | { "animations.txt", RESOURCE_TYPE_CONST, sizeof(ANIMS_TXT) - 1, (const cc_uint8*)ANIMS_TXT },
| ^ Window_X11.c: In function 'Window_GetWindowState': Window_X11.c:397:47:warning: passing argument 12 of 'XGetWindowProperty' from incompatible pointer type [-Wincompatible-pointer-types]
397 | &prop_format, &items, &after, &data);
| ^~~~~
| |
| Atom ** {aka long unsigned int **}
In file included from Window_X11.c:10: /usr/include/X11/Xlib.h:2702:5:note: expected 'unsigned char **' but argument is of type 'Atom **' {aka 'long unsigned int **'}
2702 | unsigned char** /* prop_return */
| ^~~~~~~~~~~~~~~
asus-me176c:/tmp/ClassiCube/src$
All dependencies for the build are set
At that: asus-me176c:/tmp/ClassiCube/src$ find /usr/include -name "*execinfo*"
asus-me176c:/tmp/ClassiCube/src$
There is nothing in the repositories called execinfo
I have postmarketOS 23.06 installed which is based on Alpine Linux 3.18 on the ASUS MeMO Pad 7 ME176CX
It is a x86 tablet and I use the OS for x86_64
and this distribution uses musl, not glibc and not gnu core utils, but busybox
If you try to run the latest release from the website it says:
asus-me176c:/opt/ClassiCube$ ./ClassiCube
-ash: ./ClassiCube: not found
asus-me176c:/opt/ClassiCube$ bash ClassiCube
ClassiCube: ClassiCube: cannot execute binary file
asus-me176c:/opt/ClassiCube$ sh ClassiCube
ClassiCube: line 5: syntax error: unexpected ")"
asus-me176c:/opt/ClassiCube$ ash ClassiCube
ClassiCube: line 5: syntax error: unexpected ")"
asus-me176c:/opt/ClassiCube$
And if you try to built it, it will:
asus-me176c:/tmp/ClassiCube/src$ gcc *.c -o ClassiCube -rdynamic -lm -lpthread -lX11 -lXi -lGL -ldl
Graphics_GL1.c: In function 'GL_SetupVbColoured_Range':
Graphics_GL1.c:643:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
643 | _glVertexPointer(3, GL_FLOAT, SIZEOF_VERTEX_COLOURED, (void*)(VB_PTR + offset));
| ^
Graphics_GL1.c:644:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
644 | _glColorPointer(4, GL_UNSIGNED_BYTE, SIZEOF_VERTEX_COLOURED, (void*)(VB_PTR + offset + 12));
| ^
Graphics_GL1.c: In function 'GL_SetupVbTextured_Range':
Graphics_GL1.c:649:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
649 | _glVertexPointer(3, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset));
| ^
Graphics_GL1.c:650:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
650 | _glColorPointer(4, GL_UNSIGNED_BYTE, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 12));
| ^
Graphics_GL1.c:651:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
651 | _glTexCoordPointer(2, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 16));
| ^
Graphics_GL1.c: In function 'Gfx_DrawIndexedTris_T2fC4b':
Graphics_GL1.c:700:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
700 | _glVertexPointer(3, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset));
| ^
Graphics_GL1.c:701:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
701 | _glColorPointer(4, GL_UNSIGNED_BYTE, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 12));
| ^
Graphics_GL1.c:702:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
702 | _glTexCoordPointer(2, GL_FLOAT, SIZEOF_VERTEX_TEXTURED, (void*)(VB_PTR + offset + 16));
| ^
In file included from Http_Worker.c:3:
_HttpBase.h: In function 'HttpRequest_Free':
_HttpBase.h:17:25: warning: passing argument 1 of 'Mem_Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
17 | Mem_Free(request->error);
| ~~~~~~~^~~~~~~
In file included from _HttpBase.h:3:
Platform.h:140:29: note: expected 'void *' but argument is of type 'const char *'
140 | CC_API void Mem_Free(void* mem);
| ~~~~~~^~~
Http_Worker.c: In function 'HttpBackend_Do':
Http_Worker.c:409:29: warning: passing argument 1 of 'Mem_Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
409 | Mem_Free(req->error);
| ~~~^~~~~~~
Platform.h:140:29: note: expected 'void *' but argument is of type 'const char *'
140 | CC_API void Mem_Free(void* mem);
| ~~~~~~^~~
Logger.c:369:10: fatal error: execinfo.h: No such file or directory
369 | #include <execinfo.h>
| ^~~~~~~~~~~~
compilation terminated.
Resources.c: In function 'SoundPatcher_WriteWav':
Resources.c:211:39: warning: passing argument 2 of 'Stream_Write' from incompatible pointer type [-Wincompatible-pointer-types]
211 | res = Stream_Write(s, samples, count * 2);
| ^~~~~~~
| |
| cc_int16 * {aka short int *}
In file included from Resources.c:7:
Stream.h:44:65: note: expected 'const cc_uint8 *' {aka 'const unsigned char *'} but argument is of type 'cc_int16 *' {aka 'short int *'}
44 | CC_API cc_result Stream_Write(struct Stream* s, const cc_uint8* buffer, cc_uint32 count);
| ~~~~~~~~~~~~~~~~^~~~~~
Resources.c: At top level:
Resources.c:416:73: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
416 | { "animations.txt", RESOURCE_TYPE_CONST, sizeof(ANIMS_TXT) - 1, (const cc_uint8*)ANIMS_TXT },
| ^
Window_X11.c: In function 'Window_GetWindowState':
Window_X11.c:397:47: warning: passing argument 12 of 'XGetWindowProperty' from incompatible pointer type [-Wincompatible-pointer-types]
397 | &prop_format, &items, &after, &data);
| ^~~~~
| |
| Atom ** {aka long unsigned int **}
In file included from Window_X11.c:10:
/usr/include/X11/Xlib.h:2702:5: note: expected 'unsigned char **' but argument is of type 'Atom **' {aka 'long unsigned int **'}
2702 | unsigned char** /* prop_return */
| ^~~~~~~~~~~~~~~
asus-me176c:/tmp/ClassiCube/src$
All dependencies for the build are set
At that: asus-me176c:/tmp/ClassiCube/src$ find /usr/include -name "*execinfo*"
asus-me176c:/tmp/ClassiCube/src$
There is nothing in the repositories called execinfo
Share this post
Link to post