Bug #117410 MySQL Shell 8.4.4 Build Polyglot From Source Failed.
Submitted: 7 Feb 9:00 Modified: 25 Feb 8:39
Reporter: yuheng zhang Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Shell General / Core Client Severity:S3 (Non-critical)
Version:8.4.4 OS:CentOS
Assigned to: MySQL Verification Team CPU Architecture:x86
Tags: mysql-shell

[7 Feb 9:00] yuheng zhang
Description:
GraalVM(23.0.1)
Graal Source(23.0.1)

Build Polyglot by: https://github.com/mysql/mysql-shell/tree/8.4.4/ext/polyglot

But errors appear.

I hope get your help, Thank you very much.

How to repeat:
cd /opt
wget https://download.oracle.com/graalvm/23/archive/graalvm-jdk-23.0.1_linux-x64_bin.tar.gz
wget -O graal-vm-ce-23.0.1.tar.gzhttps://github.com/oracle/graal/archive/refs/tags/vm-ee-23.0.1.tar.gz

tar zxf graalvm-jdk-23.0.1_linux-x64_bin.tar.gz
tar zxf vm-ee-23.0.1.tar.gz

# bin
export JAVA_HOME=/opt/graalvm-jdk-23.0.1
# source
export GRAALJDK_ROOT=/opt/graal-vm-ce-23.0.1
export PATH=$JAVA_HOME/bin:/opt/graal-vm-ce-23.0.1/bin:$PATH

mvn package 

error log: 

[DEBUG] Looking for patch: enhancements.patch in: /opt/8.4/build/mysql-shell-8.4.4-src/ext/polyglot/polyglot-nativeapi/patches/enhancements.patch
[INFO] Applying patch: enhancements.patch
[DEBUG] Executing: /bin/sh -c cd '/opt/8.4/build/mysql-shell-8.4.4-src/ext/polyglot/polyglot-nativeapi' && 'patch' '-p1' '-l' '-i' '/opt/8.4/build/mysql-shell-8.4.4-src/ext/polyglot/polyglot-nativeapi/patches/enhancements.patch'
[DEBUG] patching file src/main/java/org/graalvm/polyglot/nativeapi/PolyglotNativeAPI.java
[DEBUG] Hunk #1 FAILED at 28.
[DEBUG] Hunk #2 succeeded at 75 with fuzz 1 (offset -2 lines).
[DEBUG] Hunk #3 succeeded at 113 (offset -3 lines).
[DEBUG] Hunk #4 succeeded at 175 with fuzz 1 (offset -15 lines).
[DEBUG] Hunk #5 succeeded at 543 (offset -120 lines).
[DEBUG] Hunk #6 succeeded at 597 (offset -137 lines).
[DEBUG] Hunk #7 succeeded at 771 (offset -127 lines).
[DEBUG] Hunk #8 succeeded at 1049 (offset -127 lines).
[DEBUG] Hunk #9 succeeded at 1100 (offset -127 lines).
[DEBUG] Hunk #10 succeeded at 1318 (offset -127 lines).
[DEBUG] Hunk #11 succeeded at 3223 (offset -127 lines).
[DEBUG] Hunk #12 succeeded at 3549 (offset -127 lines).
[DEBUG] Hunk #13 FAILED at 4058.
[DEBUG] Hunk #14 succeeded at 3945 (offset -131 lines).
[DEBUG] Hunk #15 succeeded at 4037 (offset -131 lines).
[DEBUG] Hunk #16 succeeded at 4092 (offset -131 lines).
[DEBUG] Hunk #17 succeeded at 4230 (offset -131 lines).
[DEBUG] Hunk #18 succeeded at 4630 (offset -229 lines).
[DEBUG] 2 out of 18 hunks FAILED -- saving rejects to file src/main/java/org/graalvm/polyglot/nativeapi/PolyglotNativeAPI.java.rej
[DEBUG] patching file src/main/java/org/graalvm/polyglot/nativeapi/PolyglotNativeAPIEntryPoints.java
[DEBUG] Exit code: 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for mysql-middleware-polyglot-library-bundle 1.0-SNAPSHOT:
[INFO]
[INFO] mysql-middleware-polyglot-library-bundle ........... SUCCESS [  0.769 s]
[INFO] polyglot-nativeapi ................................. FAILURE [  0.409 s]
[INFO] polyglot-nativeapi-native-library .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.359 s
[INFO] Finished at: 2025-02-07T17:15:35+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-patch-plugin:1.2:apply (mysql-middleware-enhancements) on project polyglot-nativeapi: Patch command failed with exit code 1 for enhancements.patch. Please see console and debug output for more information. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-patch-plugin:1.2:apply (mysql-middleware-enhancements) on project polyglot-nativeapi: Patch command failed with exit code 1 for enhancements.patch. Please see console and debug output for more information.
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
    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 jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at 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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Patch command failed with exit code 1 for enhancements.patch. Please see console and debug output for more information.
    at org.apache.maven.plugin.patch.ApplyMojo.applyPatches (ApplyMojo.java:447)
    at org.apache.maven.plugin.patch.ApplyMojo.execute (ApplyMojo.java:288)
    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 jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at 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)
[25 Feb 8:39] MySQL Verification Team
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug.

For details on getting support for MySQL products see http://www.mysql.com/support/
You can also check our forums (free) at http://forums.mysql.com/

Thank you for your interest in MySQL.