public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "kurt at roeckx dot be" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/42143] New: gcj creates "dummy" variables Date: Sun, 22 Nov 2009 12:51:00 -0000 [thread overview] Message-ID: <bug-42143-5138@http.gcc.gnu.org/bugzilla/> (raw) 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 {}" I get this error with Debian's 4.3.4-4. The version 4.3.2-2 does not generate that symbol. An old build log of libtool with gcj version 4.3.3-3 also does not show the error. -- Summary: gcj creates "dummy" variables Product: gcc Version: 4.3.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kurt at roeckx dot be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42143
next reply other threads:[~2009-11-22 12:51 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-22 12:51 kurt at roeckx dot be [this message] 2009-12-06 16:03 ` [Bug java/42143] " kurt at roeckx dot be 2010-02-16 10:34 ` [Bug java/42143] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org 2010-02-17 17:51 ` mmitchel at gcc dot gnu dot org 2010-03-09 21:43 ` pjames at avtrex dot com 2010-03-10 8:05 ` michele at focuseek dot com 2010-03-10 8:09 ` michele at focuseek dot com 2010-04-23 19:49 ` [Bug java/42143] [4.3/4.4/4.5/4.6 " kurt at roeckx dot be 2010-05-03 18:36 ` glarkin at FreeBSD dot org 2010-05-22 18:33 ` rguenth at gcc dot gnu dot org
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=bug-42143-5138@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@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: linkBe 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).