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

Martin Knoblauch knobi@knobisoft.de
Mon Sep 7 15:58:00 GMT 1998


Jeffrey A Law wrote:
> 
> 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
Jeff,

 seems it is "no_argument". The ".i" file yields.

static void
0  (opt)
     char *opt;
{
  fprintf ((&__iob[2]) , "gjavah: no argument given for option `%s'\n",
opt);
  exit (1);
}


 I will look further. Q: should't the declaration of "opt"
be inside the curly brackets? Also, why does "gmake bootstrap"
try to build the java stuff for stage1? And another one, it does
not seem to honor CFLAGS/BOOT_CFLAGS.

Martin
-- 
+---------------------------------+
|Martin Knoblauch                 |
|---------------------------------|
| http://www.knobisoft.de          |
+---------------------------------+
|e-mail: <knobi@knobisoft.de>     |
+---------------------------------+



More information about the Gcc-bugs mailing list