This is the mail archive of the gcc-help@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]

Building gcj with enable-libgcj-debug.


I'm trying to build gcj with 

  /usr/local/src/gcc-4.1.1/src/configure \
    --prefix=/usr/local/packages/gcc-4.1.1 \
    --enable-languages=c,c++,java \
    --enable-libgcj-debug

However "make" results in a failure on _Jv_Abort:

  /usr/local/src/gcc-4.1.1/build/gcc/gcj
  -B/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libjava/
  -B/usr/local/src/gcc-4.1.1/build/gcc/ -ffloat-store -fomit-frame-pointer -g -O2
  -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc
  -L/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libjava
  -L/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libjava/.libs
  ./.libs/libgcj.so
  -L/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libstdc++-v3/src
  -L/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
  -lpthread -ldl -L/usr/local/src/gcc-4.1.1/build/./gcc
  -L/usr/local/packages/gcc-4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1
  -L/usr/local/packages/gcc-4.1.1/lib/gcc/i686-pc-linux-gnu/4.1.1/../../..
  -lgcc_s -lc -lgcc_s -Wl,--rpath -Wl,/usr/local/packages/gcc-4.1.1/lib
  ./.libs/libgcj.so: undefined reference to `_Jv_Abort'
  collect2: ld returned 1 exit status
  make[3]: *** [jv-convert] Error 1
  make[3]: Leaving directory
  `/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libjava'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory
  `/usr/local/src/gcc-4.1.1/build/i686-pc-linux-gnu/libjava'
  make[1]: *** [all-target-libjava] Error 2
  make[1]: Leaving directory `/usr/local/src/gcc-4.1.1/build'
  make: *** [all] Error 2

If I use

  /usr/local/src/gcc-4.1.1/src/configure \
    --prefix=/usr/local/packages/gcc-4.1.1 \
    --enable-languages=c,c++,java

"make" runs to completion.

How do I build gcj with enable-libgcj-debug?


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