[Bug target/69988] libgo.so: undefined reference to `__unorddf2'

glaubitz at physik dot fu-berlin.de gcc-bugzilla@gcc.gnu.org
Thu Mar 10 10:28:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69988

--- Comment #13 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Ok, adding /lib/powerpcspe-linux-gnu/libgcc_s.so.1 manually to the gcj command
line actually helps:

/build/gcc-5-7TFF10/gcc-5-5.3.1/build/./gcc/gcj
-B/build/gcc-5-7TFF10/gcc-5-5.3.1/build/powerpc-linux-gnuspe/libjava/
-B/build/gcc-5-7TFF10/gcc-5-5.3.1/build/./gcc/ -B/usr/powerpc-linux-gnuspe/bin/
-B/usr/powerpc-linux-gnuspe/lib/ -isystem /usr/powerpc-linux-gnuspe/include
-isystem /usr/powerpc-linux-gnuspe/sys-include -isystem
/build/gcc-5-7TFF10/gcc-5-5.3.1/build/sys-include -g -O2 -Wl,-z -Wl,relro -o
.libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc 
-L/build/gcc-5-7TFF10/gcc-5-5.3.1/build/powerpc-linux-gnuspe/libjava/.libs
-L/build/gcc-5-7TFF10/gcc-5-5.3.1/build/powerpc-linux-gnuspe/libjava
./.libs/libgcj.so -lpthread /lib/powerpcspe-linux-gnu/libgcc_s.so.1 -lrt -ldl
-lz -Wl,-rpath -Wl,/usr/lib/powerpc-linux-gnuspe

I assume I was just missing the -L option which is why adding the path directly
works.

Adrian


More information about the Gcc-bugs mailing list