Bug 660772

Summary: FTBFS intellij-idea-
Product: [Fedora] Fedora Reporter: FTBFS <ftbfs>
Component: intellij-ideaAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: akurtako, aph, dietervandenbroeck, lkundrak
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://linux.dell.com/files/fedora/FixBuildRequires/mock-results/
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-13 06:11:35 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 659965, 660986    
Description Flags
mock.log none

Description FTBFS 2010-12-07 12:54:59 EST
intellij-idea- Failed To Build From Source against the rawhide tree.  See http://fedoraproject.org/wiki/FTBFS for more information.
If you believe this is actually a bug in another package, do NOT change the component in this bug or close this bug.  Instead, add the appropriate bug number from the other package to the "Depends on" line in this bug.  If the other package does not yet have a bug created that you think matches, please create one.  Doing so helps us properly track bugs and their dependencies, just as we track package dependencies.  (If you close this bug, and the other package is not fixed before the next FTBFS run, a new bug will get created.  Please follow the above advice to avoid such duplication.)
Comment 1 FTBFS 2010-12-07 12:55:02 EST
Created attachment 465478 [details]

root.log for i386
Comment 2 FTBFS 2010-12-07 12:55:03 EST
Created attachment 465479 [details]

build.log for i386
Comment 3 FTBFS 2010-12-07 12:55:04 EST
Created attachment 465480 [details]

mock.log for i386
Comment 4 FTBFS 2010-12-07 12:55:05 EST
Created attachment 465481 [details]

root.log for x86_64
Comment 5 FTBFS 2010-12-07 12:55:06 EST
Created attachment 465482 [details]

build.log for x86_64
Comment 6 FTBFS 2010-12-07 12:55:08 EST
Created attachment 465483 [details]

mock.log for x86_64
Comment 7 Mat Booth 2010-12-20 13:40:30 EST
The missing dep was fixed in intellij-idea- but still doesn't build?? 

Comment 8 Andrew Haley 2011-01-14 04:42:07 EST
The original cause of this is a bug in javac; it doesn't do type inference in generics correctly.  

IntelliJ worked around this by providing a custom version of com.sun.tools.javac.comp.Infer.java and they load it into the compiler by setting the compiler's bootclasspath with -J-Xbootclasspath/p:patches.  This can only possibly work with one particular version of javac.  It doesn't work with the javac in OpenJDK.

Anyway, there is a way to make this work:
Compile it with ecj until the day all this type inference stuff
finally gets fixed in javac.

Edit build/scripts/dist.gant:

  project["javac"] = "/usr/bin/ecj"
  //project["javac_args"] = "-J-Xbootclasspath/p:patches:$jdk/lib/tools.jar"
Comment 9 Alexander Kurtakov 2012-02-13 06:11:35 EST
The package has been retired.