Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8278113

Ghidra fails to build because it encountered an exception when I ran gradle

    XMLWordPrintable

    Details

    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      When I tried to build Ghidra following the instructions using gradle, javac said an exception occurred and to file a bug report.

      REGRESSION : Last worked in version 11.0.13

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Download ghidra source code

      Prepare the dependencies via $ gradle -I gradle/support/fetchDependencies.gradle init

      run gradle buildGhidra

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      javac builds ghidra without issue, or if there is a project issue, javac says so instead of throwing an exception and saying it is the compiler's fault
      ACTUAL -
      Javac has an error that reads like java.lang.AssertionError: isSubClass P
              at jdk.compiler/com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:546)
              at jdk.compiler/com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:555)
              at jdk.compiler/com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:2092)
              at jdk.compiler/com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:2052)
              at jdk.compiler/com.sun.tools.javac.code.Types$ImplementationCache.implementationInternal(Types.java:2984)
              at jdk.compiler/com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:2969)
              at jdk.compiler/com.sun.tools.javac.code.Types.implementation(Types.java:3004)
              at jdk.compiler/com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:2159)
              at jdk.compiler/com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:2152)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:471)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1572)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1788)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1879)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1832)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve$11.doLookup(Resolve.java:2737)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.java:3454)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3704)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2734)
              at jdk.compiler/com.sun.tools.javac.comp.Resolve.resolveInternalMethod(Resolve.java:2828)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.visitForeachLoop(Attr.java:1545)
              at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCEnhancedForLoop.accept(JCTree.java:1231)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:767)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1445)
              at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1091)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1235)
              at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:921)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:674)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:748)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5474)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5365)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5217)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5196)
              at jdk.compiler/com.sun.tools.javac.comp.Attr.attrib(Attr.java:5141)
              at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1317)
              at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:946)
              at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
              at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
              at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
              at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
              at org.gradle.internal.compiler.java.IncrementalCompileTask.call(IncrementalCompileTask.java:89)
              at org.gradle.api.internal.tasks.compile.AnnotationProcessingCompileTask.call(AnnotationProcessingCompileTask.java:94)
              at org.gradle.api.internal.tasks.compile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57)
              at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:54)
              at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)
              at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
              at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
              at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
              at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
              at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
              at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
              at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32)
              at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22)
              at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:85)
              at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:55)
              at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
              at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
              at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
              at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
              at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
              at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
              at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
              at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
              at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
              at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
              at java.base/java.lang.Thread.run(Thread.java:833)

      > Task :SoftwareModeling:compileJava FAILED


      ---------- BEGIN SOURCE ----------
      https://github.com/NationalSecurityAgency/ghidra.git
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      No workaround found yet

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adev ANUPAM DEV
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: