Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal hardware instruction #762

Closed
SaDi-BRo opened this issue Jul 17, 2022 · 5 comments
Closed

Illegal hardware instruction #762

SaDi-BRo opened this issue Jul 17, 2022 · 5 comments
Labels
question Further information is requested

Comments

@SaDi-BRo
Copy link

Version

No response

Platform

Linux arch 5.18.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 15 Jul 2022 15:33:02 +0000 x86_64 GNU/Linux

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

image

I got this error. I just installed bun, and tried to use

Additional information

No response

@SaDi-BRo SaDi-BRo added bug Something isn't working needs repro Needs an example to reproduce labels Jul 17, 2022
@xhyrom
Copy link
Collaborator

xhyrom commented Jul 17, 2022

From bun discord bot:

Illegal instruction - core dumped

Bun currently only works on CPUs supporting the AVX2 instruction set.
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)

NOT RECOMMENDED (VERY SLOW ALTERNATIVE):
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:

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

@FinnRG
Copy link
Collaborator

FinnRG commented Jul 17, 2022

Duplicate of #67.

@FinnRG FinnRG closed this as completed Jul 17, 2022
@xhyrom xhyrom added question Further information is requested and removed bug Something isn't working needs repro Needs an example to reproduce labels Jul 28, 2022
@SaDi-BRo
Copy link
Author

From bun discord bot:

Illegal instruction - core dumped

Bun currently only works on CPUs supporting the AVX2 instruction set. 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)

NOT RECOMMENDED (VERY SLOW ALTERNATIVE): 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:

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

Thanks. That's worked🎉

@xhyrom
Copy link
Collaborator

xhyrom commented Aug 20, 2022

From bun discord bot:

Illegal instruction - core dumped
Bun currently only works on CPUs supporting the AVX2 instruction set. 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)
NOT RECOMMENDED (VERY SLOW ALTERNATIVE): 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:

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

Thanks. That's worked🎉

now, you can just use bun upgrade becasue there are no AVX2 builds

@SaDi-BRo
Copy link
Author

From bun discord bot:

Illegal instruction - core dumped
Bun currently only works on CPUs supporting the AVX2 instruction set. 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)
NOT RECOMMENDED (VERY SLOW ALTERNATIVE): 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:

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

Thanks. That's worked🎉

now, you can just use bun upgrade becasue there are no AVX2 builds

I have already latest version. It hasn't upgraded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants