public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/31223]  New: [regression] indirect dispatch not working with static builds
@ 2007-03-16 12:55 mtrudel at gmx dot ch
  2007-03-16 12:57 ` [Bug java/31223] " mtrudel at gmx dot ch
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mtrudel at gmx dot ch @ 2007-03-16 12:55 UTC (permalink / raw)
  To: java-prs

With a static gcj build, target=i686-pc-linux, using -findirect-dispatch to
compile a class will result in this compilation error:

/tmp/cciWx2S5.o: In function `main':ccxsXCuN.i:(.text+0x13): undefined
reference to `_Jv_Compiler_Properties'
:ccxsXCuN.i:(.text+0x30): undefined reference to `JvRunMainName'
/tmp/ccmjyQHx.o: In function `void
Test::main(JArray<java::lang::String*>*)':Test.class:(.text+0x2e): undefined
reference to `_Jv_InitClass'
:Test.class:(.text+0x51): undefined reference to `_Jv_ResolvePoolEntry'
/tmp/ccmjyQHx.o: In function `global constructors keyed to
0__ZN4TestC1Ev':Test.class:(.text+0xb6): undefined reference to
`_Jv_RegisterNewClasses'
/tmp/ccmjyQHx.o:(.eh_frame+0x11): undefined reference to `__gcj_personality_v0'
collect2: ld returned 1 exit status

Seen with a host=mingw and host=linux GCJ. This worked with GCJ 4.2.

Workaround:
The problem probably lies in libgcj.spec. In my host=linux and target=linux
libgcj.spec, I have:
*lib: %{static-libgcj:-non_shared} %{s-bc-abi:-lgcj_bc;:-lgcj}
%{static-libgcj:-call_shared} -lm   -lpthread -lrt    -ldl %(libgcc) %(liborig)

Replacing it with:
*lib: %{s-bc-abi:} -lgcj  -lm   -lpthread -lrt    -ldl %(libgcc) %(liborig) 

Will make the compilation work again.


-- 
           Summary: [regression] indirect dispatch not working with static
                    builds
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mtrudel at gmx dot ch
GCC target triplet: i686-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31223


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/31223] [regression] indirect dispatch not working with static builds
  2007-03-16 12:55 [Bug java/31223] New: [regression] indirect dispatch not working with static builds mtrudel at gmx dot ch
@ 2007-03-16 12:57 ` mtrudel at gmx dot ch
  2007-04-28  0:35 ` [Bug libgcj/31223] " pinskia at gcc dot gnu dot org
  2007-04-28  7:12 ` mtrudel at gmx dot ch
  2 siblings, 0 replies; 4+ messages in thread
From: mtrudel at gmx dot ch @ 2007-03-16 12:57 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from mtrudel at gmx dot ch  2007-03-16 12:57 -------
This also breaks the build when a static built GCJ is taken for the compilation
of ecj.jar (because it's compiled with -findirect-dispatch).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31223


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgcj/31223] [regression] indirect dispatch not working with static builds
  2007-03-16 12:55 [Bug java/31223] New: [regression] indirect dispatch not working with static builds mtrudel at gmx dot ch
  2007-03-16 12:57 ` [Bug java/31223] " mtrudel at gmx dot ch
@ 2007-04-28  0:35 ` pinskia at gcc dot gnu dot org
  2007-04-28  7:12 ` mtrudel at gmx dot ch
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-28  0:35 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-04-28 01:35 -------
Actually static builds of libgcj are pretty much broken with a valid ABI :).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|java                        |libgcj


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31223


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgcj/31223] [regression] indirect dispatch not working with static builds
  2007-03-16 12:55 [Bug java/31223] New: [regression] indirect dispatch not working with static builds mtrudel at gmx dot ch
  2007-03-16 12:57 ` [Bug java/31223] " mtrudel at gmx dot ch
  2007-04-28  0:35 ` [Bug libgcj/31223] " pinskia at gcc dot gnu dot org
@ 2007-04-28  7:12 ` mtrudel at gmx dot ch
  2 siblings, 0 replies; 4+ messages in thread
From: mtrudel at gmx dot ch @ 2007-04-28  7:12 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from mtrudel at gmx dot ch  2007-04-28 08:12 -------
What do you mean with this? What doesn't work? Is this something recent?
At least rev 122'233 seemed ok to me...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31223


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-28  7:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 12:55 [Bug java/31223] New: [regression] indirect dispatch not working with static builds mtrudel at gmx dot ch
2007-03-16 12:57 ` [Bug java/31223] " mtrudel at gmx dot ch
2007-04-28  0:35 ` [Bug libgcj/31223] " pinskia at gcc dot gnu dot org
2007-04-28  7:12 ` mtrudel at gmx dot ch

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