libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Fri Mar 1 22:46:00 GMT 2002


The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
To: <java@gcc.gnu.org>
Cc: <hans_boehm@hp.com>,
	<gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>
Subject: RE: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Sat, 2 Mar 2002 09:53:54 +0800

 Version:  3.1 and 3.2
 System: mips-sgi-irix6.5
 
 The problem
 
 Error compiling boehm-gc/mips_sgi_mach_dep.S
 
 as: Error: /usr/include/sys/regdef.h, line 17: Expected cpp-generated =
 line number
 as INTERNAL ERROR:  /usr/lib32/cmplrs/asm returned non-zero status 1
 
 
 Cause
 
 The Irix header files
   /usr/include/sys/regdef.h
   /usr/include/sgidefs.h
   /usr/include/sys/asm.h
 contain #ident "$Revision: 3.52 $" lines.
 
 The gcc cpp passess these through to the .s file, and the irix
 assembler chokes on them.  If the lines are removed from the .s
 file it can be assembled.
 
 The irix cpp removes #ident lines.
 
 
 Work around
 
 Renaming the file to .s works in this case, as irix assembler=20
 runs the irix cpp on the file by default.  This was the case for=20
 gcc-3.0.
 
 
 Proper fix
 
 Don't know.  Perhaps:
   - get gcc cpp to remove #ident lines
   - fix headers



More information about the Gcc-prs mailing list