This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: CPP fails to build in current CVS when using cc for stage1
- To: zack at wolery dot cumb dot org
- Subject: Re: CPP fails to build in current CVS when using cc for stage1
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 8 Mar 2000 10:51:56 -0500 (EST)
- Cc: egcs-bugs at egcs dot cygnus dot com
> From: Zack Weinberg <zack@wolery.cumb.org>
>
> > On alphaev5-dec-osf4.0b:
> >
> > > cc: Error: ../../egcs-CVS20000307/gcc/cppinit.c, line 941: In the
> > > static initialization, the address cannot be converted to the
> > > destination type.
> > > static const char no_arg[] = N_("Argument missing after `%s' option");
> > > -----------------------------^
>
> Looks like N_() is being defined incorrectly. intl.h has
>
> #ifndef N_
> # define N_(msgid) (msgid)
> #endif
>
> so if N_ is already defined somewhere, we'll get it wrong. Can you
> figure out what the bogus definition is and where it's coming from?
Okay, I'll investigate.
> > On sparc-sun-solaris2.7:
> >
> > > cc -DIN_GCC -DSVR4 -g -DHAVE_CONFIG_H -o cppmain cppmain.o intl.o
> > > libcpp.a obstack.o alloca.o ../libiberty/libiberty.a
> > > ild: (undefined symbol) cpp_lookup -- referenced in the text segment
> > > of libcpp.a(cpphash.o)
> > > make[2]: *** [cppmain] Error 5
>
> Argh, I have no idea how that slipped by, it should show up
> everywhere.
>
> ===================================================================
> Index: cpphash.c
> --- cpphash.c 2000/03/07 20:58:47 1.48
> +++ cpphash.c 2000/03/08 03:55:23
> @@ -899,7 +899,7 @@ special_symbol (hp, pfile)
> while (!ip->nominal_fname && ip != CPP_NULL_BUFFER (pfile))
> ip = CPP_PREV_BUFFER (ip);
> if (ip->system_header_p
> - && !cpp_lookup (pfile, (const U_CHAR *) "__STRICT_ANSI__", 15))
> + && !cpp_defined (pfile, (const U_CHAR *) "__STRICT_ANSI__", 15))
> CPP_PUTC_Q (pfile, '0');
> else
> #endif
>
>
> zw
Ah I see, this one is wrapped in STDC_0_IN_SYSTEM_HEADERS which would
only show up on Solaris.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions