Re: problem with GCJ while running java code

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Cesc wrote:
> 
> 
> Andrew John Hughes wrote:
>>
>> download_ecj will obtain the required ecj JAR file.  ecj1 is a script
>> or binary that executes the GCCMain class in this  First check that
>> there isn't one in your GCJ build, but not on your path.  If you can't
>> find one, a script called ecj1 containing:
>>
>> #!/bin/sh
>>
>> gij --classpath <path to ecj.jar> \
>>    org.eclipse.jdt.internal.compiler.batch.GCCMain \
>>    ${1+"$@"}
>>
>> or
>>
>> gcj -oecj1 --main=org.eclipse.jdt.internal.compiler.batch.GCCMain ecj.jar
>>
>>
> 
> Thank you very much Andrew, I really appreciate your help.
> 
> I did ./arm-linux-gnueabi-gcj -oecj1
> --main=org.eclipse.jdt.internal.compiler.batch.GCCMain ecj.jar
> 
> but now I'm getting this error:
> 
> as: unrecognized option `-meabi=4'

Works for me.  Maybe you have an old version of as?  What does

  as -version?

say?  

What does

  arm-linux-gnueabi-gcj -verbose -save-temps -oecj1 --main=org.eclipse.jdt.internal.compiler.batch.GCCMain ecj.jar

say?

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.