Re: gcj static crosscompiling raises issues with boehm-gc

Andreas Frisch <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.