On Tue, 13 Feb 2007, Maurice Lombardi wrote:
Mirsad Todorovac a écrit:
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
Have you applied _also_ gpc-4.1-5.diff (to be found also on Waldeck site) it replaces warning by gpc_warning in parse.y, which seems to correspond to your error messages below
Of course, not. I have applied only gcc-4.1-5f.diff, thinking that the rest is a typo.
Mea culpa.
I can confirm the succesful compile now. Tests will follow.
Thank you very much, and I hope to be able to return the favor.
Mirsad
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@gcc-4.1.1-build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build' make: *** [all] Error 2
-- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice.Lombardi@ujf-grenoble.fr