This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 
runs the irix cpp on the file by default.  This was the case for 
gcc-3.0.


Proper fix

Don't know.  Perhaps:
  - get gcc cpp to remove #ident lines
  - fix headers


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]