This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcj and .java files
- To: <gcc at gcc dot gnu dot org>
- Subject: gcj and .java files
- From: The Morsbergers <morsberger at usa dot net>
- Date: Fri, 03 Aug 2001 21:02:52 -0400
I am getting symbol errors when I run gcj against a .java file. I do not get
the errors when I use javac followed by gcj on the .class file.
Error (details below):
gcj -ljava -liconv --main=Test Test.java -o Test
Ok:
javac Test.java
gcj -ljava -liconv --main=Test Test.class -o Test
Error (details below):
gcj -g -ljava -liconv --main=Test Test.class -o Test
Any idea why this is happening? I am willing to fix it but do not know where
to start.
The details are given below:
uname -a
OSF1 es40-unix V4.0 1530 alpha
es40-unix(tst)~ gcj -v
Reading specs from /opt/gcc30/lib/gcc-lib/alphaev6-dec-osf4.0g/3.0/specs
Reading specs from
/opt/gcc30/lib/gcc-lib/alphaev6-dec-osf4.0g/3.0/../../../libgcj.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../configure --prefix=/opt/gcc30 --enable-libgcj
--enable-fast-character --enable-threads=posix
--enable-languages=c,c++,f77,java
Thread model: posix
gcc version 3.0
Test.java
class Test
{
public static void main (String[] args)
{
for( int i=0; i < 1000; i++ )
System.out.println("Hello World, " + i);
}
}
es40-unix(tst)~ gcj -g -ljava -liconv --main=Test Test.java -o Test
mips-tfile:internal error, is already in original symbol table
mips-tfile:internal error, is already in original symbol table
mips-tfile:internal error, is already in original symbol table
mips-tfile:internal error, is already in original symbol table
mips-tfile, /tmp/ccENnDAc.s:73 Invalid .stabs/.stabn directive, value not
found
line: #.stabn 68,0,4,$LM1
mips-tfile, /tmp/ccENnDAc.s:99 Invalid .stabs/.stabn directive, value not
found
line: #.stabn 68,0,5,$LM2
mips-tfile, /tmp/ccENnDAc.s:108 Invalid .stabs/.stabn directive, value not
found
line: #.stabn 68,0,6,$LM3
mips-tfile, /tmp/ccENnDAc.s:159 Invalid .stabs/.stabn directive, value not
found
line: #.stabn 68,0,5,$LM4
mips-tfile, /tmp/ccENnDAc.s:167 Invalid .stabs/.stabn directive, value not
found
line: #.stabn 68,0,7,$LM5
--
David Morsberger