[gnu.gcc] GCC installation on HP9000s350 - problems

mathieu@yunexus.UUCP (Pierre Mathieu) (06/30/89)

Has anybody successfully installed GCC (V1.35) on an HP9000 series
350 running HPUX 6.2, or closely related systems?
	I get the following warnings (in droves; below is just a 
sample) when compiling:

	cc -c -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300  -I./config c-parse.tab.c
"c-parse.y", line 300: warning: enumeration type clash, operator ==
"c-parse.y", line 990: warning: enumeration type clash, operator !=


	Do these matter? Will they have a negative effect on subsequent 
operations?
	When gcc has been created as the first stage, I then run the 
command:

	make CC=stage1/gcc CFLAGS="-O -Bstage1/"

(I know that the INSTALL file says
	make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
but this gives me an unrecognized option "-g")

and get the following errors

	stage1/gcc -O -Bstage1/ -I./config \
	  -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/\" \
	  -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" -c gcc.c
as error: "/tmp/cca04697.s" line   1: invalid instruction mnemonic (gcc_compiled)
as error: "/tmp/cca04697.s" line   1: syntax error
*** Error code 1

Stop.

	Does anyone know what the problem is here?
Thanks for any help on these matters,

-----
			   
Pierre Mathieu            
CRESS, York University,  
Ontario, Canada         
mathieu@nexus.yorku.ca 

luik@einstein.uucp (Andreas Luik) (07/11/89)

> Has anybody successfully installed GCC (V1.35) on an HP9000 series
> 350 running HPUX 6.2, or closely related systems?
> 
> 	stage1/gcc -O -Bstage1/ -I./config \
> 	  -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/\" \
> 	  -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" -c gcc.c
> as error: "/tmp/cca04697.s" line   1: invalid instruction mnemonic (gcc_compiled)
> as error: "/tmp/cca04697.s" line   1: syntax error
> *** Error code 1
> 
> Stop.
> 
> 	Does anyone know what the problem is here?

In line 564 in file config/tm-hp9k320.h an "end comment marker" (*/) is
missing, so ASM_IDENTIFY_GCC is not defined. The assembler output file of
gcc will then begin with "gcc_compiled.:". This is not a valid label for
the hp-ux assembler.

To prevent this error apply the following patch to config/tm-hp9k320.h 

*** tm-hp9k320.h.ORIG   Mon Jul 10 17:38:06 1989
--- tm-hp9k320.h        Mon Jul 10 17:37:35 1989
***************
*** 561,567 ****
      { fprintf ((FILE), "mov"); (PTR) += 4; }          \
  }

! /* Prevent output of `gcc_compiled.:'.

  #define ASM_IDENTIFY_GCC(FILE)

--- 561,567 ----
      { fprintf ((FILE), "mov"); (PTR) += 4; }          \
  }

! /* Prevent output of `gcc_compiled.:'. */

  #define ASM_IDENTIFY_GCC(FILE)

> Thanks for any help on these matters,
> 
> -----
> 			   
> Pierre Mathieu            
> CRESS, York University,  
> Ontario, Canada         
> mathieu@nexus.yorku.ca 

Hope this helps,

Andreas Luik                    Domain: luik@isaak.isa.de
ISA GmbH                        UUCP:   luik@isaak.uucp
Azenberstr. 35                  Bang:   ...!uunet!unido!isaak!luik
7000 Stuttgart (West-Germany)   BITNET: luik%isaak.uucp@unido.bitnet