On Thu, 2016-04-14 at 10:58 +0200, Ben Wiederhake wrote: Hi, > Hello, > > > > > > > > > "#include <stdint.h>" seems to be impossible with tcc on FreeBSD. > > > > > > Steps to reproduce: > > > Try to compile the following program: > > > """ > > > #include <stdint.h> > > > #include <stdio.h> > > > int main(void){printf("Hello world\n");} > > > """ > > > > > > Excepted results: > > > Compilation finishes with no errors. > > > > > > Actual results: > > > """ > > > In file included from foo.c:1: > > > In file included from /usr/include/stdint.h:33: > > > In file included from /usr/include/sys/_types.h:33: > > > In file included from /usr/include/machine/_types.h:6: > > > /usr/include/x86/_types.h:161: error: too many basic types > > > """ > > > And compilation fails. > > You want to be using the headers provided with tcc? > > > > # tcc -run -I/usr/local/lib/tcc/include test.c > > Hello world > Doesn't work either; it fails with the exact same error in the exact > same spot. > > Maybe that's because: > - tcc's 'include' are already on the search path by default (see 'man > tcc') > - there's no 'stdio.h' nor 'stdint.h' among tcc's provided headers. > > Again: on Debian, it works, and the provided headers are the same > files > (slightly different content, but that shouldn't matter). > > Does it work on your machine? If so, what could I have done wrong? >
Probably, you want to check out the following PRs to know how we try to fix tcc in due course. So, tcc should compile but linking is broken. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202093 [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201749 I'll take a look closely ASAP. Thanks for reporting! -- Carlos Jacobo Puga Medina <c...@fbsd.es> PGP fingerprint = C60E 9497 5302 793B CC2D BB89 A1F3 5D66 E6D0 5453
signature.asc
Description: This is a digitally signed message part