GCC GCJ needs ECJ and Other Libraries? -


so downloaded mingw-w64-bin_i686-mingw_20110410.zip here (gcc 4.7 apparently), , discovered had recent version of gcj compiler.

i tried using it, apparently gcj requires ecj1.exe, eclipse compiler java... so, find compatible version of binaries of ecj , associated java libraries needed (libgcj, etc.)?

ideally found on mingw-w64 project page, doesn't seem exist.

(i've tried copying them older gcc version; it doesn't work.)

the cause opensuse version of gcc this: if configure step of compilation of gcc did not find ecj.jar file, ecj1 missing @ time when gcj, has been build, called. ecj.jar can taken ftp://sourceware.org/pub/java/ecj-4.8.jar example.

the 2 options are:

i) put ecj.jar in $home/share/java/ecj.jar, reconfigure gcc ./configure .... --with-ecj-jar=$home/java/ecj.jar , recompile gcc. future compilations gcc not require ecj1 .

ii) put ecj.jar in $home/share/java/ecj.jar , create ecj1(.exe) through compilation gcj -o$home/bin/ecj1(.exe) --main=org.eclipse.jdt.internal.compiler.batch.gccmain $home/share/java/ecj.jar assuming $home/bin in path subsequent calls of gcj.

the thing "broken" here fact gcc 4.8.* not shipped default ecj.jar @ standard place.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -