[gnu.gcc.bug] Building gcc on HP-UX 6.0

sokolov@a-boy.media.mit.edu (Michael Sokolov) (01/15/89)

While building the first stage of gcc-1.32 (using cc), on HP-UX
version 6.0, I get an innumerable quantity of 
	"enumeration type clash, operator ==" and	
	"enumeration type clash, operator !=" warnings.
This doesn't seem to be fatal, but it is annoying.

Also, as a minor aside, I had some problems with "fixincludes" on my
Sun 3 running SunOS 3.5; there didn't seem to be a "dirname" on my
system: maybe this is some fluke at our site, as the man page still
mentions the command, and "basename" is there, but then again perhaps
Sun has neglected to distribute it, in which case I suppose one
oughtn't depend on it. I dunno; do what seems right to you. I ended up
replacing "dirname" with "rsh <a better-equipped machine> dirname".

Mike Sokolov

sokolov@a-boy.media.mit.edu (Michael Sokolov) (01/15/89)

	Well, I finished building stage1 and got no further. After
"make stage1," I tried "make CC=stage1/gcc CFLAGS="-O -Bstage1/" and
got the following:

__________________________________________________________
make CC=stage1/gcc CFLAGS="-O -Bstage1/" 
        stage1/gcc -O -Bstage1/ -c -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" gcc.c
gcc.c:118: warning: parameter name starts with a digit in #define
gcc.c:118: badly punctuated parameter list in #define
stage1/gcc: Program cpp got fatal signal 11.
*** Error code 1
 
Stop.
________________________________________________________
 	I believe I made all the correct patches for SYS_V; I defined
bcopy; I have a link from string.h to strings.h, I compiled with the
-Wc flags as described in the Makefile, linked in /lib/libPW.a. Please
let me know if you need more info.

	-Mike Sokolov

beshers@open.columbia.edu (Clifford Beshers) (01/17/89)

I've had similar problems building gcc-1.32 on HP-UX 6.1.  The
enumeration type clashes are very numerous.  I also believe I
have set all the options correctly for HP-UX.

However, I got a different error than sokolov when I tried to
recompile gcc with itself.  The command and output follow below.
Any advice about how to get past this would be welcome...

****************************************************************

sh> make CC=stage1/gcc CFLAGS="-O -Bstage1/"
	stage1/gcc -O -Bstage1/ -c -DSTANDARD_EXEC_PREFIX=\"/usr/local/gnu/lib/gcc-\" gcc.c
as error: "/tmp/cca04694.s" line   1: invalid instruction mnemonic (gcc_compiled)
as error: "/tmp/cca04694.s" line   1: syntax error
as error: "/tmp/cca04694.s" line 883: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 883: syntax error
as error: "/tmp/cca04694.s" line 890: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 890: syntax error
as error: "/tmp/cca04694.s" line 1346: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1346: syntax error
as error: "/tmp/cca04694.s" line 1388: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1388: syntax error
as error: "/tmp/cca04694.s" line 1392: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1392: syntax error
as error: "/tmp/cca04694.s" line 1396: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1396: syntax error
as error: "/tmp/cca04694.s" line 1400: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1400: syntax error
as error: "/tmp/cca04694.s" line 1404: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1404: syntax error
as error: "/tmp/cca04694.s" line 1408: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1408: syntax error
as error: "/tmp/cca04694.s" line 1412: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1412: syntax error
as error: "/tmp/cca04694.s" line 1456: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1456: syntax error
as error: "/tmp/cca04694.s" line 1460: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1460: syntax error
as error: "/tmp/cca04694.s" line 1626: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1626: syntax error
as error: "/tmp/cca04694.s" line 1658: invalid instruction mnemonic (clrl)
as error: "/tmp/cca04694.s" line 1658: syntax error
as error: "/tmp/cca04694.s" line 1666: invalid instruction mnemonic (clrl)
as: Fatal error: "/tmp/cca04694.s" line 1666: too many errors
*** Error code 1

Stop.

mah@hpuviea.UUCP (Michael Haberler) (01/19/89)

From article <BESHERS.89Jan16154633@open.columbia.edu>, by beshers@open.columbia.edu (Clifford Beshers):
> However, I got a different error than sokolov when I tried to
...
> 	stage1/gcc -O -Bstage1/ -c -DSTANDARD_EXEC_PREFIX=\"/usr/local/gnu/lib/gcc-\" gcc.c
> as error: "/tmp/cca04694.s" line   1: invalid instruction mnemonic (gcc_compiled)

	^^^^ looks like you're using gas, and generating HP assembler code, or
the other way around.

-michael
-- 
Michael Haberler		mah@hpuviea.uucp 
Hewlett-Packard Austria GmbH, 	...mcvax!tuvie!hpuviea!mah
Lieblgasse 1 			...hplabs!hpfcla!hpbbn!hpuviea!mah
A-1220 Vienna, Austria		Tel: (0043) (222) 2500 x412 (9-18 CET)