Internal compiler error in `expand_expr', at expr.c:5781

Jim Meyering meyering@ascend.com
Tue Jun 27 01:31:00 GMT 2000


I'm using a version of gcc based on yesterday's sources,
but the change that evokes this failure was checked in about
two weeks ago, on June 13 or June 14.

I updated at around 2000-06-25.20h29 UTC.
It bootstrapped successfully on i686-pc-linux.  I built it like this:

      CC=gcc ./configure --disable-nls --prefix=/p/p/gcc-$date \
        && make bootstrap >& makerr &

BTW, I just tried updating again and building, but bootstrap failed.
I went back to some old versions and have confirmed the failure existed
in my 2000-06-14.06h27 build, but not in the 2000-06-13.19h01 one.

  $ gcc -v
  Reading specs from /p/p/gcc-2000-06-25.22h29/lib/gcc-lib/i686-pc-linux/2.96/specs
  gcc version 2.96 20000625 (experimental)

The error:

  $ gcc k.c
  k.c: In function `users':
  k.c:4: `STRUCT_UTMP' undeclared (first use in this function)
  k.c:4: (Each undeclared identifier is reported only once
  k.c:4: for each function it appears in.)
  k.c:4: `a' undeclared (first use in this function)
  k.c:4: Tree check: expected class 't', have 'x' (error_mark)
  k.c:4: Internal compiler error in `expand_expr', at expr.c:5781
  Please submit a full bug report.
  See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
  [Exit 1]

The source:

  $ cat k.c
  static void
  users (void)
  {
    STRUCT_UTMP *a;
  }

Compiling with -v:

  $ gcc -v k.c
  Reading specs from /p/p/gcc-2000-06-25.22h29/lib/gcc-lib/i686-pc-linux/2.96/specs
  gcc version 2.96 20000625 (experimental)
   /p/p/gcc-2000-06-25.22h29/lib/gcc-lib/i686-pc-linux/2.96/cpp -lang-c -v -iprefix /p/bin/../lib/gcc-lib/i686-pc-linux/2.96/ -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentiumpro__ k.c /tmp/ccV278lD.i
  GNU CPP version 2.96 20000625 (experimental) (cpplib)
   (i386 Linux/ELF)
  ignoring nonexistent directory `/p/lib/gcc-lib/i686-pc-linux/2.96/include'
  ignoring nonexistent directory `/p/i686-pc-linux/include'
  #include "..." search starts here:
  #include <...> search starts here:
   /usr/local/include
   /p/p/gcc-2000-06-25.22h29/lib/gcc-lib/i686-pc-linux/2.96/include
   /p/p/gcc-2000-06-25.22h29/i686-pc-linux/include
   /usr/include
  End of search list.
   /p/p/gcc-2000-06-25.22h29/lib/gcc-lib/i686-pc-linux/2.96/cc1 /tmp/ccV278lD.i -quiet -dumpbase k.c -version -o /tmp/ccwkDv55.s
  GNU C version 2.96 20000625 (experimental) (i686-pc-linux) compiled by GNU C version 2.96 20000625 (experimental).
  k.c: In function `users':
  k.c:4: `STRUCT_UTMP' undeclared (first use in this function)
  k.c:4: (Each undeclared identifier is reported only once
  k.c:4: for each function it appears in.)
  k.c:4: `a' undeclared (first use in this function)
  k.c:4: Tree check: expected class 't', have 'x' (error_mark)
  k.c:4: Internal compiler error in `expand_expr', at expr.c:5781
  Please submit a full bug report.
  See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.


More information about the Gcc-bugs mailing list