tags: update io-uring & add illegal-instruction

This commit is contained in:
xHyroM 2022-07-14 09:31:11 +02:00
parent a958fb06b2
commit e0446ad994

View file

@ -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 <distro name> 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`
"""