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]

bootstrap/3388: 3.0 bootstrap failure, native sparc-sun-solaris2.5.1, fixinc/fixincl.c



>Number:         3388
>Category:       bootstrap
>Synopsis:       3.0 bootstrap failure, native sparc-sun-solaris2.5.1, fixinc/fixincl.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 22:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Chastain
>Release:        3.0
>Organization:
>Environment:
native sparc-sun-solaris2.5
vendor compiler: SC3.0.1 13 Jul 1994 
>Description:
gcc 3.0 fails to bootstrap with vendor compiler.
vendor compiler is /opt/SUNWspro/bin/cc.
"cc -V" says: "cc: SC3.0.1 13 Jul 1994".

I configured with:

/horton/chastain/baseline/gcc-3.0/configure \
  --prefix=/horton/chastain/localdisk/makita/baseline/gcc-3.0/native/install \
  --disable-shared \
  --with-gnu-as --with-as=/horton/chastain/localdisk/makita/baseline/binutils-2.11/native/install/bin/as \
  --with-gnu-ld --with-ld=/horton/chastain/localdisk/makita/baseline/binutils-2.11/native/install/bin/ld

I built with "make bootstrap".

The error is:

cc -c -DIN_GCC -DHAVE_CONFIG_H -g   -I. -I/horton/chastain/baseline/gcc-3.0/gcc/fixinc -I/horton/chastain/baseline/gcc-3.0/gcc/fixinc/.. -I/horton/chastain/baseline/gcc-3.0/gcc/fixinc/../config -I/horton/chastain/baseline/gcc-3.0/gcc/fixinc/../../include /horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c
"/horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c", line 226: warning: macro replacement within a string literal
"/horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c", line 226: warning: macro replacement within a string literal
"/horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c", line 227: newline in string literal
"/horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c", line 228: syntax error before or at: undef
"/horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c", line 533: cannot recover from previous errors
cc: acomp failed for /horton/chastain/baseline/gcc-3.0/gcc/fixinc/fixincl.c
make[3]: *** [fixincl.o] Error 2

The source code here is:

  void
  initialize ( argc, argv )
    int argc;
    char** argv;
  {
    static const char var_not_found[] =
      "fixincl ERROR:  %s environment variable not defined\n"
  #ifdef __STDC__
       "each of these must be defined:\n"
  #define _ENV_(v,m,n,t) "\t" n "  - " t "\n"
  ENV_TABLE
  #undef _ENV_
  #endif
      ;
>How-To-Repeat:
bootstrap native sparc-solaris-2.5.1 using vendor compiler SC3.0.1 13 Jul 1994
>Fix:
Change the macro definition so that it doesn't blow up the vendor preprocessor:

  #define _ENV_(vv,mm,nn,tt) "\t" nn "  - " tt "\n"

>Release-Note:
>Audit-Trail:
>Unformatted:


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