Re: gcj: error trying to exec 'ecj1': execvp

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
David Michel wrote:
> 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 !

Works for me.

Check for these files in your build dir:

x86_64-unknown-linux-gnu/libjava/config.log:4908:#define AWT_TOOLKIT "gnu.java.awt.peer.gtk.GtkToolkit"
x86_64-unknown-linux-gnu/libjava/config.status:1403:${ac_dA}AWT_TOOLKIT${ac_dB}AWT_TOOLKIT${ac_dC}"gnu.java.awt.peer.gtk.GtkToolkit"${ac_dD}
x86_64-unknown-linux-gnu/libjava/config.status:1568:${ac_uA}AWT_TOOLKIT${ac_uB}AWT_TOOLKIT${ac_uC}"gnu.java.awt.peer.gtk.GtkToolkit"${ac_uD}
x86_64-unknown-linux-gnu/libjava/include/config.h:5:#define AWT_TOOLKIT "gnu.java.awt.peer.gtk.GtkToolkit"

The only thing I can think of is that you reconfigured but didn't
delete the build dir.

You can just edit config.h by hand.

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.