grischka <[email protected]> wrote:
> Solution for what problem, again ???
This problem:
tcctest.c:1087: error: 'uintptr_t' undeclared
But as it turns out this only happens when you use a slightly older tcc for CC,
for some reason the tcc from mob includes its own stddef.h over libc's.
Unlike glibc, musl does ship a stddef.h, and both clang and gcc include it
instead of their own version.
The attached program compiles with tcc from mob, clang, gcc fail because
uintptr_t is undeclared.
Which puts us back at fixing stddef.h, and including libc's stddef over tcc's
own version.
> But what is wrong with "the makefile" ?
apart from not being a POSIX makefile, the tests/Makefile doesn't add an
include path to stdint.h for one of the tests, which results in this error when
modifying tcctest.c to always include stdint.h and removing the (u)intptr_t
from stddef.h:
------------ cross-test ------------
. i386
. i386-win32
tcctest.c:65: error: include file 'stdint.h' not found
make[2]: *** [Makefile:295: cross-test] Error 1
#include <stddef.h>
#ifdef __NEED_size_t
#warning "this is musl"
#endif
int main() {
uintptr_t bla = 0;
}
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel