This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problem in mangling 'extern "java"' function in libjava
- To: <java-discuss at sources dot redhat dot com>, <gcc-bugs at gcc dot gnu dot org>
- Subject: problem in mangling 'extern "java"' function in libjava
- From: "Jeff Sparkes" <jsparkes at internetivity dot com>
- Date: Wed, 3 Jan 2001 10:52:05 -0500
I'm compiling from CVS (yesterday specifically, but it's been happening for
a while)
on Debian Linux i386. I'm compiling gcj, with libjava. I've been getting
the following abort from prims.cc. I've added a debug_tree just before the
abort to get more info.
It seems that the mangler doesn't handle types declared in extern "java". I
certainly don't know how to handle it, but I'm sure someone does.
/home/build/tools/gcc-linux/gcc/g++ -B/home/build/tools/gcc-linux/gcc/ -nost
dinc++ -nostdinc++ -I/home/build/tools/gcc/libstdc++-v3/include -I/home/buil
d/tools/gcc/libstdc++-v3/include/std -I/home/build/tools/gcc/libstdc++-v3/in
clude/c_std -I/home/build/tools/gcc-linux/i686-pc-linux-gnu/libstdc++-v3/inc
lude -I/home/build/tools/gcc/libstdc++-v3/libsupc++ -I/home/build/tools/gcc-
linux/i686-pc-linux-gnu/libstdc++-v3/libio -I/home/build/tools/gcc/libstdc++
-v3/libio -I/home/build/tools/gcc/libstdc++-v3/libmath -L/home/build/tools/g
cc-linux/i686-pc-linux-gnu/libstdc++-v3/src -L/home/build/tools/gcc-linux/i6
86-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -
B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -DHAVE_CONFIG_H -I. -I/home/build/tools
/gcc/libjava -I./include -I/home/build/tools/gcc/libjava -Iinclude -I/home/b
uild/tools/gcc/libjava/include -I/home/build/tools/gcc/libjava/../boehm-gc -
I./../boehm-gc -DLINUX_THREADS=1 -D_REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -D
JAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -I/home/build/tools/gcc/libjava/liblt
dl -I/home/build/tools/gcc/libjava/libltdl -I/home/build/tools/gcc/libjava/.
./gcc -I/home/build/tools/gcc/libjava/../include -I/home/build/tools/gcc/lib
java/../zlib -I/home/build/tools/gcc/libjava/../libffi/include -I../libffi/i
nclude -fno-rtti -fvtable-thunks -fasynchronous-exceptions -fdollars-in-iden
tifiers -D__NO_MATH_INLINES -ffloat-store -W -Wall -D_GNU_SOURCE -g -O2 -fvt
able-thunks -D_GNU_SOURCE -Wp,-MD,.deps/prims.pp -c
/home/build/tools/gcc/libjava/prims.cc -fPIC -DPIC -o .libs/prims.o
<real_type 0x40024480 __java_float type_3 type_6 SF
size <integer_cst 0x4001bf80 type <integer_type 0x40020380
bit_size_type> constant 32>
unit size <integer_cst 0x4001bfa0 type <integer_type 0x40020300 unsigned
int> constant 4>
align 32 symtab 653 alias set -1 precision 32>
In file included from java/lang/String.h:9,
from /home/build/tools/gcc/libjava/java/lang/Class.h:18,
from /home/build/tools/gcc/libjava/gcj/cni.h:17,
from /home/build/tools/gcc/libjava/prims.cc:32:
/home/build/tools/gcc/libjava/gcj/array.h:59: Internal error #20000409.
/home/build/tools/gcc/libjava/gcj/array.h:59: Internal compiler error in
write_builtin_type, at cp/mangle.c:1485
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [prims.lo] Error 1
make[2]: Leaving directory
`/build/tools/gcc-linux/i686-pc-linux-gnu/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/build/tools/gcc-linux/i686-pc-linux-gnu/libjava'
make: *** [all-target-libjava] Error 2