Date: Thu, 14 Apr 2016 14:39:32 +0200 From: Carlos J Puga Medina <cpm@fbsd.es> To: Ben Wiederhake <ben.wiederhake@gmail.com>, Waitman Gobble <gobble.wa@gmail.com> Cc: "freebsd-ports@freebsd.org" <ports@freebsd.org> Subject: Re: FreeBSD Port: tcc-0.9.26_3 Message-ID: <1460637572.1406.13.camel@fbsd.es> In-Reply-To: <570F5BA8.1020504@gmail.com> References: <570EE298.401@gmail.com> <CAFuo_fy7gvxDQsn9ueod4T3HSfU8_TRKm4wrpd1n5zT94%2Bypzg@mail.gmail.com> <570F5BA8.1020504@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-ZZh7CB7h9/6U8zuu7EUO Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-04-14 at 10:58 +0200, Ben Wiederhake wrote: Hi, > Hello, >=20 > >=20 > > >=20 > > > "#include <stdint.h>" seems to be impossible with tcc on FreeBSD. > > >=20 > > > Steps to reproduce: > > > Try to compile the following program: > > > """ > > > #include <stdint.h> > > > #include <stdio.h> > > > int main(void){printf("Hello world\n");} > > > """ > > >=20 > > > Excepted results: > > > Compilation finishes with no errors. > > >=20 > > > 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? > >=20 > > # 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=C2= =A0 > same spot. >=20 > 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. >=20 > Again: on Debian, it works, and the provided headers are the same > files=C2=A0 > (slightly different content, but that shouldn't matter). >=20 > Does it work on your machine?=C2=A0=C2=A0If so, what could I have done wr= ong? >=20 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]=C2=A0https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202093 [2]=C2=A0https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201749 I'll take a look closely ASAP. Thanks for reporting! --=C2=A0 Carlos Jacobo Puga Medina <cpm@fbsd.es> PGP fingerprint =3D C60E 9497 5302 793B CC2D BB89 A1F3 5D66 E6D0 5453 --=-ZZh7CB7h9/6U8zuu7EUO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJXD4+FXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDNjBFOTQ5NzUzMDI3OTNCQ0MyREJCODlB MUYzNUQ2NkU2RDA1NDUzAAoJEKHzXWbm0FRT8qkH/04claz4DIr1B1vMAXYsUwVF pz5HGPKxUfHioqNvRzRt1nUatqDNqODJjg1BszIi1aKj+f5siajYUN8l/PmC3CAO FnT72afzayQNGL1j7kl9jfYRhD+sBCnMWuNV8gXJ1wxxlloRL57prMY/a+kg/L04 ZiQrxEoNDMmZMCNj97kv/qL/GZceH7Ox/mhrD+pKyE8OmBy3VLc6sYdKVoef+fHE ZekJIATK6bADXCzi4bdt575gzDJMW9J0k7xzeIbYxsD155G5nA+dSZqNv3oW5QS7 zVHEvpIflr1zdp4AkUkVyUeDOB5O2g6AVF1TKBeJvGF24dGSwpHRKsQAHQwWikA= =7fq1 -----END PGP SIGNATURE----- --=-ZZh7CB7h9/6U8zuu7EUO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1460637572.1406.13.camel>