From owner-freebsd-ports@freebsd.org Mon Aug 3 23:30:16 2015 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 589E89B2A54 for ; Mon, 3 Aug 2015 23:30:16 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from relay1.ox.registrar-servers.com (relay1.ox.registrar-servers.com [199.188.203.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registrar-servers.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A84AE27; Mon, 3 Aug 2015 23:30:15 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from imap1-1.ox.privateemail.com (imap1-1.ox.privateemail.com [198.187.29.239]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay.ox.registrar-servers.com (Postfix) with ESMTPS id 629DEB011B; Mon, 3 Aug 2015 19:24:10 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by imap1.ox.privateemail.com (Postfix) with ESMTP id CEDEAB00091; Mon, 3 Aug 2015 19:24:02 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from imap1.ox.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k7nmbApsSDEV; Mon, 3 Aug 2015 19:24:02 -0400 (EDT) Received: from daemonlab (106.Red-79-155-184.dynamicIP.rima-tde.net [79.155.184.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by imap1.ox.privateemail.com (Postfix) with ESMTPSA id 0DD43B00098; Mon, 3 Aug 2015 19:24:01 -0400 (EDT) Message-ID: <1438644237.7343.13.camel@fbsd.es> Subject: Re: lang/tcc unusable From: Carlos Jacobo Puga Medina To: Jung-uk Kim , "freebsd-ports@freebsd.org" Date: Tue, 04 Aug 2015 01:23:57 +0200 In-Reply-To: <55BFEAAA.4070008@FreeBSD.org> References: <1438633579.6572.13.camel@fbsd.es> <55BFD033.8070507@FreeBSD.org> <1438634467.7343.2.camel@fbsd.es> <55BFDCA0.8040006@FreeBSD.org> <1438638022.7343.7.camel@fbsd.es> <55BFEAAA.4070008@FreeBSD.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-uj44wW4OmCha03GDMYWU" X-Mailer: Evolution 3.16.4 (3.16.4-2.fc22) Mime-Version: 1.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 23:30:16 -0000 --=-uj44wW4OmCha03GDMYWU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El lun, 03-08-2015 a las 18:26 -0400, Jung-uk Kim escribi=C3=B3: > On 08/03/2015 17:40, Carlos Jacobo Puga Medina wrote: > > El lun, 03-08-2015 a las 17:26 -0400, Jung-uk Kim escribi=C3=B3: > > > On 08/03/2015 16:41, Carlos Jacobo Puga Medina wrote: > > > > El lun, 03-08-2015 a las 16:33 -0400, Jung-uk Kim escribi=C3=B3: > > > >=20 > > > > Hi Jung-uk, > > > > > On 08/03/2015 16:26, Carlos Jacobo Puga Medina wrote: > > > > > > Hi people, > > > > > >=20 > > > > > > Recently I added amd64 support to TinyCC, but I encounter > > > > > > the following problem trying to compile a simple code. > > > > > >=20 > > > > > > #include > > > > > >=20 > > > > > > int main(){ printf("hello, world!\n); return 0; } > > > > > >=20 > > > > > > % tcc -o hello hello.c In file included from hello.c:1:=20 > > > > > > /usr/include/stdio.h:63: error: ';' expected (got > > > > > > "va_list") > > > > > >=20 > > > > > > I guess that some change introduced in 'stdio.h' causes > > > > > > this weird behaviour. Last time that TCC worked fine was on > > > > > > FreeBSD 9.1 -RELEASE/i386. > > > > > >=20 > > > > > > Also I reported this problem in the tinycc-devel mailing > > > > > > list [1] > > > > > >=20 > > > > > > Any thoughts? > > > > >=20 > > > > > I haven't tried tcc but '"' is missing for the printf(). > > > >=20 > > > > Yes, it was a typo here :) > > >=20 > > > It seems it's a known tcc bug: > > >=20 > > > http://savannah.nongnu.org/bugs/?30966 > > >=20 > >=20 > > Is there something that we can do about it? > >=20 > > Thanks for pointing me, jkim@ >=20 > It seems there is no easy way to fix this problem without touching=20 > src > tree, e.g., >=20 > --- sys/x86/include/_types.h (revision 286256) > +++ sys/x86/include/_types.h (working copy) > @@ -152,7 +152,7 @@ > */ > #ifdef __GNUCLIKE_BUILTIN_VARARGS > typedef __builtin_va_list __va_list; /*=20 > internally known to gcc */ > -#elif defined(lint) > +#elif defined(__TINYC__) || defined(lint) > typedef char * __va_list; /*=20 > pretend */ > #endif > #if defined(__GNUC_VA_LIST_COMPATIBILITY) &&=20 > !defined(__GNUC_VA_LIST) \ >=20 If you need doing some changes into the src tree. So, what do you recommend in such case?=20 Would it be much trouble add the necessary changes to run TCC again? Furthermore, TinyCC developer has ignored this issue completely. Cheers, -- Carlos Jacobo Puga Medina PGP fingerprint =3D C60E 9497 5302 793B CC2D BB89 A1F3 5D66 E6D0 5453 --=-uj44wW4OmCha03GDMYWU 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 v1 iQEcBAABCAAGBQJVv/gOAAoJEKHzXWbm0FRTzNQH/1yuKLlyuPg/WqO91+XOh+Qg uwDVHDiDljlp7jcs53wwJnDnzUpR3xKAWrTDvzss8q/dKFLhWzy4YwUbU1DnDlxH R4tQqpHyd3TcfSoE3L2ioWdzSPpgFo03xxjllkYJ3/BlCtF3q1+AuSbtQnQRm2ut ARDh9AzRvSCEGW6Ydk6ULXt0SCDwgVhOtkJ3ia+h1N4JkU/EbvAKkprbfw24KRp4 EM5aXkVmTBoVSTwr0CWcUdVebir7wYivYZC6Wi6w7g+kfy6EXydgDedGAhLwCJSW fqtlcPxn9RlzC5BS0QT8/E4f38ONDY9wzfwG/3BqROAiOYpkKasFhMTTG7/mnk8= =OC4d -----END PGP SIGNATURE----- --=-uj44wW4OmCha03GDMYWU--