diff --git a/files/tags.toml b/files/tags.toml index 4e6b0e4..0033c8d 100644 --- a/files/tags.toml +++ b/files/tags.toml @@ -57,8 +57,35 @@ content = """ To fix this error, you need to update Linux kernel. If you are using the Windows Subsystem for Linux, do: - **1.** Open powershell + **1.** Open powershell as administrator **2.** Run: • wsl --set-version 2 • wsl --shutdown +""" + +[illegal-instruction] +keywords = ["illegal-instruction", "core-dumped", "dumped", "core", "illegal"] +cotent = """ +**Illegal instruction - core dumped** + +Bun currently only works on CPUs supporting the AVX2 instruction set. +To run on older CPUs this can be emulated using Intel SDE, however bun won't be as fast as it would be when running on CPUs with AVX2 support. +If you get this error while bun is initializing, you probably need to wrap the bun executable with intel-sde. + +**1.** Install intel-sde: + • Arch Linux: `yay -S intel-sde` + • Other Distros: +```bash +wget https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz -O /tmp/intel-sde.tar.xz +cd /tmp +tar -xf intel-sde.tar.xz +cd sde-external* +mkdir /usr/local/bin -p +cp sde64 /usr/local/bin/sde +cp -r intel64 /usr/local/bin/ +cp -r misc /usr/local/bin/ +``` + +**2.** Add alias to bashrc + • `echo "alias bun='sde -chip-check-disable -- bun'" >> ~/.bashrc` """ \ No newline at end of file