Hi,
I am trying to install gpc-20051116 on HP-UX11i v2(Itanium) with gcc-3.4.3.Intially igot "make[2]: *** [needed-options] Error 1", itried with "touch /gcc/gpcbuild/gcc/p/rts/needed-options".After that iam geeting an error like
make[2]: Leaving directory `/gcc/gpcbuild/gcc' cd ./p/rts && make CC="`echo /gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/ local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/l ocal/ia64-hp-hpux11.23/include -isystem /usr/local/ia64-hp-hpux11.23/sys-include ' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'` " PC="`echo ./xgpc -B./' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([ ^/][^:]*/),../../\1,'`" GCC_VERSION="3.4.3" SHELL="/bin/sh" CFLAGS="-g -O2" PFL AGS="" AR_FLAGS="rc" RTSFLAGS="" DESTDIR="../.." AR="ar" RANLIB="ranlib" RANLIB_ TEST="" all make[2]: Entering directory `/gcc/gpcbuild/gcc/p/rts' /gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/local/ia64-hp-hpux11.23/includ e -isystem /usr/local/ia64-hp-hpux11.23/sys-include -c -I. -W -Wall -Wmissing-p rototypes -Wmissing-declarations -g -O2 -Wpointer-arith -Wwrite-strings "/gcc/ gcc-3.4.3/gcc/p/rts/rts.c" /gcc/gcc-3.4.3/gcc/p/rts/rts.c:663:1: warning: "open" redefined In file included from /usr/include/fcntl.h:9, from /gcc/gcc-3.4.3/gcc/p/rts/rts.c:89: /usr/include/sys/fcntl.h:259:1: warning: this is the location of the previous de finition /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_CStringStrSignal': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:2446: warning: empty body in an if-statement /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_SqRt': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:831: internal compiler error: in emit_move_insn, at expr.c:2812 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. make[2]: *** [rts.o] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2 #
can any one help on this.
Regards Prasad
----- Original Message ----- From: "Waldek Hebisch" hebisch@math.uni.wroc.pl To: gpc@gnu.de Subject: Re: Getting an error while compiling GPC-20050331 on HP-UX11i v2 (Itanium Date: Thu, 2 Feb 2006 02:00:49 +0100 (CET)
prasad svr wrote:
I tried with gpc-20051116 on HP-UX11i v2 (Itanium),i am geeting an error like
ocal/ia64-hp-hpux11.23/include -isystem /usr/local/ia64-hp-hpux11.23/sys-include' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" PC="`echo ./xgpc -B./' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" GCC_VERSION="3.4.3" SHELL="/bin/sh" CFLAGS="-g -O2" PFLAGS="" AR_FLAGS="rc" RTSFLAGS="" DESTDIR="../.." AR="ar" RANLIB="ranlib" RANLIB_TEST="" all make[2]: Entering directory `/gcc/gpcbuild/gcc/p/rts' echo '{ rts-config.inc. Generated automatically from rts-config.h. }' > rts-config.inc sed -e 's,/*,{,g;s,*/,},g;s,^[ \t]*#(.*),{$\1},' rts-config.h
rts-config.inc
../.././xgpc -B../.././ -I. -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/gcc/gcc-3.4.3/gcc/p/rts --automake --print-needed-options "/gcc/gcc-3.4.3/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep '^[^-]' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`" >&2; rm -f "needed-options"; false; else true; fi needed-options: /gcc/gcc-3.4.3/gcc/p/rts/endian.pas:37: error: module/unit interface `Error' could not be imported make[2]: *** [needed-options] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2
can any one help on this.
Just few remarks:
- "needed-options" for gpc-20051116 is na empty file, so you may try to do
touch /gcc/gpcbuild/gcc/p/rts/needed-options
to create the file and restart the build.
- gpc is trying to compile "endian.pas". However "--print-needed-options"
should disable normal compilation, so something is wrong with command line processing.
- Similar problem was already reported for HP-UX (ATM with no resolution):
http://www.gnu-pascal.de/crystal/gpc/en/mail13084.html
-- Waldek Hebisch hebisch@math.uni.wroc.pl
prasad svr wrote:
Hi,
I am trying to install gpc-20051116 on HP-UX11i v2(Itanium) with gcc-3.4.3.Intially igot "make[2]: *** [needed-options] Error 1", itried with "touch /gcc/gpcbuild/gcc/p/rts/needed-options".After that iam geeting an error like
make[2]: Leaving directory `/gcc/gpcbuild/gcc' cd ./p/rts && make CC="`echo /gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/ local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/l ocal/ia64-hp-hpux11.23/include -isystem /usr/local/ia64-hp-hpux11.23/sys-include ' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'` " PC="`echo ./xgpc -B./' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([ ^/][^:]*/),../../\1,'`" GCC_VERSION="3.4.3" SHELL="/bin/sh" CFLAGS="-g -O2" PFL AGS="" AR_FLAGS="rc" RTSFLAGS="" DESTDIR="../.." AR="ar" RANLIB="ranlib" RANLIB_ TEST="" all make[2]: Entering directory `/gcc/gpcbuild/gcc/p/rts' /gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/local/ia64-hp-hpux11.23/includ e -isystem /usr/local/ia64-hp-hpux11.23/sys-include -c -I. -W -Wall -Wmissing-p rototypes -Wmissing-declarations -g -O2 -Wpointer-arith -Wwrite-strings "/gcc/ gcc-3.4.3/gcc/p/rts/rts.c" /gcc/gcc-3.4.3/gcc/p/rts/rts.c:663:1: warning: "open" redefined In file included from /usr/include/fcntl.h:9, from /gcc/gcc-3.4.3/gcc/p/rts/rts.c:89: /usr/include/sys/fcntl.h:259:1: warning: this is the location of the previous de finition /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_CStringStrSignal': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:2446: warning: empty body in an if-statement /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_SqRt': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:831: internal compiler error: in emit_move_insn, at expr.c:2812 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. make[2]: *** [rts.o] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2 #
can any one help on this.
Unfortunatly, this is a problem with the C compiler (gcc-3.4.3). For me (using a cross-compiler) gcc crashes on following C program:
extern double sqrt (double x);
void _p_SetReturnAddress (void *); void _p_RestoreReturnAddress (void); void _p_RuntimeError (int) __attribute__ ((noreturn));
double _p_SqRt (double x) __attribute__ ((const)); double _p_SqRt (double x) { if (x < 0.0) do { _p_SetReturnAddress (__builtin_return_address (0)); _p_RuntimeError (708); _p_RestoreReturnAddress (); } while (0); return sqrt (x); }
It looks that the problem is fixed in gcc-4.0, but ATM gpc do not work with this version of gcc.
On Tue, 7 Feb 2006, Waldek Hebisch wrote:
prasad svr wrote:
Hi,
I am trying to install gpc-20051116 on HP-UX11i v2(Itanium) with gcc-3.4.3.Intially igot "make[2]: *** [needed-options] Error 1", itried with "touch /gcc/gpcbuild/gcc/p/rts/needed-options".After that iam geeting an error like
make[2]: Leaving directory `/gcc/gpcbuild/gcc' cd ./p/rts && make CC="`echo /gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/ local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/l ocal/ia64-hp-hpux11.23/include -isystem /usr/local/ia64-hp-hpux11.23/sys-include ' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'` " PC="`echo ./xgpc -B./' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([ ^/][^:]*/),../../\1,'`" GCC_VERSION="3.4.3" SHELL="/bin/sh" CFLAGS="-g -O2" PFL AGS="" AR_FLAGS="rc" RTSFLAGS="" DESTDIR="../.." AR="ar" RANLIB="ranlib" RANLIB_ TEST="" all make[2]: Entering directory `/gcc/gpcbuild/gcc/p/rts' /gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/local/ia64-hp-hpux11.23/includ e -isystem /usr/local/ia64-hp-hpux11.23/sys-include -c -I. -W -Wall -Wmissing-p rototypes -Wmissing-declarations -g -O2 -Wpointer-arith -Wwrite-strings "/gcc/ gcc-3.4.3/gcc/p/rts/rts.c" /gcc/gcc-3.4.3/gcc/p/rts/rts.c:663:1: warning: "open" redefined In file included from /usr/include/fcntl.h:9, from /gcc/gcc-3.4.3/gcc/p/rts/rts.c:89: /usr/include/sys/fcntl.h:259:1: warning: this is the location of the previous de finition /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_CStringStrSignal': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:2446: warning: empty body in an if-statement /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_SqRt': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:831: internal compiler error: in emit_move_insn, at expr.c:2812 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. make[2]: *** [rts.o] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2 #
can any one help on this.
Unfortunatly, this is a problem with the C compiler (gcc-3.4.3). For me (using a cross-compiler) gcc crashes on following C program:
extern double sqrt (double x);
void _p_SetReturnAddress (void *); void _p_RestoreReturnAddress (void); void _p_RuntimeError (int) __attribute__ ((noreturn));
double _p_SqRt (double x) __attribute__ ((const)); double _p_SqRt (double x) { if (x < 0.0) do { _p_SetReturnAddress (__builtin_return_address (0)); _p_RuntimeError (708); _p_RestoreReturnAddress (); } while (0); return sqrt (x); }
It looks that the problem is fixed in gcc-4.0, but ATM gpc do not work with this version of gcc.
tried it with gcc-3.4.5 -c and got a .o result
linux i686
russ
Russell Whitaker wrote:
On Tue, 7 Feb 2006, Waldek Hebisch wrote:
prasad svr wrote:
<snip>
/gcc/gpcbuild/gcc/xgcc -B/gcc/gpcbuild/gcc/ -B/usr/local/ia64-hp-hpux11.23/bin/ -B/usr/local/ia64-hp-hpux11.23/lib/ -isystem /usr/local/ia64-hp-hpux11.23/includ e -isystem /usr/local/ia64-hp-hpux11.23/sys-include -c -I. -W -Wall -Wmissing-p rototypes -Wmissing-declarations -g -O2 -Wpointer-arith -Wwrite-strings "/gcc/ gcc-3.4.3/gcc/p/rts/rts.c" /gcc/gcc-3.4.3/gcc/p/rts/rts.c:663:1: warning: "open" redefined In file included from /usr/include/fcntl.h:9, from /gcc/gcc-3.4.3/gcc/p/rts/rts.c:89: /usr/include/sys/fcntl.h:259:1: warning: this is the location of the previous de finition /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_CStringStrSignal': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:2446: warning: empty body in an if-statement /gcc/gcc-3.4.3/gcc/p/rts/rts.c: In function `_p_SqRt': /gcc/gcc-3.4.3/gcc/p/rts/rts.c:831: internal compiler error: in emit_move_insn, at expr.c:2812 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. make[2]: *** [rts.o] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2 #
can any one help on this.
<snip>
It looks that the problem is fixed in gcc-4.0, but ATM gpc do not work with this version of gcc.
tried it with gcc-3.4.5 -c and got a .o result
linux i686
The problem affects ia64 (Itanium) running HPUX. In fact, it seems that only 32-bit mode is affected. Unfortunatly, 32-bit mode is a default on HPUX.
To Prasad: it seems that you have succesfully built the compiler proper. The problem is with building the 32-bit runtime. You may try building 64-bit runtime.
Some hints how to do this are in a message by Peter Keenan:
http://www.gnu-pascal.de/crystal/gpc/en/mail11264.html
(however, to get 64-bit mode use `-mlp64' flag).