GCC GCJ需要ECJ和其他库? [英] GCC GCJ needs ECJ and Other Libraries?

查看:227
本文介绍了GCC GCJ需要ECJ和其他库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我刚从 mingw-w64-bin_i686-mingw_20110410.zip / Toolchains%20targetting%20Win64 / Automated%20Builds /rel =nofollow> here (显然GCC 4.7),并发现它有一个非常新的GCJ编译器版本。



我尝试过使用它,但显然 gcj 需要 ecj1.exe ,它是Java的Eclipse编译器...所以,我在哪里可以找到一个兼容版本的ECJ二进制文件和相关的Java库(libgcj等)?

理想情况下,可以在MinGW-w64项目页面上找到,但它似乎并不存在。



(我已经尝试将它们从较旧的GCC版本复制过来; 不起作用


解决方案

一个openSUSE版本的gcc的原因基本上是这样的:
如果配置步骤gcc的编译没有找到ecj.jar
fi le,ecj1会在gcj刚刚编译时调用
时丢失。
ecj.jar可以从 ftp://sourceware.org/pub/中获取例如java / ecj-4.8.jar



这两个选项是:

将ecj.jar放入$ HOME / share / java / ecj.jar中,用
./configure重新配置gcc。--with-ecj-jar = $ HOME / java / ecj。 jar
并重新编译gcc。未来的gcc编译将不需要
ecj1。


$ b ii)将ecj.jar放入$ HOME / share / java / ecj.jar并创建ecj1( .exe)
通过编译,如
gcj -o $ HOME / bin / ecj1(.exe)--main = org.eclipse.jdt.internal.compiler.batch.GCCMain $ HOME / share / java / ecj.jar
假设$ HOME / bin在后续的gcj调用中位于PATH中。



这里实际上是破碎的东西事实上,gcc 4.8。*没有在某个标准位置使用ecj.jar默认运行


So I just downloaded mingw-w64-bin_i686-mingw_20110410.zip from here (GCC 4.7 apparently), and discovered it had a very recent version of the GCJ compiler.

I tried using it, but apparently gcj requires ecj1.exe, which is the Eclipse compiler for Java... so, where do I find a compatible version of the binaries of ECJ and the associated Java libraries that are needed (libgcj, etc.)?

Ideally this would be found on the MinGW-w64 project page, but it doesn't seem to exist.

(I've already tried copying them from a slightly older GCC version; it doesn't work.)

解决方案

The cause for an openSUSE version of the gcc is basically this: If the configure step of the compilation of gcc did not find the ecj.jar file, ecj1 will be missing at the time when gcj, which has just been build, is called. ecj.jar can be taken from ftp://sourceware.org/pub/java/ecj-4.8.jar for example.

The two options are:

i) Put ecj.jar in $HOME/share/java/ecj.jar, reconfigure gcc with ./configure .... --with-ecj-jar=$HOME/java/ecj.jar and recompile gcc. Future compilations with that gcc will not require ecj1 .

ii) Put ecj.jar in $HOME/share/java/ecj.jar and create ecj1(.exe) through a compilation like gcj -o$HOME/bin/ecj1(.exe) --main=org.eclipse.jdt.internal.compiler.batch.GCCMain $HOME/share/java/ecj.jar assuming that the $HOME/bin is in the PATH for subsequent calls of gcj.

The thing that is actually "broken" here the fact that gcc 4.8.* is not shipped by default with ecj.jar at some standard place.

这篇关于GCC GCJ需要ECJ和其他库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆