GPC 20060325 @ gcc-4.1.1 build problems

Mirsad Todorovac mtodorov at alu.hr
Tue Feb 13 14:35:12 CET 2007


Hi Mr. Whitaker,

I apologize if I've done something to compiler that shouldn't have been 
done. It is probably not smart to poke around in so great of a coding 
effort, but I was hoping for a quick fix.

I hope I can get away with this.

Under no circumstances I have not lost faith in this project because of 
small misconfiguration, and I am eager to chew this chunk. I take this as 
a challenge.

Regards,
Mirsad

"Be conservative in what you do, be liberal in what you accept from 
others." -- Jon Postel


On Mon, 12 Feb 2007, Mirsad Todorovac wrote:

>
> On Mon, 12 Feb 2007, Russ Whitaker wrote:
>
>>> I used the patch gcc-4.1-5.diff on gcc-4.1.1, and a simple
>>> 
>>> gpc-build % ../gcc-4.1.1/configure --enable-languages=pascal
>> 
>> try
>>  gpc-build % ../gcc-4.1.1/configure --enable-languages=c,pascal
>
> Hi,
>
> I tried it and it does exactly the same thing.
>
> It can't find gcc_init_libintl() because build has not built this subdir yet. 
> When I did:
>
> #ifndef ENABLE_NLS
> #define gcc_init_libintl(X)
> #endif
>
> then the gpc.h passed compilation, but it failed on parse.c:
>
> /usr/bin/gcc -o p/parse.o -c   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings 
> -Wstrict-prototypes -Wmissing-prototypes     -DHAVE_CONFIG_H -I. -Ip 
> -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/p 
> -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include -I. 
> -Ip -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/p 
> -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include 
> -DGPC -DGPC_UNITS_DIR=\"/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/units\" 
> -I../../gcc-4.1.1/gcc/p  ../../gcc-4.1.1/gcc/p/parse.c
> parse.y: In function `yyuserAction':
> parse.y:378: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:378: error: too few arguments to function `warning'
> parse.y:436: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:436: error: too few arguments to function `warning'
> parse.y:548: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:548: error: too few arguments to function `warning'
> parse.y:789: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:789: error: too few arguments to function `warning'
> parse.y:1530: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:1530: error: too few arguments to function `warning'
> parse.y:1610: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:1610: error: too few arguments to function `warning'
> parse.y:2396: warning: passing arg 1 of `warning' makes integer from pointer 
> without a cast
> parse.y:2396: error: too few arguments to function `warning'
> make[2]: *** [p/parse.o] Error 1
> make[2]: Leaving directory 
> `/home/admin/mtodorov/pascal/gpc20060325 at gcc-4.1.1-build/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory 
> `/home/admin/mtodorov/pascal/gpc20060325 at gcc-4.1.1-build'
> make: *** [all] Error 2
> mtodorov at domac:~/pascal/gpc20060325 at gcc-4.1.1-build$
>
> I must be doing something terribly wrong, but I can't seem to find a way out 
> myself.
>
> Any idea?
>
> Mirsad
>
>
>





More information about the Gpc mailing list