Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 302910

Summary: [java-overlay] dev-java/gcj-jdk-4.3-r4 + dev-java/eclipse-ecj-3.3.0-r8 fails to build dev-java/icedtea6-1.7: incorrect classpath + ICE
Product: Gentoo Linux Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED OBSOLETE    
Severity: normal CC: bircoph
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 247140    

Description Dennis Schridde 2010-01-30 20:48:40 UTC
dev-java/eclipse-ecj-3.3.0-r8, dev-java/gcj-jdk-4.3-r4, building dev-java/icedtea6-1.7


if ! test -d /var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/bootstrap/jdk1.6.0 ; \                                                     
        then \                                                                                                                                   
          /usr/lib/jvm/gcj-jdk/bin/javac  -g -d lib/hotspot-tools \                                                                              
            -source 1.5 \                                                                                                                        
            -sourcepath \                                                                                                                        
              'hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/generated:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/rt:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/rt:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/plugin/icedteanp/java' \                                                                                          
            -classpath \'\' -bootclasspath \'\' @hotspot-tools-source-files.txt ; \                                                              
        else \                                                                                                                                   
          /var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/bootstrap/jdk1.6.0/bin/javac  -g \                                            
            -d lib/hotspot-tools \                                                                                                               
            -source 1.5 \                                                                                                                        
            -sourcepath \                                                                                                                        
              'hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/generated:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/rt:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/rt:/var/tmp/portage/dev-java/icedtea6-1.7/work/icedtea6-1.7/plugin/icedteanp/java' \                                                                                          
            -classpath \'\' -bootclasspath \'\' @hotspot-tools-source-files.txt ; \                                                              
        fi                                                                                                                                       
ls: cannot access /etc/env.d/gcc/*4.3*: No such file or directory                                                                                
incorrect classpath: ''                                                                                                                          
incorrect classpath: ''                                                                                                                          
----------                                                                                                                                       
1. ERROR in hotspot-tools/com/sun/codemodel/internal/JFormatter.java (at line 0)                                                                 
        /*                                                                                                                                       
        ^                                                                                                                                        
Internal compiler error                                                                                                                          
java.lang.NullPointerException                                                                                                                   
   at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.syntheticMethods(native_ecj-3.3.so)                                             
   at org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding.<init>(native_ecj-3.3.so)                                                  
   at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticEnumMethod(native_ecj-3.3.so)                                       
   at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildMethods(native_ecj-3.3.so)                                                        
   at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildFieldsAndMethods(native_ecj-3.3.so)                                               
   at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildFieldsAndMethods(native_ecj-3.3.so)                                               
   at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(native_ecj-3.3.so)                                     
   at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(native_ecj-3.3.so)                                         
   at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(native_ecj-3.3.so)                                                       
   at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(native_ecj-3.3.so)                                                               
   at org.eclipse.jdt.internal.compiler.Compiler.compile(native_ecj-3.3.so)                                                                      
   at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(native_ecj-3.3.so)                                                         
   at org.eclipse.jdt.internal.compiler.batch.Main.compile(native_ecj-3.3.so)                                                                    
   at org.eclipse.jdt.internal.compiler.batch.Main.main(native_ecj-3.3.so)                                                                       

----------
1 problem (1 error)make: *** [stamps/hotspot-tools-class-files.stamp] Error 255


Reproducible: Always
Comment 1 Dennis Schridde 2010-02-05 13:01:17 UTC
Confirmed with the icedtea-6.1.7 ebuild of today.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-18 21:39:22 UTC
This should get fixed if you remerge eclipse-ecj:3.3 and gcj-jdk to update its paths to your current gcc version.
Comment 3 Andrew Savchenko gentoo-dev 2010-03-24 10:05:13 UTC
(In reply to comment #2)
> This should get fixed if you remerge eclipse-ecj:3.3 and gcj-jdk to update its
> paths to your current gcc version.

This does not help, it still crashes (eclipse-ecj-3.3.0-r8, gcj-jdk-4.4.3, trying to build icedtea-6.1.7.1):

mkdir -p lib/hotspot-tools                                                                                                                     
if ! test -d /var/tmp/portage/dev-java/icedtea-6.1.7.1/work/icedtea6-1.7.1/bootstrap/jdk1.6.0 ; \                                              
        then \                                                                                                                                 
          /usr/lib/jvm/gcj-jdk/bin/javac  -g -d lib/hotspot-tools \                                                                            
            -source 1.5 \                                                                                                                      
            -sourcepath \                                                                                                                      
              'hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src
            -classpath \'\' -bootclasspath \'\' @hotspot-tools-source-files.txt ; \                                                            
        else \                                                                                                                                 
          /var/tmp/portage/dev-java/icedtea-6.1.7.1/work/icedtea6-1.7.1/bootstrap/jdk1.6.0/bin/javac  -g \                                     
            -d lib/hotspot-tools \                                                                                                             
            -source 1.5 \                                                                                                                      
            -sourcepath \                                                                                                                      
              'hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src
            -classpath \'\' -bootclasspath \'\' @hotspot-tools-source-files.txt ; \                                                            
        fi                                                                                                                                     
incorrect classpath: ''                                                                                                                        
incorrect classpath: ''                                                                                                                        
----------                                                                                                                                     
1. ERROR in hotspot-tools/com/sun/codemodel/internal/JFormatter.java (at line 0)                                                               
        /*                                                                                                                                     
        ^                                                                                                                                      
Internal compiler error                                                                                                                        
java.lang.NullPointerException                                                                                                                 
   at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.syntheticMethods(native_ecj-3.3.so)                                           
   at org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding.<init>(native_ecj-3.3.so)                                                
   at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticEnumMethod(native_ecj-3.3.so)                                     
   at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildMethods(native_ecj-3.3.so)                                                      
   at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildFieldsAndMethods(native_ecj-3.3.so)                                             
   at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildFieldsAndMethods(native_ecj-3.3.so)                                             
   at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(native_ecj-3.3.so)                                   
   at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(native_ecj-3.3.so)                                       
   at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(native_ecj-3.3.so)                                                     
   at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(native_ecj-3.3.so)                                                             
   at org.eclipse.jdt.internal.compiler.Compiler.compile(native_ecj-3.3.so)                                                                    
   at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(native_ecj-3.3.so)                                                       
   at org.eclipse.jdt.internal.compiler.batch.Main.compile(native_ecj-3.3.so)                                                                  
   at org.eclipse.jdt.internal.compiler.batch.Main.main(native_ecj-3.3.so)                 

Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-24 15:56:56 UTC
Can you rebuild the eclipse-ecj:3.3 with USE=-gcj and see if it helps?
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-24 15:57:13 UTC
reopening
Comment 6 Andrew Savchenko gentoo-dev 2010-03-24 18:16:49 UTC
(In reply to comment #4)
> Can you rebuild the eclipse-ecj:3.3 with USE=-gcj and see if it helps?

Sorry, hard to test. I fixed this by temporal emerge of icedtea6-bin, emerging normal icedtea and removal of binary version.
Comment 7 Ralph Sennhauser (RETIRED) gentoo-dev 2011-12-14 12:02:26 UTC
Both eclipse-ecj-3.3 and icedtea6-1.7 are gone by now.