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


On Tue, Mar 07, 2000 at 10:44:31PM -0500, Kaveh R. Ghazi wrote:
> Zack,
> 
> 	With current CVS, cpp fails to build on !GCC configurations.
> 
> On mips-sgi-irix6.2:
> 
>  > "../../egcs-CVS20000307/gcc/cppinit.c", line 941: error(1140): a
>  > 	value of type "char *" cannot be used to initialize an entity
>  > 	of type "char"
>  > 	static const char no_arg[] = N_("Argument missing after `%s' option");
>  
> 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?

> 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

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