Getting an error while compiling GPC-20051116 on HP-UX11i v2
Russell Whitaker
russ at ashlandhome.net
Tue Feb 7 22:59:55 CET 2006
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
More information about the Gpc
mailing list