public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Xingxing Pan <panxingxing@mprc.pku.edu.cn>
To: java@gcc.gnu.org
Subject: Re: libgcj.so: undefined reference to `ip'
Date: Thu, 16 Dec 2010 10:57:00 -0000	[thread overview]
Message-ID: <AANLkTikYUatqXPnTW_XKvcNffrD7DuY=s3x_Z8qQ3Jjs@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimZ_Vdp_-=fMnnrGS75zX80fKSFDzqA-Sb-OLqo@mail.gmail.com>

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
>

      parent reply	other threads:[~2010-12-16 10:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16  3:09 Xingxing Pan
2010-12-16  9:30 ` Andrew Haley
2010-12-16 10:57 ` Xingxing Pan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTikYUatqXPnTW_XKvcNffrD7DuY=s3x_Z8qQ3Jjs@mail.gmail.com' \
    --to=panxingxing@mprc.pku.edu.cn \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).