undefined `__terminate_set_func@GCC_3.0'

Per Bothner per@bothner.com
Mon Feb 5 13:44:00 GMT 2001


Libjava from cvs is failing to build.  The problem is because the new
libgcc_s.so is not being linked when jv-convert is built:

/home/bothner/GNU/linux-gcc/gcc/gcj -B/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libjava/ -B/home/bothner/GNU/linux-gcc/gcc/ -g -ffloat-store -o .libs/jv-convert --main=gnu.gcj.convert.Convert gnu/gcj/convert/.libs/BytesToUnicode.o gnu/gcj/convert/.libs/Convert.o gnu/gcj/convert/.libs/Input_8859_1.o gnu/gcj/convert/.libs/Input_ASCII.o gnu/gcj/convert/.libs/Input_EUCJIS.o gnu/gcj/convert/.libs/Input_JavaSrc.o gnu/gcj/convert/.libs/Input_SJIS.o gnu/gcj/convert/.libs/Input_UTF8.o gnu/gcj/convert/.libs/Input_iconv.o gnu/gcj/convert/.libs/IOConverter.o gnu/gcj/convert/.libs/Output_8859_1.o gnu/gcj/convert/.libs/Output_ASCII.o gnu/gcj/convert/.libs/Output_EUCJIS.o gnu/gcj/convert/.libs/Output_JavaSrc.o gnu/gcj/convert/.libs/Output_SJIS.o gnu/gcj/convert/.libs/Output_UTF8.o gnu/gcj/convert/.libs/Output_iconv.o gnu/gcj/convert/.libs/UnicodeToBytes.o  -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libjava ./.libs/libgcj.so -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libjava/.!
./libstdc++-v3/libsupc++ -lm -ldl ./../boehm-gc/.libs/libgcjgc.so -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libjava/../boehm-gc/.libs -lpthread ./../zlib/.libs/libzgcj.so -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libjava/../zlib/.libs -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libjava/.libs -Wl,--rpath -Wl,/home/bothner/GNU/linux/lib
./.libs/libgcj.so: undefined reference to `__terminate_set_func@GCC_3.0'
collect2: ld returned 1 exit status

Explicitly adding -L/home/bothner/GNU/linux-gcc/gcc to the link command
line fixes the problem.  But I'm not sure what the "correct" fix is.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


More information about the Java mailing list