[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tcc error msg compiling Abiword 2.2.2 - maybe a bug.

From: Parzival Herzog
Subject: Re: [Tinycc-devel] tcc error msg compiling Abiword 2.2.2 - maybe a bug.
Date: Tue, 25 Jan 2005 15:17:43 -0600
User-agent: KMail/1.7.1

On Monday 24 January 2005 22:37, Dave Dodge wrote:
> It's subtle.  The problem is that the code does this:
>   typedef ... SEP;
>   typedef ... sep;
>   {
>      SEP sep;  /* declare a local variable called "sep" via a typedef */
>   }

Your patch worked. Tinycc compiled most of Abisuite (very quickly), with only 
a few places in the wv module where gcc seems to provide implicit casts for 
some type mismatches , while tcc does not, e.g.:

tcc -I. -I../wv -I../wv/magick -I../wv/libole2  -DHAVE_CONFIG_H 
-DVERSION=\"1.0.3\" -DXMLCONFIG=\"/usr/local/share/wv/wvCon
fig.xml\" -DHTMLCONFIG=\"/usr/local/share/wv/wvHtml.xml\" 
-DWVDATADIR=\"/usr/local/share/wv\" -I/usr/include/libpng12     -
I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     
-g   -c ../wv/wvConfig.c
../wv/wvConfig.c:3572: cannot cast 'void(void *, const char *, const char **)' 
to 'void *(void *, const unsigned char *, co
nst unsigned char **)'

These I fixed,  but the build as a whole still failed because gcc accepts a 
"-pthread" option, while tcc does not, and this is used in one of the support 
modules. I guess that the configure script concludes that the system with 
CC=tcc supports threads, but does not test if the compiler supports that 
option before generating makefiles that use it. 

Parzival Herzog

reply via email to

[Prev in Thread] Current Thread [Next in Thread]