Your message dated Sat, 18 Jun 2016 00:52:54 +0200
with message-id <[email protected]>
and subject line closing bugs reported against ancient GCC versions
has caused the Debian Bug report #555801,
regarding gcj: Creates "dummy" variables.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
555801: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555801
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gcj-4.3
Version: 4.3.4-4
Severity: important

Hi,

When running the libtool regression tests, I get the following
error:
gcj -shared  -Wl,--whole-archive ./.libs/liba1.a ./.libs/liba2.a 
-Wl,--no-whole-archive     -Wl,-soname -Wl,liba12.so.0 -o .libs/liba12.so.0.0.0
./.libs/liba2.a(A2.o):(.rodata+0x0): multiple definition of `java resource 
.dummy'
./.libs/liba1.a(A1.o):(.rodata+0x0): first defined here collect2: ld returned 1 
exit status

Looking at liba1.a I see:
Relocation section '.rela.text' at offset 0x1ad0 contains 3 entries:
  Offset          Info           Type           Sym. Value    Sym. Name + 
Addend000000000005  002600000004 R_X86_64_PLT32    0000000000000000 
_ZN4java4lang6ObjectC1 - 4
000000000023  002300000002 R_X86_64_PC32     0000000000000000 _ZGr8_$_dummy - 4

[...]
Symbol table '.symtab' contains 54 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
[...]
    35: 0000000000000000    16 OBJECT  GLOBAL HIDDEN   11 _ZGr8_$_dummy

There is nothing called "dummy" in the source file.  The source
file is:
public class foo1 {
  public static void main(String[] argv) {
    A1 a1 = new A1();
  }
}

It can also be reproduced with a file that just
has "public class foo1 {}"

gcj in stable (4.3.2-2) does not generate that symbol.  A build
log of libtool with gcj version 4.3.3-3 does not show the error.


Kurt




--- End Message ---
--- Begin Message ---
This bug has been reported against an ancient version of
gpc (4.1), gcc/g++/gfortran (4.3), or gcj/gij/gobjc (4.4), that was last
released with Debian 6.0 (squeeze). But even squeeze-lts has now reached
end-of-life and is no longer supported.
The bug is assumed to be fixed (or no longer relevant) in newer GCC
releases and therefore I'm closing this report now. If the problem is
still reproducible in the currently supported versions (gcc-5, gcc-6 or
corresponding g++/gcj), feel free to provide more information, reopen
and reassign this bug report.


Andreas

--- End Message ---

Reply via email to