* libgcj.so: undefined reference to `ip'
@ 2010-12-16 3:09 Xingxing Pan
2010-12-16 9:30 ` Andrew Haley
2010-12-16 10:57 ` Xingxing Pan
0 siblings, 2 replies; 3+ messages in thread
From: Xingxing Pan @ 2010-12-16 3:09 UTC (permalink / raw)
To: java
Hi, guys.
I'm compiling gcc-4.4.2 on arm similar platform and getting a fail
during the link stage.
Using command `nm' to read symbols in libgcj.so, i find the symbol
`ip' is undefined.
I grep the libjava directory, but cannot find the definition for `ip'.
Could someone tell me where its definition and use which library to
resolve the reference in libgcj.so?
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: unicore32-linux-c++ -shared -nostdlib
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o
.libs/gij.o -Wl,-rpath
-Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/.libs
./.libs/libgcj.so
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib
-lpthread -lrt -ldl
/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/libstdc++.so
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2
/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib/libstdc++.so
-lm -lc -lgcc_s
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o
-Wl,-Bsymbolic-functions -Wl,-soname -Wl,libgij.so.10 -o
.libs/libgij.so.10.0.0
libtool: link: unicore32-linux-c++ -shared -nostdlib
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o
.libs/jni-libjvm.o -Wl,-rpath
-Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/.libs
./.libs/libgcj.so
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib
-lpthread -lrt -ldl
/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/libstdc++.so
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2
/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib/libstdc++.so
-lm -lc -lgcc_s
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o
-Wl,-Bsymbolic-functions -Wl,-soname -Wl,libjvm.so -o
.libs/libjvm.so
./.libs/libgcj.so: undefined reference to `ip'
collect2: ld returned 1 exit status
make[3]: *** [gcj-dbtool] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/libgcj.so: undefined reference to `ip'
collect2: ld returned 1 exit status
make[3]: *** [jv-convert] Error 1
Thanks,
Forandom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libgcj.so: undefined reference to `ip'
2010-12-16 3:09 libgcj.so: undefined reference to `ip' Xingxing Pan
@ 2010-12-16 9:30 ` Andrew Haley
2010-12-16 10:57 ` Xingxing Pan
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Haley @ 2010-12-16 9:30 UTC (permalink / raw)
To: java
On 12/16/2010 03:09 AM, Xingxing Pan wrote:
> Hi, guys.
>
> I'm compiling gcc-4.4.2 on arm similar platform and getting a fail
> during the link stage.
> Using command `nm' to read symbols in libgcj.so, i find the symbol
> `ip' is undefined.
> I grep the libjava directory, but cannot find the definition for `ip'.
> Could someone tell me where its definition and use which library to
> resolve the reference in libgcj.so?
Go through all the object files in the build dir:
find . -name '*.o' | while read i
do
echo $i
nm $i | egrep '\<ip\>'
done
You may get a lot of false positives, but see how that goes.
Andrew.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libgcj.so: undefined reference to `ip'
2010-12-16 3:09 libgcj.so: undefined reference to `ip' Xingxing Pan
2010-12-16 9:30 ` Andrew Haley
@ 2010-12-16 10:57 ` Xingxing Pan
1 sibling, 0 replies; 3+ messages in thread
From: Xingxing Pan @ 2010-12-16 10:57 UTC (permalink / raw)
To: java
The fail is caused by my erroneous use of assembly instruction that
results in part of the instruction is treated as an identifier. Forget
it.
2010/12/16 Xingxing Pan <forandom@gmail.com>:
> Hi, guys.
>
> I'm compiling gcc-4.4.2 on arm similar platform and getting a fail
> during the link stage.
> Using command `nm' to read symbols in libgcj.so, i find the symbol
> `ip' is undefined.
> I grep the libjava directory, but cannot find the definition for `ip'.
> Could someone tell me where its definition and use which library to
> resolve the reference in libgcj.so?
>
> libtool: link: warning:
> `/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
> seems to be moved
> libtool: link: warning:
> `/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
> seems to be moved
> libtool: link: warning:
> `/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
> seems to be moved
> libtool: link: warning:
> `/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
> seems to be moved
> libtool: link: unicore32-linux-c++ -shared -nostdlib
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o
> .libs/gij.o -Wl,-rpath
> -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
> -Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
> -Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
> -Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/.libs
> ./.libs/libgcj.so
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
> -L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib
> -lpthread -lrt -ldl
> /home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/libstdc++.so
> -L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2
> /home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib/libstdc++.so
> -lm -lc -lgcc_s
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o
> -Wl,-Bsymbolic-functions -Wl,-soname -Wl,libgij.so.10 -o
> .libs/libgij.so.10.0.0
> libtool: link: unicore32-linux-c++ -shared -nostdlib
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o
> .libs/jni-libjvm.o -Wl,-rpath
> -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
> -Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
> -Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
> -Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/.libs
> ./.libs/libgcj.so
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava
> -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
> -L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib
> -lpthread -lrt -ldl
> /home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/libstdc++.so
> -L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2
> /home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib/libstdc++.so
> -lm -lc -lgcc_s
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o
> /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o
> -Wl,-Bsymbolic-functions -Wl,-soname -Wl,libjvm.so -o
> .libs/libjvm.so
> ./.libs/libgcj.so: undefined reference to `ip'
> collect2: ld returned 1 exit status
> make[3]: *** [gcj-dbtool] Error 1
> make[3]: *** Waiting for unfinished jobs....
> ./.libs/libgcj.so: undefined reference to `ip'
> collect2: ld returned 1 exit status
> make[3]: *** [jv-convert] Error 1
>
> Thanks,
> Forandom
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-16 10:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-16 3:09 libgcj.so: undefined reference to `ip' Xingxing Pan
2010-12-16 9:30 ` Andrew Haley
2010-12-16 10:57 ` Xingxing Pan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).