Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489014 - Failed to emerge dev-java/javacc-4.0-r4
Summary: Failed to emerge dev-java/javacc-4.0-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 561410
Blocks:
  Show dependency tree
 
Reported: 2013-10-22 14:03 UTC by cono
Modified: 2015-10-23 15:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (java.build.txt,13.04 KB, text/plain)
2013-10-22 14:04 UTC, cono
Details
build environment (java.env.txt,155.22 KB, text/plain)
2013-10-22 14:04 UTC, cono
Details
emerge info (java.info.txt,5.33 KB, text/plain)
2013-10-22 14:05 UTC, cono
Details
emerge -pqv (java.pqv.txt,78 bytes, text/plain)
2013-10-22 14:06 UTC, cono
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cono 2013-10-22 14:03:48 UTC
When I'm trying to compile freemind, as a dependency dev-java/javacc wont compile:

compile-nojar:
    [javac] Compiling 130 source files to /var/tmp/portage/dev-java/javacc-4.0-r4/work/javacc/classes
    [javac] An exception has occurred in the compiler (1.7.0_40). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    [javac] java.lang.AssertionError
...
Comment 1 cono 2013-10-22 14:04:33 UTC
Created attachment 361620 [details]
Build log
Comment 2 cono 2013-10-22 14:04:54 UTC
Created attachment 361622 [details]
build environment
Comment 3 cono 2013-10-22 14:05:40 UTC
Created attachment 361624 [details]
emerge info
Comment 4 cono 2013-10-22 14:06:07 UTC
Created attachment 361626 [details]
emerge -pqv
Comment 5 cono 2013-10-22 15:03:52 UTC
Same for new 1.7.0_45 oracle java:

    [javac] An exception has occurred in the compiler (1.7.0_45). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
Comment 6 cono 2013-10-22 15:55:01 UTC
Also posted bug to bugs.sun.com:

We have determined that this report is a new bug and have entered the bug into our bug tracking system under Bug Id: 9007595 . You can look for related issues on the Java Bug Database at http://bugs.sun.com.
Comment 7 Charity 2013-10-25 11:07:54 UTC
Confirmed it won't compile with oracle-jdk-bin-1.7. I used icedtea-bin-6 as my system-vm and it worked.
Comment 8 Austin English (RETIRED) gentoo-dev 2013-12-10 20:28:56 UTC
(In reply to Charity from comment #7)
> Confirmed it won't compile with oracle-jdk-bin-1.7. I used icedtea-bin-6 as
> my system-vm and it worked.

I see the same.
Comment 9 Tamas Jantvik 2013-12-17 07:33:28 UTC
Is there a way of setting the java compiler to icedtea for the packages that oracle-jdk fails to compile? And I mean, in a config file, not manually changing compiler before the emerge.

The same problem exists with dev-java/commons-el-1.0-r2, right?
Comment 10 Willard Dawson 2013-12-25 17:43:05 UTC
(In reply to austinenglish@gmail.com from comment #8)
> (In reply to Charity from comment #7)
> > Confirmed it won't compile with oracle-jdk-bin-1.7. I used icedtea-bin-6 as
> > my system-vm and it worked.
> 
> I see the same.

I also experienced this bug today.  I have icedtea-bin-7 set as my java-vm system default, and it does not work.  Setting java-vm to icedtea-bin-6 worked for me, just as you say.
Comment 11 Johannes Buchner 2014-01-27 23:22:00 UTC
Seems like the package is Java7 incompatible?
It does not compile with Oracle Java 7 either.
Comment 12 Johannes Buchner 2014-01-27 23:24:13 UTC
cono, searching for the bug by ID yielded no results for me.
Comment 13 cono 2014-01-28 22:59:56 UTC
(In reply to Johannes Buchner from comment #12)
> cono, searching for the bug by ID yielded no results for me.

Yeah, looks like they put my request to devnull
Comment 14 cel.gentoo 2014-03-02 18:27:04 UTC
Is there any update for this issue? Getting the same Error when emerging freemind-0.9.0-r1. I'm using stable oracle-jdk-bin-1.7.0.51-r1.
Comment 15 cel.gentoo 2014-03-05 10:21:46 UTC
New stable version dev-java/javacc-5.0-r1 appears to fix this bug.
Comment 16 Patrice Clement gentoo-dev 2015-10-23 15:49:38 UTC
commit fb6de04 (HEAD, master)
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Fri Oct 23 15:47:04 2015 +0000

    dev-java/javacc: Purge old versions. Fixes bug 489014, 514982 and 273164.
    
    Package-Manager: portage-2.2.20.1
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 delete mode 100644 dev-java/javacc/javacc-4.0-r4.ebuild
 delete mode 100644 dev-java/javacc/javacc-4.2.ebuild