gcj: error trying to exec 'ecj1': execvp

David Michel <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Hi All,

I recently installed the newest gcj 4.4 (see
http://gcc.gnu.org/ml/java/2009-03/msg00028.html) and I am trying to
compile a awt/swing project.

As I have an older version of gcj (4.2) installed on the system, I
call gcj with its complete path and I updated LD_LIBRARY_PATH such as

$ echo $LD_LIBRARY_PATH
:/usr/local/lib/:/local/gcc-4_4-branch/install/lib/

So I'm trying to compile foo.java into its object file foo.o like so:

$ /local/gcc-4_4-branch/install/bin/gcj -O0 -g0 -v  -c foo.java -o foo.o
Using built-in specs.
Reading specs from
/local/gcc-4_4-branch/install/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: i686-pc-linux-gnu
Configured with:
/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../configure
--enable-languages=java --prefix=/local/gcc-4_4-branch/install
--enable-java-home --enable-java-awt=gtk
Thread model: posix
gcc version 4.4.0 20090331 (prerelease) (GCC)
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-O0' '-g0' '-v' '-c' '-o'
'foo.o' '-fbootclasspath=./:/local/gcc-4_4-branch/install/share/java/libgcj-4.4.0.jar'
'-shared-libgcc' '-mtune=generic'
 ecj1 foo.java -g0
-fbootclasspath=./:/local/gcc-4_4-branch/install/share/java/libgcj-4.4.0.jar
-g0 -fsource=1.5 -ftarget=1.5 -fzip-dependency /tmp/cc3BLQiG.zip
-fzip-target /tmp/ccQkVPqc.jar
gcj: error trying to exec 'ecj1': execvp: No such file or directory

How can I solve this ? Isn't ecj a reference to the Eclipse java
compiler (what is it doing with gcc) ? and what is execvp ?

Many thanks in advance for your help!

David
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.