paketo-buildpacks / native-image

A Cloud Native Buildpack that creates native images from Java applications
Apache License 2.0
46 stars 9 forks source link

ERROR: Please rebuild the executable with an appropriate setting of the -march option. #281

Closed GeTOUO closed 12 months ago

GeTOUO commented 12 months ago

my project config:

springboot 3.1.1 jdk17

I made the image mvn spring-boot:build-image -pnative with the following command, and then it ran fine locally and failed to boot on a machine in a corporate environment and threw the following exception:

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, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA]. Please rebuild the executable with an appropriate setting of the -march option.

dmikusa commented 12 months ago

Closing as duplicate of https://github.com/paketo-buildpacks/spring-boot/issues/387