This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-2.93.18 19990418 fails to compile on Solaris2.6
- To: egcs-bugs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
- Subject: egcs-2.93.18 19990418 fails to compile on Solaris2.6
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Mon, 19 Apr 1999 11:47:26 +0200
Compiler version: egcs-2.93.18 19990418 (gcc2 ss-980929 experimental)
Platform: sparc-sun-solaris2.6
gcc -c -DIN_GCC -DHAIFA -DSVR4 -g -W -Wall -DHAVE_CONFIG_H -I. -I../../egcs/gcc -I../../egcs/gcc/config -I../../egcs/gcc/../include ../../egcs/gcc/gen-protos.c
../../egcs/gcc/gen-protos.c: In function `fatal':
../../egcs/gcc/gen-protos.c:199: argument `s' doesn't match prototype
../../egcs/gcc/system.h:387: prototype declaration
gmake[2]: *** [gen-protos.o] Error 1
gmake[2]: Leaving directory `/1/egcs/egcs-solaris/gcc'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/1/egcs/egcs-solaris/gcc'
gmake: *** [bootstrap] Error 2
A simple fix (the right one since I believe we do not want to ansify
gcc (unfortunately)) is:
ChangeLog:
Mon Apr 11:37:32 1999 Theo Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
* system.h (fatal): Fix prototype to be in sync with
gen-proto.c
Index: system.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/system.h,v
retrieving revision 1.40
diff -c -3 -p -r1.40 system.h
*** system.h 1999/04/16 19:52:38 1.40
--- system.h 1999/04/19 09:42:27
*************** extern int setrlimit ();
*** 384,390 ****
#ifdef NEED_DECLARATION_ABORT
extern void abort ();
#endif
! extern void fatal PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
#define abort() fatal ("Internal compiler error at %s:%d\n", \
--- 384,390 ----
#ifdef NEED_DECLARATION_ABORT
extern void abort ();
#endif
! extern void fatal PVPROTO((char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
#define abort() fatal ("Internal compiler error at %s:%d\n", \
Just in case I was wrong with the ansi argument, the other possibility is:
Mon Apr 11:37:32 1999 Theo Papadopoulo (Theodore.Papadopoulo@sophia.inria.fr)
* gen-proto.c (fatal): Fix prototype to be in sync with
system.h
Index: gen-protos.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gen-protos.c,v
retrieving revision 1.10
diff -c -3 -p -r1.10 gen-protos.c
*** gen-protos.c 1999/01/27 01:42:28 1.10
--- gen-protos.c 1999/04/19 09:35:55
*************** fancy_abort ()
*** 195,201 ****
void
fatal (s)
! char *s;
{
fprintf (stderr, "%s: %s\n", "gen-protos", s);
exit (FATAL_EXIT_CODE);
--- 195,201 ----
void
fatal (s)
! const char *s;
{
fprintf (stderr, "%s: %s\n", "gen-protos", s);
exit (FATAL_EXIT_CODE);
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------