public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 @ 2006-09-08 0:34 vnasardinov at gmail dot com 2006-09-08 0:35 ` [Bug libgcj/28979] " vnasardinov at gmail dot com ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: vnasardinov at gmail dot com @ 2006-09-08 0:34 UTC (permalink / raw) To: java-prs I'm getting an error when trying to compile the following classes with gcj: | $ scalac hamming.scala | $ ls -lh *.class | -rw-rw-r-- 1 vadim vadim 1.1K Sep 7 20:16 hamming$$anonfun$0.class | -rw-rw-r-- 1 vadim vadim 1.1K Sep 7 20:16 hamming$$anonfun$1.class | -rw-rw-r-- 1 vadim vadim 1.1K Sep 7 20:16 hamming$$anonfun$2.class | -rw-rw-r-- 1 vadim vadim 1.5K Sep 7 20:16 hamming$$anonfun$3$$anonfun$4.class | -rw-rw-r-- 1 vadim vadim 1.5K Sep 7 20:16 hamming$$anonfun$3$$anonfun$5.class | -rw-rw-r-- 1 vadim vadim 1.5K Sep 7 20:16 hamming$$anonfun$3$$anonfun$6.class | -rw-rw-r-- 1 vadim vadim 1.3K Sep 7 20:16 hamming$$anonfun$3.class | -rw-rw-r-- 1 vadim vadim 868 Sep 7 20:16 hamming.class | -rw-rw-r-- 1 vadim vadim 2.4K Sep 7 20:16 hamming$.class | $ jar cf hamming.jar *.class | $ gcj --main=hamming --classpath=/usr/local/scala/share/scala/lib/scala-library.jar hamming.jar | hamming.scala: In class 'hamming$': | hamming.scala: In constructor '()': | hamming$.java:0: warning: assignment to final static field `MODULE$' not in class initializer | /tmp/cc8cPsFr.s: Assembler messages: | /tmp/cc8cPsFr.s:85: Error: symbol `_ZN18hamming$$anonfun$05applyEv' is already defined | /tmp/cc8cPsFr.s:514: Error: symbol `_ZN18hamming$$anonfun$15applyEv' is already defined | /tmp/cc8cPsFr.s:841: Error: symbol `_ZN18hamming$$anonfun$25applyEv' is already defined | /tmp/cc8cPsFr.s:2416: Error: symbol `_ZN18hamming$$anonfun$35applyEv' is already defined The .class files were produced by Scala 2.1.8: http://scala.epfl.ch/downloads/distrib/files/scala-2.1.8.tar.gz The above is under the following version of GCJ: | $ gcj -v | Using built-in specs. | Reading specs from /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgcj.spec | rename spec lib to liborig | Target: x86_64-redhat-linux | Configured with: ../configure --prefix=/usr --mandir=/usr/share/man \ | --infodir=/usr/share/info --enable-shared --enable-threads=posix \ | --enable-checking=release --with-system-zlib --enable-__cxa_atexit \ | --disable-libunwind-exceptions --enable-libgcj-multifile \ | --enable-languages=c,c++,objc,obj-c++,java,fortran,ada \ | --enable-java-awt=gtk --disable-dssi \ | --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre \ | --with-cpu=generic --host=x86_64-redhat-linux | Thread model: posix | gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) I will attach the offending .jar file in a minute. -- Summary: GCJ errors out when compiling .class files produced by Scala 2.1.8 Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vnasardinov at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com @ 2006-09-08 0:35 ` vnasardinov at gmail dot com 2006-09-08 0:36 ` vnasardinov at gmail dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: vnasardinov at gmail dot com @ 2006-09-08 0:35 UTC (permalink / raw) To: java-prs ------- Comment #1 from vnasardinov at gmail dot com 2006-09-08 00:35 ------- Created an attachment (id=12208) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12208&action=view) hamming.jar the promised jar file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com 2006-09-08 0:35 ` [Bug libgcj/28979] " vnasardinov at gmail dot com @ 2006-09-08 0:36 ` vnasardinov at gmail dot com 2006-09-08 0:37 ` [Bug java/28979] " pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: vnasardinov at gmail dot com @ 2006-09-08 0:36 UTC (permalink / raw) To: java-prs ------- Comment #2 from vnasardinov at gmail dot com 2006-09-08 00:36 ------- Created an attachment (id=12209) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12209&action=view) hamming.scala the offending Scala program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com 2006-09-08 0:35 ` [Bug libgcj/28979] " vnasardinov at gmail dot com 2006-09-08 0:36 ` vnasardinov at gmail dot com @ 2006-09-08 0:37 ` pinskia at gcc dot gnu dot org 2006-09-08 19:35 ` tromey at gcc dot gnu dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-09-08 0:37 UTC (permalink / raw) To: java-prs ------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-08 00:37 ------- I bet this was fixed in 4.2.0 with the ABI changing patch which changed the ABI to also include the return type. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libgcj |java http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com ` (2 preceding siblings ...) 2006-09-08 0:37 ` [Bug java/28979] " pinskia at gcc dot gnu dot org @ 2006-09-08 19:35 ` tromey at gcc dot gnu dot org 2006-09-09 1:05 ` vnasardinov at gmail dot com 2006-09-12 16:09 ` tromey at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-09-08 19:35 UTC (permalink / raw) To: java-prs ------- Comment #4 from tromey at gcc dot gnu dot org 2006-09-08 19:34 ------- Also see PR 28892 -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-09-08 19:34:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com ` (3 preceding siblings ...) 2006-09-08 19:35 ` tromey at gcc dot gnu dot org @ 2006-09-09 1:05 ` vnasardinov at gmail dot com 2006-09-12 16:09 ` tromey at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: vnasardinov at gmail dot com @ 2006-09-09 1:05 UTC (permalink / raw) To: java-prs ------- Comment #5 from vnasardinov at gmail dot com 2006-09-09 01:05 ------- PR 28892 reminded me that I had forgotten to mention one thing. The attached program (attachment 12208) runs fine under gij. To be more precise, it does more or less the same thing it does under Sun's JDK. Under Sun: | $ time java \ | -classpath /usr/local/scala/share/scala/lib/scala-library.jar:hamming.jar \ | hamming | The first 20 numbers: | 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36 | | The 100th number (counting from 0): 1600 | | The 1000th: | Exception in thread "main" java.lang.OutOfMemoryError: Java heap space | | real 0m9.922s | user 0m6.532s | sys 0m2.780s Under gij: | $ gij \ | --classpath /usr/local/scala/share/scala/lib/scala-library.jar:hamming.jar \ | hamming | The first 20 numbers: | 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36 | | The 100th number (counting from 0): 1600 | | The 1000th: | Killed Under Sun, it causes an OOM when trying to compute the 1000th Hamming number. Under gij, it starts paging like there is no tomorrow, but keeps on going and hoses up my machine pretty quickly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com ` (4 preceding siblings ...) 2006-09-09 1:05 ` vnasardinov at gmail dot com @ 2006-09-12 16:09 ` tromey at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-09-12 16:09 UTC (permalink / raw) To: java-prs ------- Comment #6 from tromey at gcc dot gnu dot org 2006-09-12 16:09 ------- This is fixed in svn head. Part was fixed by the mangling change, which we can't backport to 4.1. The other part was fixed when the PR 28892 fix went in today. I didn't let it try to compute the 1000th number but the rest worked. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-09-12 16:09 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-09-08 0:34 [Bug libgcj/28979] New: GCJ errors out when compiling .class files produced by Scala 2.1.8 vnasardinov at gmail dot com 2006-09-08 0:35 ` [Bug libgcj/28979] " vnasardinov at gmail dot com 2006-09-08 0:36 ` vnasardinov at gmail dot com 2006-09-08 0:37 ` [Bug java/28979] " pinskia at gcc dot gnu dot org 2006-09-08 19:35 ` tromey at gcc dot gnu dot org 2006-09-09 1:05 ` vnasardinov at gmail dot com 2006-09-12 16:09 ` tromey at gcc dot gnu dot org
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).