tags: update illegal instuction

This commit is contained in:
Hyro 2022-08-02 08:12:34 +02:00 committed by GitHub
parent 4e747f1fd8
commit 6cdb74dc21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,30 +81,12 @@ keywords = ["illegal-instruction", "core-dumped", "dumped", "core", "illegal"]
content = """ content = """
**Illegal instruction - core dumped** **Illegal instruction - core dumped**
Bun currently only works on CPUs supporting the AVX2 instruction set. Update to latest 0.1.6 version using:
There is nothing you can do about it at the moment, you can only wait. ```
However, there are plans to make a build that doesn't need AVX2 ([#67](<https://github.com/oven-sh/bun/issues/67>)) curl https://bun.sh/install | bash
```
**NOT RECOMMENDED (VERY SLOW ALTERNATIVE)**: or install latest *-baseline build
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`
""" """
[why-zig] [why-zig]