This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcj segmentation fault
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Giovanni Visciano <giovannivisciano at virgilio dot it>
- Cc: gcc at sources dot redhat dot com
- Date: Tue, 21 Oct 2003 17:51:56 -0400 (EDT)
- Subject: Re: gcj segmentation fault
On Tue, 21 Oct 2003, Giovanni Visciano wrote:
> ./configure --prefix=/home/gio/Gcc3.3.2 --program-suffix=-3.3.2
> make
> make install
>
> added to my PATH /home/gio/Gcc3.3.2/bin,
> and to LD_LIBRARY_PATH /home/gio/Gcc-3.3.2/lib
>
> gcc-3.3.2 woks without problems.
> gcj-3.3.2 compiles my java programs but when I run them:
>
> ex.
> gcj-3.3.2 --main=HelloWorld HelloWorld.java
> (a.out created)
> ./a.out
> (segmentation fault)
There aren't enough clues in your message to guess what may have gone
wrong.
Try running "ldd a.out" to verify it is linking to the libgcj.so in
$prefix/lib. Try running under gdb to get a stack trace.
Jeff