GCC 2.95.2 Linux internal compiler error
Gordon German
gordon@ned.dem.csiro.au
Mon Apr 17 16:34:00 GMT 2000
Dear all,
ÃÂ ÃÂ ÃÂ I am getting an internal compiler error when using
GCC 2.95.2 to compile the OSEÃÂ library (a C++ library) on my Athelon
Linux box. The problem occurs when the compiler tries to compile the first
file requiring -DEXPAND_TEMPLATES. The particular line from the Makefile
is:
/usr/bin/g++ÃÂ ÃÂ -g -DCXX_GNU -DCXX_GNU2_95_2 -DCXX_CYGNUS -Wall
-Woverloaded-virtual -Wno-non-virtual-dtor -DHAVE_EXCEPTIONSÃÂ -V 2.95.2
-pipeÃÂ -IX86_LINUX_dbg -I../../include -DOTCLIB_TRACE -I./../../config/X86_LINUXÃÂ ÃÂ
-DSYS_X86_LINUXÃÂ ÃÂ -c -DEXPAND_TEMPLATES -fexternal-templatesÃÂ ÃÂ
mksrc.cc -o X86_LINUX_dbg/mksrc.o
which reports the following errors:
cc1plus: warning: -fexternal-templates is deprecated.
cc1plus: warning: Please see the documentation for details.
mksrc.cc:141: warning: ANSI C++ forbids declaration `main' with no
type
../../include/OTC/collctn/cursor.c: In instantiation of `OTC_Cursor<APP_ConfigItem>::clone()':
../../include/OTC/collctn/iterator.hh:93:ÃÂ ÃÂ instantiated
from here
../../include/OTC/collctn/cursor.c:72: Internal compiler error.
../../include/OTC/collctn/cursor.c:72: Please submit a full bug report.
../../include/OTC/collctn/cursor.c:72: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport >
for instructions.
make[2]: *** [X86_LINUX_dbg/mksrc.o] Error 1
make[2]: Leaving directory `/home/zeppo0/geobench/tools/ose-5.2pl3/bin/mksrc'
make[1]: *** [install.subdirs] Error 1
make[1]: Leaving directory `/home/zeppo0/geobench/tools/ose-5.2pl3/bin'
make: *** [install.subdirs] Error 1
ÃÂ
I've run a --save-temp option to create a file (mksrc.ii.gz) which I've
attached to this email. The command I used was:
gcc -v --save-temps -g -DCXX_GNU -DCXX_GNU2_95_2 -DCXX_CY
GNUS -Wall -Woverloaded-virtual -Wno-non-virtual-dtor -DHAVE_EXCEPTIONS
-V 2.95.
2 -pipe -IX86_LINUX_dbg -I../../include -DOTCLIB_TRACE -I./../../config/X86_LINU
X -DSYS_X86_LINUX -c -DEXPAND_TEMPLATES -fexternal-templates mksrc.cc
which gave the following screen output:
ÃÂ
gcc.colorgcc: Warning: -pipe ignored since -save-temps specified
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
ÃÂ /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/cpp -lang-c++ -v
-IX86_LINUX_dbg -I
../../include -I./../../config/X86_LINUX -D__GNUC__=2 -D__GNUG__=2
-D__GNUC_MINO
R__=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 -Wall-Woverloaded-virtual -Wno-non-virtual-dtor -Acpu(i386) -Amachine(i386)
-Di386 -D
__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium
-D__pentium__
ÃÂ -DCXX_GNU -DCXX_GNU2_95_2 -DCXX_CYGNUS -DHAVE_EXCEPTIONS -DOTCLIB_TRACE
-DSYS_X
86_LINUX -DEXPAND_TEMPLATES mksrc.cc mksrc.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
ÃÂ X86_LINUX_dbg
ÃÂ ../../include
ÃÂ ../../config/X86_LINUX
ÃÂ /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/../../../../include/g++-3
ÃÂ /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/../../../../i586-mandrake-linux/inc
lude
ÃÂ /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/include
ÃÂ /usr/include
End of search list.
cc1plus: warning: Please see the documentation for details.
GNU C++ version 2.95.2 19991024 (release) (i586-mandrake-linux) compiled
by GNU
C version 2.95.2 19991024 (release).
mksrc.cc:141: warning: ANSI C++ forbids declaration `main' with no
type
../../include/OTC/collctn/cursor.c: In instantiation of `OTC_Cursor<APP_ConfigItem>::clone()':
../../include/OTC/collctn/iterator.hh:93:ÃÂ ÃÂ instantiated
from here
../../include/OTC/collctn/cursor.c:72: Internal compiler error.
../../include/OTC/collctn/cursor.c:72: Please submit a full bug report.
../../include/OTC/collctn/cursor.c:72: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport >
for instructions.
This OSE library has been installed (from basically the same source
tree) on both the SGI Irix and DEC Alpha and is supposed to be configurable
for the LINUX_X86 system. And, as usual, this error occurs at almost the
end of the build process :-(
Many thanks for your attention,
ÃÂ ÃÂ ÃÂ Gordon German
-------------------------------------------------------------
Dr. G.W.H. German
Division of Exploration and Mining
Commonwealth Scientific and Industrial Research Organisation
Nedlands Laboratory
39 Fairway, Nedlands
Western Australia 6009
phone : +618 9389 8421
email: gordon@cs.curtin.edu.au
------------------------------------------------------------
ÃÂ
mksrc.ii.gz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mksrc.ii.gz
Type: application/x-gzip
Size: 32087 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000417/40b2656b/attachment.bin>
More information about the Gcc-bugs
mailing list