gcj: error trying to exec 'ecj1': execvp
David Michel
dmichel76@googlemail.com
Wed Apr 22 11:07:00 GMT 2009
Oh no sorry I didn't configure in srcdir... I did it exactly like you
first told me:
$ svn co http://gcc.gnu.org/svn/gcc/branches/gcc-4_4-branch/
$ mkdir gcc-4_4-branch/obj-x86_64-unknown-linux-gnu
$ cd gcc-4_4-branch/obj-x86_64-unknown-linux-gnu
$ `pwd`/../configure --enable-languages=java
--prefix=/local/gcc-4_4-branch/install --enable-java-home
--enable-java-awt=gtk
sorry about the confusion, I did think it doesn't matter where one
run the configure script so I typed "./configure" instead of
"`pwd`/../configure" (lazyness I guess) .... But I did run it from
gcc-4_4-branch/obj-x86_64-unknown-linux-gnu.
So thanks for pointing that out anyway. I might have done that mistake
in the future.
Looking forward to see what your build will produce !
Cheers
David
2009年4月22日 Andrew Haley <aph@redhat.com>:
> David Michel wrote:
>> just compiled it with
>>>> $ /local/gcc-4_4-branch/install/bin/gcj -O0 -g0 "--classpath=./:"
>> Tool.java -o Tool.out --main=Tool
>>>> and got:
>>>> $ ./Tool.out
>>>>>> $
>> $
>>>> so, 2 empty lines....
>>>> I would have expected something like gnu.java.awt.peer.gtk.GtkToolkit
>> , which is what happens when I use gcj 4.2 already installed
>>>> David.
>>>> 2009年4月22日 Andrew Haley <aph@redhat.com>:
>>> David Michel wrote:
>>>> But I did put use the options:
>>>> $ ./configure --enable-languages=java
>>>> --prefix=/local/gcc-4_4-branch/install --enable-java-home
>>>> --enable-java-awt=gtk
>> Oh no, you configured in srcdir, don't ever do that. I'm surprised
> it built.
>> I'm going to build 4.4 with exactly your options (but not configured
> in srcdir!) to see if I can duplicate the problem.
>> Andrew.
>
More information about the Java
mailing list