From owner-freebsd-ports@freebsd.org Mon Aug 3 22:26:51 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 2FDEA9B2904 for ; Mon, 3 Aug 2015 22:26:51 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E39828A for ; Mon, 3 Aug 2015 22:26:51 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx2.freebsd.org (Postfix) with ESMTP id BACF635F9; Mon, 3 Aug 2015 22:26:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: lang/tcc unusable To: Carlos Jacobo Puga Medina , "freebsd-ports@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> From: Jung-uk Kim X-Enigmail-Draft-Status: N1110 Message-ID: <55BFEAAA.4070008@FreeBSD.org> Date: Mon, 3 Aug 2015 18:26:50 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1438638022.7343.7.camel@fbsd.es> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 22:26:51 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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ó: >> 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ó: >>> >>> Hi Jung-uk, >>>> On 08/03/2015 16:26, Carlos Jacobo Puga Medina wrote: >>>>> Hi people, >>>>> >>>>> Recently I added amd64 support to TinyCC, but I encounter >>>>> the following problem trying to compile a simple code. >>>>> >>>>> #include >>>>> >>>>> int main(){ printf("hello, world!\n); return 0; } >>>>> >>>>> % tcc -o hello hello.c In file included from hello.c:1: >>>>> /usr/include/stdio.h:63: error: ';' expected (got >>>>> "va_list") >>>>> >>>>> 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. >>>>> >>>>> Also I reported this problem in the tinycc-devel mailing >>>>> list [1] >>>>> >>>>> Any thoughts? >>>> >>>> I haven't tried tcc but '"' is missing for the printf(). >>> >>> Yes, it was a typo here :) >> >> It seems it's a known tcc bug: >> >> http://savannah.nongnu.org/bugs/?30966 >> > > Is there something that we can do about it? > > Thanks for pointing me, jkim@ It seems there is no easy way to fix this problem without touching src tree, e.g., - --- 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; /* internally known to gcc */ - -#elif defined(lint) +#elif defined(__TINYC__) || defined(lint) typedef char * __va_list; /* pretend */ #endif #if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \ Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVv+qlAAoJEHyflib82/FGJ0YH/jX8EZnWenTM2BJEjLNrIA8O XjYIPgFWkL/DZF8GnTZYv0mcrP9UgxNix2U76PDTBN8n/xkBCIUJpUORysQqTlo5 olU4nVT5EMfVyO2YDKEsb5c+dDsWkE0MPt/t2HE+oPDmml75v3MnCZAQmgIp8VsO Peb8bhbJ913xECFcW4XhVqKMy+uCsX6tPW/2Epw+p/Ho8Id3RM4A7CBprVhkNkAp zAPe2/PxAH71m2HzCKq6tMVe4DZKyi708pry0ApbYXYa2+JIA2YXKCBX4ugYJgI0 K860//U30Zn4DeZ/VGxENa9xo+c56g0NcWvjO6qvTOSU1h2ItBVrsvQPBfmLTIQ= =zBRK -----END PGP SIGNATURE-----