kwai / blaze

Blazing-fast query execution engine speaks Apache Spark language and has Arrow-DataFusion at its core.
Apache License 2.0
1.28k stars 121 forks source link

Compile failed on macOS #567

Open FANNG1 opened 1 month ago

FANNG1 commented 1 month ago

mvn package -Pspark333 -Prelease java: openjdk version "17.0.12" 2024-07-16 scala: 2.12 source code: main branch

[INFO] Compiler bridge file is not installed yet
error:
  bad constant pool index: 0 at pos: 49176
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.12.15
    compiler version: version 2.12.15
  reconstructed args: -bootclasspath /Users/fanng/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar -classpath /Users/fanng/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-sbt/compiler-interface/1.8.0/compiler-interface-1.8.0.jar:/Users/fanng/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-sbt/util-interface/1.8.0/util-interface-1.8.0.jar:/Users/fanng/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/fanng/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar -d /var/folders/3v/tr8fn_mx2s58nhgf3j0k8vj00000gn/T/scala-maven-plugin-compiler-bridge-classes5621036967327176557

  last tree to typer: EmptyTree
       tree position: <unknown>
            tree tpe: <notype>
              symbol: null
           call site: <none> in <none>

== Source file context for tree position ==

error: scala.reflect.internal.FatalError:
  bad constant pool index: 0 at pos: 49176
     while compiling: <no file>
        during phase: globalPhase=<no phase>, enteringPhase=<some phase>
     library version: version 2.12.15
    compiler version: version 2.12.15
  reconstructed args: -bootclasspath /Users/fanng/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar -classpath /Users/fanng/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-sbt/compiler-interface/1.8.0/compiler-interface-1.8.0.jar:/Users/fanng/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-sbt/util-interface/1.8.0/util-interface-1.8.0.jar:/Users/fanng/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar:/Users/fanng/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/fanng/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/fanng/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar -d /var/folders/3v/tr8fn_mx2s58nhgf3j0k8vj00000gn/T/scala-maven-plugin-compiler-bridge-classes5621036967327176557

  last tree to typer: EmptyTree
       tree position: <unknown>
            tree tpe: <notype>
              symbol: null
           call site: <none> in <none>

== Source file context for tree position ==

    at scala.reflect.internal.Reporting.abort(Reporting.scala:69)
    at scala.reflect.internal.Reporting.abort$(Reporting.scala:65)
    at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:28)
    at scala.tools.nsc.symtab.classfile.ClassfileParser$ConstantPool.errorBadIndex(ClassfileParser.scala:386)
    at scala.tools.nsc.symtab.classfile.ClassfileParser$ConstantPool.getExternalName(ClassfileParser.scala:250)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.readParamNames$1(ClassfileParser.scala:841)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.parseAttribute$1(ClassfileParser.scala:847)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.$anonfun$parseAttributes$7(ClassfileParser.scala:921)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.parseAttributes(ClassfileParser.scala:921)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.parseMethod(ClassfileParser.scala:623)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.$anonfun$parseClass$4(ClassfileParser.scala:536)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.parseClass(ClassfileParser.scala:536)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.$anonfun$parse$2(ClassfileParser.scala:161)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.$anonfun$parse$1(ClassfileParser.scala:147)
    at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:130)
    at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:343)
    at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:250)
    at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1542)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1514)
    at scala.reflect.internal.Definitions.scala$reflect$internal$Definitions$$enterNewMethod(Definitions.scala:49)
    at scala.reflect.internal.Definitions$DefinitionsClass.String_$plus$lzycompute(Definitions.scala:1134)
    at scala.reflect.internal.Definitions$DefinitionsClass.String_$plus(Definitions.scala:1134)
    at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreMethods$lzycompute(Definitions.scala:1438)
    at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreMethods(Definitions.scala:1420)
    at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode$lzycompute(Definitions.scala:1450)
    at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode(Definitions.scala:1450)
    at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1506)
    at scala.tools.nsc.Global$Run.<init>(Global.scala:1213)
    at scala.tools.nsc.Driver.doCompile(Driver.scala:46)
    at scala.tools.nsc.MainClass.doCompile(Main.scala:32)
    at scala.tools.nsc.Driver.process(Driver.scala:67)
    at scala.tools.nsc.Main.process(Main.scala)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at sbt.internal.inc.RawCompiler.getReporter$1(RawCompiler.scala:56)
    at sbt.internal.inc.RawCompiler.apply(RawCompiler.scala:77)
    at sbt_inc.CompilerBridgeFactory.getScala2CompilerBridgeJar(CompilerBridgeFactory.java:177)
    at sbt_inc.CompilerBridgeFactory.getCompiledBridgeJar(CompilerBridgeFactory.java:60)
    at sbt_inc.SbtIncrementalCompilers.make(SbtIncrementalCompilers.java:51)
    at scala_maven.ScalaCompilerSupport.incrementalCompile(ScalaCompilerSupport.java:305)
    at scala_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:119)
    at scala_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:86)
    at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:310)
    at scala_maven.ScalaCompileMojo.execute(ScalaCompileMojo.java:108)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:903)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:280)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:203)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
lihao712 commented 1 month ago

We recommend using a Docker environment to compile Blaze. For more details, please refer to the project homepage.