I am stuck on compiling GPC on HP-UX 10.20, and need some help. I got gcc-2.95.2 binuary from HP's web site; there was no gpc and that hence I needed to compile from the source.
First, I merged gcc-2.95.2 with gpc-19991030. This merged source compiled OK and installed OK on Sparc Solaris 7.
The same merged source, when compiled on HP-UX, was stuck when compiling GPC's rts/string2.pas. The following error was what I got.
I had GNU {make, autoconf, automake, binutils, bison} on my $PATH on my HP-UX. I tried several times (first with gcc-2.7.2.1, second with all the GNU utils installed, third with gcc-2.95.2 binary installed) and got the same following error.
Hope someone can help me.
tail -20 make.log gpc1: warning: -g option disabled. gpc1: warning: -g is only supported when using GAS on this processor, gpc1: warning: -g option disabled. string2.pas: In function `Getenv': string2.pas:193: internal error--unrecognizable insn: (insn 15 14 17 (set (zero_extract:SI (reg:SI 97) (const_int 32 [0x20]) (const_int 0 [0x0])) (reg:SI 98)) -1 (insn_list 12 (insn_list 14 (nil))) (expr_list:REG_DEAD (reg:SI 98) (nil))) gpc1: ../.././xgpc exited with status 1 files.pas:30: module/unit `string2' could not be compiled make[3]: *** [files.o] Error 1 make[3]: Leaving directory `/opt/OV/tmp/gcc-2.95.2/gcc/p/rts' make[2]: *** [pascal.rts] Error 2 make[2]: Leaving directory `/opt/OV/tmp/gcc-2.95.2/gcc' make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/opt/OV/tmp/gcc-2.95.2/gcc' make: *** [bootstrap] Error 2