FreeBSD Port: tcc-0.9.26_3

Carlos J Puga Medina cpm at fbsd.es
Thu Apr 14 12:39:50 UTC 2016


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 <cpm at fbsd.es>
PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160414/830daa12/attachment.sig>


More information about the freebsd-ports mailing list