yaml / yamlscript

Programming in YAML
MIT License
358 stars 31 forks source link

Error: "The current machine does not support... CPU features... required by the image" #127

Open danielmartincraig opened 2 months ago

danielmartincraig commented 2 months ago

Hi, thanks for a very interesting tool. On my low-end computer I see the following error message when I run ys:

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.% 

I'm running ys on Debain 12 (Bookwork) within Windows Subsystem for Linux on a low-end laptop (Intel(R) Celeron(R) N4120 CPU @ 1.10GHz 1.10 GHz)

ingydotnet commented 2 months ago

I'll try adding a special binary build with -march=compatibility from https://www.graalvm.org/latest/reference-manual/native-image/overview/Options/ and you can test that for me. Might be a day or 2.

Note that you can also build ys yourself by cloning the repo and running make -C ys build install. I doubt you'll need to change any settings if you do it that way.

danielmartincraig commented 2 months ago

Thanks for the quick response! I'll try building it myself and see how it goes!