This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: CPP fails to build in current CVS when using cc for stage1


 > 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

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