Re: Mixing BC and CNI in the same executable

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 01/25/2010 01:09 PM, Stephen Kell wrote:
>> You should be OK.  Tell us how you linked it all.
> 
> Here's the command that builds my executable (somewhat wrapped).
> 
> gcj -fno-eliminate-unused-debug-symbols
> -fno-eliminate-unused-debug-types -findirect-dispatch
> -fno-indirect-classes -fpic -g3
> --classpath=./java:/home/stephen/work/devel/cake/src/antlr-runtime-3.1.3.jar:/home/stephen/opt/lib/java/antlr-3.1.3.jar:
> -Wall  -L../../dwarf/libdwarfpp/src -L/home/stephen/opt/lib
> -L../../c++-fileno/lib -L../../libsrk31c++ -Wl,-R.
> java/cake/CloneableTree.o java/cake/InternalError.o
> java/cake/SemanticError.o java/cake/TreewalkError.o  alias.o cake.o
> cppcatch.o derive.o dwarf.o exists.o javacatch.o link.o main.o module.o
> pred.o supplementary.o util.o  parser/parser.a  antlr-runtime.jar.so
> stringtemplate.jar.so -lsrk31c++ -Wl,--whole-archive -ldwarf
> -Wl,--no-whole-archive -ldwarfpp -lfileno -lelf -lstdc++ -o "cake" 
> 
> I had been compiling with -fPIC. I tried changing it to -fpic just in
> case, but no change. I've pasted a larger tail-end chunk of my build
> log below, showing gcj and g++ compiler invocations.

Thanks.

I've seen something like this years ago, but I can't remember what
caused it.  I expect it's something quite simple, but I can't tell
from what you've posted here.

If you can make a self-contained test case theat reproduces the
problem I'll debug it.

Andrew.
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.