linghengqian opened a new pull request, #37967:
URL: https://github.com/apache/shardingsphere/pull/37967

   Fixes https://github.com/apache/shardingsphere/issues/37847 .
   
   Changes proposed in this pull request:
     - Fixes the build of fully statically linked GraalVM Native Images.
     - The current PR can be verified locally using `./mvnw -am -pl 
distribution/proxy-native -T1C "-Pdocker.build.native.linux" 
"-Dproxy.native.dockerfile=Dockerfile-linux-static" 
"-Dproxy.native.image.tag=5.5.3-SNAPSHOT-static" "-DskipTests" clean package`. 
I checked 
https://github.com/hpi-swa/trufflesqueak/commit/187e2ed7b02653c230b285e7a722097163a4928e
 and confirmed that this is a breakthrough change from GraalVM CE for JDK 
24.0.1 to GraalVM CE for JDK 24.0.2.
   ```
   #8 94.84 
========================================================================================================================
   #8 94.85 GraalVM Native Image: Generating 'shardingsphere-proxy-native' 
(static executable)...
   #8 94.85 
========================================================================================================================
   #8 94.85 For detailed information and explanations on the build output, 
visit:
   #8 94.85 
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
   #8 94.85 
------------------------------------------------------------------------------------------------------------------------
   #8 100.6 [1/8] Initializing...                                               
                                    (11.1s @ 0.33GB)
   #8 100.6  Java version: 24.0.2+11, vendor version: GraalVM CE 24.0.2+11.1
   #8 100.6  Graal compiler: optimization level: 2, target machine: x86-64-v3
   #8 100.6  C compiler: x86_64-linux-musl-gcc (linux, x86_64, 10.2.1)
   #8 100.6  Garbage collector: Serial GC (max heap size: 80% of RAM)
   #8 100.6  2 user-specific feature(s):
   #8 100.6  - com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature
   #8 100.6  - com.oracle.svm.thirdparty.gson.GsonFeature
   #8 100.6 
------------------------------------------------------------------------------------------------------------------------
   #8 100.6  1 experimental option(s) unlocked:
   #8 100.6  - '-H:+IncludeAllLocales' (origin(s): command line)
   #8 100.6 
------------------------------------------------------------------------------------------------------------------------
   #8 100.6  Picked up NATIVE_IMAGE_OPTIONS:
   #8 100.6  - '--static'
   #8 100.6  - '--libc=musl'
   #8 100.6 
------------------------------------------------------------------------------------------------------------------------
   ```
     - Update the documentation. Compiling mostly static linked GraalVM Native 
Images does not require downloading 
`musl-toolchain-1.2.5-oracle-00001-linux-amd64.tar.gz`.
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following 
options:
   - [x] My code follows the [code of 
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) 
of this project.
   - [x] I have self-reviewed the commit code.
   - [x] I have (or in comment I request) added corresponding labels for the 
pull request.
   - [x] I have passed maven check locally : `./mvnw clean install -B -T1C 
-Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [x] I have made corresponding changes to the documentation.
   - [ ] I have added corresponding unit tests for my changes.
   - [ ] I have updated the Release Notes of the current development version. 
For more details, see [Update Release 
Note](https://shardingsphere.apache.org/community/en/involved/contribute/contributor/)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to