oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.95k stars 2.75k forks source link

Bun REPL does not work on Windows #10148

Open mpodwysocki opened 6 months ago

mpodwysocki commented 6 months ago

What version of Bun is running?

1.1.3

What platform is your computer?

Windows 11 Version 24H2 2600.1 ARM64

What steps can reproduce the bug?

Install using the bun install powershell -c "irm bun.sh/install.ps1 | iex" and then run the following:

bun repl

What is the expected behavior?

Bun REPL works

What do you see instead?

  🚚 bun-repl [7/20] Illegal instruction at address 0x7ff711f25671
???:?:?: 0x7ff711f2590f in ??? (bun.exe)
???:?:?: 0x7ff71145420e in ??? (bun.exe)
???:?:?: 0x7ff71136ed34 in ??? (bun.exe)
???:?:?: 0x7ff711377ff7 in ??? (bun.exe)
???:?:?: 0x7ff7115a72f4 in ??? (bun.exe)
???:?:?: 0x7ffabbe2bf5b in ??? (KERNEL32.DLL)
???:?:?: 0x7ffabbdae5a7 in ??? (KERNEL32.DLL)
???:?:?: 0x7ffabc3b740f in ??? (ntdll.dll)

Additional information

No response

gvilums commented 6 months ago

Unfortunately I can't reproduce this. Are there any further details you can share? Did you try re-installing bun?

mpodwysocki commented 6 months ago

@gvilums this was using ARM64 Windows which apparently I cannot install anymore due to the installer no longer supporting ARM64 and only supporting x86/x64

Jarred-Sumner commented 6 months ago

@mpodwysocki we haven't had support for Windows arm64 builds of Bun

Is it possible it was running before in an emulation mode? Does windows have an equivalent of rosetta?

mpodwysocki commented 6 months ago

@mpodwysocki we haven't had support for Windows arm64 builds of Bun

Is it possible it was running before in an emulation mode? Does windows have an equivalent of rosetta?

@Jarred-Sumner The original installer didn't do a check for ARM64 so that was a fairly recent change that didn't allow me to reinstall the binaries. By default, Windows 10 should be able to run x86 binaries on Windows ARM64 builds, whereas Windows 11 should be able to run x64 and x86 apps directly. You can add ARM support, however, as noted here https://learn.microsoft.com/en-us/windows/arm/add-arm-support

raix commented 5 months ago

@Jarred-Sumner is arm64 build for Windows on the roadmap / viable?