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 gpc-build % make
... on Linux Debian sarge box.
It breaks like this. Rerunning make gives this:
mtodorov@domac:~/pascal/gpc20060325@gcc-4.1.1-build$ make make[1]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/libiberty' make[3]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/libiberty/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/libiberty/testsuite' make[2]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/libiberty' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/fixincludes' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/fixincludes' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/intl' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/build-i686-pc-linux-gnu/libiberty' make[3]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/build-i686-pc-linux-gnu/libiberty/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/build-i686-pc-linux-gnu/libiberty/testsuite' make[2]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/build-i686-pc-linux-gnu/libiberty' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/build-i686-pc-linux-gnu/fixincludes' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/build-i686-pc-linux-gnu/fixincludes' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/libcpp' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/libcpp' make[2]: Entering directory `/home/admin/mtodorov/pascal/gpc20060325@gcc-4.1.1-build/gcc' gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition-Wmissing-format-attribute -DHAVE_CONFIG_H -o xgpc p/gpc.o prefix.o version.o \ ../libcpp/libcpp.a ../libiberty/libiberty.a p/gpc.o(.text+0xab30): In function `main': ../../gcc-4.1.1/gcc/p/gpc.c:6941: undefined reference to `gcc_init_libintl' collect2: ld returned 1 exit status make[2]: *** [xgpc] 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 mtodorov@domac:~/pascal/gpc20060325@gcc-4.1.1-build$
Any advice?
Thanks.
Regards, Mirsad
"Be conservative in what you do, be liberal in what you accept from others." -- Jon Postel
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@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 mtodorov@domac:~/pascal/gpc20060325@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
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@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 mtodorov@domac:~/pascal/gpc20060325@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
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
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
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