spring-projects / spring-shell

Spring based shell
http://projects.spring.io/spring-shell/
Apache License 2.0
719 stars 395 forks source link

e2e native compile fail with jline 3.25.1 #999

Closed jvalkeal closed 6 months ago

jvalkeal commented 6 months ago

This is with latest snapshots in 3.2.x/3.1.x

Error: Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///home/runner/.gradle/caches/modules-2/files-2.1/org.jline/jline-terminal-jna/3.25.1/7e39efe62b2710b9f2bbefd2911e176b2efe1105/jline-terminal-jna-3.25.1.jar!/META-INF/native-image/org.jline/jline-terminal-jna/native-image.properties'. Use -H:PrintFlags= to list all available options.

We're using relatively old graalvm version and UnlockExperimentalVMOptions is quite new option. It's questionably if jline should be more conservative with its own native config. We should pump version we're testing with.

jvalkeal commented 6 months ago

Well this is not great, on macos in github runners when running native image we get error:

    Received: ["The current machine does not support all of the following CPU features that are ", "required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SS", "E4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].