1830899 Members
3096 Online
110017 Solutions
New Discussion

compiling gcc 3.1

 
Gerd Oberlechner
Occasional Contributor

compiling gcc 3.1

hi all... i have another compiling problem...
now i wanted to compile gcc3.1 by myself on hpux 11.11, because the available binaries have all an unacceptable prefix... so i configured the binaries for hpux with the following flags:
configure --prefix=/tmp/dkarthik/gcc64 --enable-shared --with-as=/opt/binutils/bin/as --with-ld=/usr/ccs/bin/ld

then i compiled it with gmake

i have installed the following utils:
binutil 2.11.2
flex 2.5.4a
gmake 3.79.1

probably someone can help me...
thanks a lot...

sincerly yours
gerd oberlechner
4 REPLIES 4
Gerd Oberlechner
Occasional Contributor

Re: compiling gcc 3.1

sorry... i have forgotten the error message :)... here it is...

(Bundled) cc: "tradcpp.c", line 2598: error 1000: Unexpected symbol: "*".
(Bundled) cc: "tradcpp.c", line 2600: error 1588: "p" undefined.
(Bundled) cc: "tradcpp.c", line 2600: error 1588: "q" undefined.
(Bundled) cc: "tradcpp.c", line 2600: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2600: error 1588: "end" undefined.
(Bundled) cc: "tradcpp.c", line 2600: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2602: error 1588: "fp" undefined.
(Bundled) cc: "tradcpp.c", line 2602: error 1532: Reference through a non-pointer.
(Bundled) cc: "tradcpp.c", line 2602: error 1563: Expression in if must be scalar.
(Bundled) cc: "tradcpp.c", line 2605: error 1532: Reference through a non-pointer.
(Bundled) cc: "tradcpp.c", line 2605: error 1532: Reference through a non-pointer.
(Bundled) cc: "tradcpp.c", line 2605: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2606: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2606: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2607: error 1532: Reference through a non-pointer.
(Bundled) cc: "tradcpp.c", line 2607: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type.
(Bundled) cc: "tradcpp.c", line 2607: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2608: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2608: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2609: error 1563: Expression in if must be scalar.
(Bundled) cc: "tradcpp.c", line 2612: error 1532: Reference through a non-pointer.
(Bundled) cc: "tradcpp.c", line 2612: error 1528: Subscript expression must combine pointer and integer.
(Bundled) cc: "tradcpp.c", line 2612: error 1563: Expression in if must be scalar.
(Bundled) cc: "tradcpp.c", line 2613: error 1560: Modifiable lvalue required with operator "--".
(Bundled) cc: "tradcpp.c", line 2613: error 1561: Increment and decrement operators take scalar operand.
(Bundled) cc: "tradcpp.c", line 2614: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2615: error 1564: Expression in while must be scalar.
(Bundled) cc: "tradcpp.c", line 2616: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2619: error 1560: Modifiable lvalue required with operator "++".
(Bundled) cc: "tradcpp.c", line 2619: error 1561: Increment and decrement operators take scalar operand.
(Bundled) cc: "tradcpp.c", line 2619: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2619: error 1560: Modifiable lvalue required with operator "++".
(Bundled) cc: "tradcpp.c", line 2619: error 1561: Increment and decrement operators take scalar operand.
(Bundled) cc: "tradcpp.c", line 2619: error 1554: Indirection must be through a pointer.
(Bundled) cc: "tradcpp.c", line 2619: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2623: error 1528: Subscript expression must combine pointer and integer.
(Bundled) cc: "tradcpp.c", line 2623: error 1528: Subscript expression must combine pointer and integer.
(Bundled) cc: "tradcpp.c", line 2623: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "tradcpp.c", line 2624: error 1560: Modifiable lvalue required with operator "++".
(Bundled) cc: "tradcpp.c", line 2624: error 1561: Increment and decrement operators take scalar operand.

mfg
gerd
H.Merijn Brand (procura
Honored Contributor

Re: compiling gcc 3.1

Read the instructions on https://www.beepz.com/personal/merijn and ask additional questions here
Enjoy, Have FUN! H.Merijn
Gerd Oberlechner
Occasional Contributor

Re: compiling gcc 3.1

i have done it exactly like it was shown on this page, but the same error occured again...
H.Merijn Brand (procura
Honored Contributor

Re: compiling gcc 3.1

Could you start with the compiler supplied on my page?

Compilers that are stable for HP-UX are
?? gcc-3.0.4
?? gcc-3.1.1 (as of 20020610)
?? gcc-3.2

gcc-3.1 and gcc-3.1.1 before 20020610 are not good.

They do not require binutils 2.12, but it seems very wise to use it anyway.

So, download the compiler suite from my page including the binutils, and try to use it to rebuild your own set. (best to also rebuild the binutils after gcc, and then rebuild gcc again with those binutils. I know it's tedious, but it is still the best and most stable path to walk)

HTH
Enjoy, Have FUN! H.Merijn