You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by "xingchen1997 (via GitHub)" <gi...@apache.org> on 2025/06/03 06:33:32 UTC

[I] [Bug]: Compilation Failure in amoro-mixed-format-spark-3.3 Module on macOS ARM Architecture [amoro]

xingchen1997 opened a new issue, #3589:
URL: https://github.com/apache/amoro/issues/3589

   ### What happened?
   
   Subject:​​ Compilation Failure in amoro-mixed-format-spark-3.3 Module on macOS ARM Architecture
   
   **​​Environment:​​**
   
   Machine: MacBook Pro with M4 chip (ARM architecture)
   Amoro Version: 0.7.1 (source code)
   
   **Actions Taken:**
   Cleared IntelliJ IDEA cache
   Performed full clean rebuild
   
   **​​Issue:​​**
   Compilation failure occurs in the amoro-mixed-format-spark-3.3 module when executing:
   mvn clean package -DskipTests
   
   **​​Error Description:​​**
   The Maven Scala plugin (scala:4.8.1) fails with a constant pool index error during compilation of the amoro-mixed-format-spark-3.3 module. The build shows:
   
   [INFO] Amoro Project Mixed Format Spark 3.3 ............... FAILURE [  4.154 s]
   ​​
   ref:https://docs.qq.com/doc/DZHJGUWtVamFhY1NV
   
   
   **Error Log:​​**
   [INFO] --- scala:4.8.1:compile (scala-compile-first) @ amoro-mixed-format-spark-3.3 ---
   [INFO] Compiler bridge file: /Users/chenxing/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.12-1.8.0-bin_2.12.15__67.0-1.8.0_20221110T195421.jar
   [INFO] Compiler bridge file is not installed yet
   error:
     bad constant pool index: 0 at pos: 49842
        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/chenxing/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar -classpath /Users/chenxing/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-sbt/util-interface/1.8.0/util-interface-1.8.0.jar:/Users/chenxing/.m2/repository/org/scala-sbt/compiler-interface/1.8.0/compiler-interface-1.8.0.jar:/Users/chenxing/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/chenxing/
 .m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar -d /var/folders/vm/j8_465ms0gx9s8yt4t06qbv40000gn/T/scala-maven-plugin-compiler-bridge-classes4216412117667117646
   
     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: 49842
        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/chenxing/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar -classpath /Users/chenxing/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-sbt/util-interface/1.8.0/util-interface-1.8.0.jar:/Users/chenxing/.m2/repository/org/scala-sbt/compiler-interface/1.8.0/compiler-interface-1.8.0.jar:/Users/chenxing/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-compiler/2.12.15/scala-compiler-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-library/2.12.15/scala-library-2.12.15.jar:/Users/chenxing/.m2/repository/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar:/Users/chenxing/
 .m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/chenxing/.m2/repository/org/scala-lang/scala-reflect/2.12.15/scala-reflect-2.12.15.jar -d /var/folders/vm/j8_465ms0gx9s8yt4t06qbv40000gn/T/scala-maven-plugin-compiler-bridge-classes4216412117667117646
   
     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:906)
           at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:283)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:206)
           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)
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Summary for Amoro Project Parent 0.7.1-incubating:
   [INFO] 
   [INFO] Amoro Project Parent ............................... SUCCESS [  1.229 s]
   [INFO] Amoro Project Core ................................. SUCCESS [  7.211 s]
   [INFO] Amoro Project AMS Parent ........................... SUCCESS [  0.056 s]
   [INFO] Amoro Project AMS API .............................. SUCCESS [  1.002 s]
   [INFO] Amoro Project Mixed Format Parent .................. SUCCESS [  0.070 s]
   [INFO] Amoro Project Mixed Hive Format .................... SUCCESS [  2.408 s]
   [INFO] Amoro Project AMS Dashboard ........................ SUCCESS [ 15.471 s]
   [INFO] Amoro Project Mixed Format Spark Parent ............ SUCCESS [  0.042 s]
   [INFO] Amoro Project Mixed Format Spark 3 Common .......... SUCCESS [  1.858 s]
   [INFO] Amoro Project Mixed Format Spark 3.3 ............... FAILURE [  4.475 s]
   [INFO] Amoro Project AMS Optimizer Parent ................. SKIPPED
   [INFO] Amoro Project AMS Optimizer Common ................. SKIPPED
   [INFO] Amoro Project AMS Standalone Optimizer ............. SKIPPED
   [INFO] Amoro Project AMS Server ........................... SKIPPED
   [INFO] Amoro Project AMS Flink Optimizer .................. SKIPPED
   [INFO] Amoro Project AMS Spark Optimizer .................. SKIPPED
   [INFO] Amoro Project AMS Metric Reporter Parent ........... SKIPPED
   [INFO] Amoro Project AMS Prometheus Reporter .............. SKIPPED
   [INFO] Amoro Project AMS Dist ............................. SKIPPED
   [INFO] Amoro Project Mixed Format Flink Parent ............ SKIPPED
   [INFO] Amoro Project Mixed Format Flink Iceberg Bridge .... SKIPPED
   [INFO] Amoro Project Mixed Format Flink Common Format ..... SKIPPED
   [INFO] Amoro Project Mixed Format Flink Common ............ SKIPPED
   [INFO] Amoro Project Mixed Format Flink 1.15 .............. SKIPPED
   [INFO] Amoro Project Mixed Format Flink 1.15 Runtime ...... SKIPPED
   [INFO] Amoro Project Mixed Format Flink 1.16 .............. SKIPPED
   [INFO] Amoro Project Mixed Format Flink 1.16 Runtime ...... SKIPPED
   [INFO] Amoro Project Mixed Format Flink 1.17 .............. SKIPPED
   [INFO] Amoro Project Mixed Format Flink 1.17 Runtime ...... SKIPPED
   [INFO] Amoro Project Mixed Format Spark 3.2 ............... SKIPPED
   [INFO] Amoro Project Mixed Format Spark 3.2 Runtime ....... SKIPPED
   [INFO] Amoro Project Mixed Format Spark 3.3 Runtime ....... SKIPPED
   [INFO] Amoro Project Mixed Format Trino ................... SKIPPED
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  33.953 s
   [INFO] Finished at: 2025-06-03T09:10:05+08:00
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.8.1:compile (scala-compile-first) on project amoro-mixed-format-spark-3.3: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.8.1:compile failed.: CompileFailed -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the command
   [ERROR]   mvn <args> -rf :amoro-mixed-format-spark-3.3
   
   
   
   ### Affects Versions
   
   0.7.x
   
   ### What table formats are you seeing the problem on?
   
   _No response_
   
   ### What engines are you seeing the problem on?
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's Code of Conduct


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Compilation Failure in amoro-mixed-format-spark-3.3 Module on macOS ARM Architecture [amoro]

Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on issue #3589:
URL: https://github.com/apache/amoro/issues/3589#issuecomment-2934466808

   What version of Java and maven are you using?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Compilation Failure in amoro-mixed-format-spark-3.3 Module on macOS ARM Architecture [amoro]

Posted by "xingchen1997 (via GitHub)" <gi...@apache.org>.
xingchen1997 commented on issue #3589:
URL: https://github.com/apache/amoro/issues/3589#issuecomment-2938100507

   [Resolved] Build failed due to incorrect Java version
   
   Thanks for reporting!
   
   Root Cause:
   Maven was using Java 23 by default, but the project requires Java 8.
   
   Solution:
   1. Switched to Java 8 via:
   export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
   2. Verified the environment:
   mvn -v  # Now shows Java 1.8.0_432 (Corretto)
   3. Successfully rebuilt:
   mvn clean package -DskipTests
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Resolved] Compilation failure in `amoro-mixed-format-spark-3.3` due to Java version mismatch (macOS ARM) [amoro]

Posted by "xingchen1997 (via GitHub)" <gi...@apache.org>.
xingchen1997 closed issue #3589: [Resolved] Compilation failure in `amoro-mixed-format-spark-3.3` due to Java version mismatch (macOS ARM)
URL: https://github.com/apache/amoro/issues/3589


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org