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]

egcs gives internal compiler error



Hi, and thanks for your work on egcs/gcc.

Here is a bug report. It's an internal compiler error.

I don't know enough of C++ to know if the code that triggers the bug is 
correct or not. The code is from the mnemonic web browser.

My machine is a Pentium Pro 180 overclocked to 200, with 96 megabytes of main 
memory. I am quite certain that the problem is not hardware related, since the 
processor has ran overclocked and reliable for three years, and I can 
reproduce the problem with different versions of egcs.

I use Linux 2.2.10, glibc 2.1.1 and binutils 2.9.1.0.25.

The version of egcs is what I got when I today (July 26 1999) checked out the 
gcc 2.95 branch from CVS. I compiled and installed it as follows:

../egcs/configure --prefix=/usr/local/egcs-cvs-990726 --enable-threads
--enable-version-specific-runtime-libs
make -j 3 bootstrap
make install

(All in a separate build directory running as root.)

Here is the full command line with -v --save-temps added and the output. Also 
included as an attachment to this mail is the thread.ii file.



mirty:~/mnemonic/mnemonic-core/src$ /usr/local/egcs-cvs-990726/bin/g++ -v --save-temps -D_REENTRANT -DPREFIX=\"/home/erikr/mnemonic-install\" -g -Wall -I. -I../messages -I../include  -I/home/erikr/mnemonic-install/include -I../src -I../src/include  -g -DOIL=\"\"  -I../include -I../include/mnemonic -fPIC -c -o thread.o thread.cc
Reading specs from /usr/local/egcs-cvs-990726/lib/gcc-lib/i686-pc-linux-gnu/2.95/specs
gcc version 2.95 19990726 (prerelease)
 /usr/local/egcs-cvs-990726/lib/gcc-lib/i686-pc-linux-gnu/2.95/cpp -lang-c++ -v -I. -I../messages -I../include -I/home/erikr/mnemonic-install/include -I../src -I../src/include -I../include -I../include/mnemonic -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -g -g -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__PIC__ -D__pic__ -D_REENTRANT -DPREFIX="/home/erikr/mnemonic-install" -DOIL="" thread.cc thread.ii
GNU CPP version 2.95 19990726 (prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 .
 ../include
 ../src
 ../include
 ../include/mnemonic
 /usr/local/qt/include
 /usr/local/qt/include
 /usr/local/egcs-cvs-990726/lib/gcc-lib/i686-pc-linux-gnu/2.95/include/g++
 /usr/local/include
 /usr/local/egcs-cvs-990726/lib/gcc-lib/i686-pc-linux-gnu/2.95/../../../../i686-pc-linux-gnu/include
 /usr/local/egcs-cvs-990726/lib/gcc-lib/i686-pc-linux-gnu/2.95/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/egcs-cvs-990726/lib/gcc-lib/i686-pc-linux-gnu/2.95/cc1plus thread.ii -quiet -dumpbase thread.cc -g -g -Wall -version -fPIC -o thread.s
GNU C++ version 2.95 19990726 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 2.95 19990726 (prerelease).
In file included from thread.cc:27:
../include/mnemonic/ptr.hh: In instantiation of `ptr<untyped_interest>':
../include/mnemonic/messagebase.hh:171:   instantiated from here
../include/mnemonic/ptr.hh:45: Internal compiler error.
../include/mnemonic/ptr.hh:45: Please submit a full bug report.
../include/mnemonic/ptr.hh:45: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for instructions.



The installation instructions for mnemonic told me to set LD_LIBRARY_PATH 
to "/home/erikr/mnemonic-install:/home/erikr/mnemonic-install/msg".
(Though I cannot imagine that it would matter anything in this case.)

I hope this report will be useful to you.

-- 
http://www.bahnhof.se/~mirty/
I am sorry for my bad English (eller svenska).


thread.ii.gz


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