This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]