From owner-freebsd-ports@freebsd.org Thu Apr 14 12:39:50 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85201AECFBD for ; Thu, 14 Apr 2016 12:39:50 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 705B7199D for ; Thu, 14 Apr 2016 12:39:50 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: by mailman.ysv.freebsd.org (Postfix) id 6FAACAECFBC; Thu, 14 Apr 2016 12:39:50 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F47DAECFBB for ; Thu, 14 Apr 2016 12:39:50 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from mta4-2.ox.privateemail.com (mta4-2.ox.privateemail.com [192.64.116.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "privateemail.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5047F199C for ; Thu, 14 Apr 2016 12:39:50 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from [192.168.1.33] (unknown [80.31.163.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta4.ox.privateemail.com (Postfix) with ESMTPSA id C557E880105; Thu, 14 Apr 2016 08:39:41 -0400 (EDT) Message-ID: <1460637572.1406.13.camel@fbsd.es> Subject: Re: FreeBSD Port: tcc-0.9.26_3 From: Carlos J Puga Medina To: Ben Wiederhake , Waitman Gobble Cc: "freebsd-ports@freebsd.org" Date: Thu, 14 Apr 2016 14:39:32 +0200 In-Reply-To: <570F5BA8.1020504@gmail.com> References: <570EE298.401@gmail.com> <570F5BA8.1020504@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ZZh7CB7h9/6U8zuu7EUO" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 12:39:50 -0000 --=-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 " seems to be impossible with tcc on FreeBSD. > > >=20 > > > Steps to reproduce: > > > Try to compile the following program: > > > """ > > > #include > > > #include > > > 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 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--