public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andreas Frisch <andreas.frisch@multimedia-labs.de>
To: java@gcc.gnu.org
Subject: Re: gcj static crosscompiling raises issues with boehm-gc
Date: Wed, 06 Oct 2010 15:45:00 -0000	[thread overview]
Message-ID: <20101006154451.913B63148A7C@mail.multimedia-labs.de> (raw)

> This looks completely broken: it seems to be trying to statically link
> gainst libgcj.  Try it without -non_shared.
>
> Andrew.

Hi Andrew, thanks for your prompt help!
linking statically against libgcj is what i actually intend to do to save a 
lot of space on the embedded device with very limited capacity.
other than that, if i omit the -non_shared parameter, then it doesn't seem to 
find the aacskeys.so which is a run-time include of in one of the java files 
where it does a System.loadLibrary("aacskeys");

the resulting error message is the infamous
/dream/oe1.6/dm8000/build/tmp/cross/mipsel/lib/gcc/mipsel-oe-
linux/4.4.4/../../../../mipsel-oe-linux/bin/ld: warning: cannot find entry 
symbol __start; defaulting to 0000000000406960
/tmp/cceZJsQ2.o:(.data+0x5638): undefined reference to `hidden alias for 
java::lang::String* dumphd::aacs::AACSKeys::getVersionString()'
/tmp/cceZJsQ2.o:(.data+0x563c): undefined reference to `hidden alias for void 
dumphd::aacs::AACSKeys::getKeys(java::lang::String*, dumphd::core::KeyData*)'
/tmp/cceZJsQ2.o:(.data+0x5680): undefined reference to `hidden alias for 
java::lang::String* dumphd::aacs::AACSKeys::getVersionString()'
/tmp/cceZJsQ2.o:(.data+0x5694): undefined reference to `hidden alias for void 
dumphd::aacs::AACSKeys::getKeys(java::lang::String*, dumphd::core::KeyData*)'
/dream/oe1.6/dm8000/build/tmp/cross/mipsel/lib/gcc/mipsel-oe-
linux/4.4.4/../../../../mipsel-oe-linux/lib/libgcj.so: undefined reference to 
`__data_start'
collect2: ld returned 1 exit status

cheers
Andreas

             reply	other threads:[~2010-10-06 15:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-06 15:45 Andreas Frisch [this message]
2010-10-06 16:07 ` Andrew Haley
  -- strict thread matches above, loose matches on Subject: below --
2010-10-06 18:50 Andreas Frisch
2010-10-06 19:02 ` David Daney
     [not found] <20101006175323.A6AC03148D76@mail.multimedia-labs.de>
2010-10-06 17:58 ` David Daney
2010-10-06 16:53 Andreas Frisch
2010-10-06 17:07 ` David Daney
2010-10-06  8:43 Andreas Frisch
2010-10-06 14:25 ` Andrew Haley
2010-10-06 15:51   ` David Daney

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=20101006154451.913B63148A7C@mail.multimedia-labs.de \
    --to=andreas.frisch@multimedia-labs.de \
    --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).