This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is gcj from gcc 3.3 required to build libswt.so for gcj - SWT integration?


Hi,

I have used gcc 3.2.2 and the Blackdown JDK 1.3.1  to build and run Eclipse 
on PPC Linux and all is fine.

After all of the traffic recently about SWT, I have become very interested 
in the possibility of using SWT with gcj.

So based on the messages here I am 99% of the way there.

I seem to be unable to compile just one file:

 org.eclipse.swt.custom.StyledText.java


All of the others compile fine.


No matter what I try I end up with this error message:

gcj -O2 -fPIC -c org/eclipse/swt/custom/StyledText.java -o 
org/eclipse/swt/custom/StyledText.o
./org/eclipse/swt/custom/StyledText.java:77: Class 
`org.eclipse.swt.custom.StyledText' already defined in 
org/eclipse/swt/custom/StyledText.java:77.
   public class StyledText extends Canvas {
                ^
./org/eclipse/swt/custom/StyledText.java:157: confused by earlier errors, 
bailing out
make: *** [org/eclipse/swt/custom/StyledText.o] Error 1


But StyledText class is only defined once in that file (and it is not 
defined any place else in the swt java files.

This java file will compile with Blackdown JDK 1.3.1.

So I tried to compile from the *.class files generated from this java file 
and I end up exahusting all memory and virtual memory (768 meg main and 
over 1 gig of various swap partitions).

So I appear to be stuck.  Is gcj from gcc 3.3 a requirement to compile this 
file or should I be able to compile it under gcj from gcc 3.2.2?

Or is this a PPC Liux gcj specific issue?

Is there anything like -save-temps or anyt other debugging switches that 
will give me an idea of what is generating this error message to help 
track it down?

Thanks,

Kevin


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