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]

Internal error crashing compolation of gcc-2.95.2


Dear Sires,
    I just downloaded gcc-2.95.2 and tried to compile it on my system
(Redhat 5.2 upgraded to glib 1.2 and kernal 2.2.5-15) and it crashes
during the make fairly hard while it is being made.
It survives up until it tries to run isself. Then it dies with an
internal compiler error. I attached a printout of what 'make' produces
in errors. I am currently using gcc version 2.91.66

On a seperate note, the reason I am trying to use the updated version of
gcc is because I am trying to use ifstreams with g++ and the program
core dumps everytime I try to use it. I attached the program and the
sample file I am running it on. I compile it with "g++ -g -o text
text.cpp". Is this correct for use with ifstreams? Are there other
libraries or include files I need to attach?? Whats going on?? Whats a
system error 11??
Thanks a lot!!

Confused,
Ben Schleimer
#include <stdio.h>
#include <fstream.h>

int main(int argc, char **argv) {
  if(argc != 2) {
    cerr << " Not enough args. Needs at least one." << endl;
    exit(1);
  }

  cout << argv[1] << endl;
  ifstream* inp = new ifstream(argv[1]);
  //inp->open(argv[1]);

  if(!inp) {
    cerr << "cannot open " << argv[1] << endl;
    exit(1);
  }

  char token;
  if(!inp->fail()) {
    while(inp->get(token)) {
      cout << token << endl;
    }
  }
}
fred out in side
bye bye


xgcc: Internal compiler error: program cpp got fatal signal 11
make[1]: *** [SYSCALLS.c.X] Error 1
make: *** [all-gcc] Error 2
testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bensch/gcc-2.95.2/libiberty/testsuite'
make[1]: Leaving directory `/home/bensch/gcc-2.95.2/libiberty'
make[1]: Entering directory `/home/bensch/gcc-2.95.2/texinfo'
make all-recursive
make[2]: Entering directory `/home/bensch/gcc-2.95.2/texinfo'
Making all in intl
make[3]: Entering directory `/home/bensch/gcc-2.95.2/texinfo/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bensch/gcc-2.95.2/texinfo/intl'
Making all in lib
make[3]: Entering directory `/home/bensch/gcc-2.95.2/texinfo/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bensch/gcc-2.95.2/texinfo/lib'
Making all in makeinfo
make[3]: Entering directory `/home/bensch/gcc-2.95.2/texinfo/makeinfo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bensch/gcc-2.95.2/texinfo/makeinfo'
make[2]: Leaving directory `/home/bensch/gcc-2.95.2/texinfo'
make[1]: Leaving directory `/home/bensch/gcc-2.95.2/texinfo'
make[1]: Entering directory `/home/bensch/gcc-2.95.2/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/bensch/gcc-2.95.2/etc'
make[1]: Entering directory `/home/bensch/gcc-2.95.2/gcc'
(cd intl && make all)
make[2]: Entering directory `/home/bensch/gcc-2.95.2/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bensch/gcc-2.95.2/gcc/intl'
rm -f SYSCALLS.c tmp-SYSCALLS.s
cat ./sys-types.h ./sys-protos.h > SYSCALLS.c
/home/bensch/gcc-2.95.2/gcc/xgcc -B/home/bensch/gcc-2.95.2/gcc/ -B/usr/local/i586-pc-linux-gnu/bin/ -I/usr/local/i586-pc-linux-gnu/include  -DIN_GCC     -g -O2 -I./include     -I. -I. -I./config -I./../include \
  -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c
make[1]: Leaving directory `/home/bensch/gcc-2.95.2/gcc'

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