Failed to build 19980906 on mips-sgi-irix6.5

Jeffrey A Law law@cygnus.com
Mon Sep 7 15:53:00 GMT 1998


  In message < 19980907181826.619.rocketmail@attach1.rocketmail.com >you write:
  > ../../../egcs-19980906/gcc/java/jvgenmain.c
  > ../../../egcs-19980906/gcc/java/jvgenmain.c:30: obstack.h: No such
  > file or directory
  > gmake[3]: *** [jvgenmain.o] Error 1
  > gmake[3]: Leaving directory `/mnts/d9/tmp/egcs-snapobjs/gcc/java'
  > gmake[2]: *** [jvgenmain] Error 2
  > gmake[2]: Leaving directory `/mnts/d9/tmp/egcs-snapobjs/gcc'
  > gmake[1]: *** [bootstrap] Error 2
  > gmake[1]: Leaving directory `/mnts/d9/tmp/egcs-snapobjs/gcc'
  > gmake: *** [bootstrap] Error 2
I've just fixed this.  I'm not sure why I didn't see this when I
built the tree after importing Java.


  > 
  > ../../../egcs-19980906/gcc/java/gjavah.c: At top level:
  > ../../../egcs-19980906/gcc/java/gjavah.c:752: parse error before `0'
  > ../../../egcs-19980906/gcc/java/gjavah.c:756: parse error before `1'
It's complaining about the following code:

static void
no_argument (opt)
     char *opt;
{
  fprintf (stderr, "gjavah: no argument given for option `%s'\n", opt);
  exit (1);
}


which appears perfectly fine to me.

I suspect you've got a stray #define somewhere for either
"no_argument" or "opt" which us creating these problems.

I would compile with -save-temps and examine the .i file to see what
exactly this code expands to.  Then work backwards to find out where
the bogon macro definition is coming from.

jeff




More information about the Gcc-bugs mailing list