Describe the bug
vp create --package-manager bun silently fails (exit code 1) because the bundled bun.native binary shipped with vp crashes with SIGILL (signal 4, exit code 132) on CPUs that lack AVX2 support.
The system's own bun binary (same version 1.3.14) works fine.
Reproduction
Steps to reproduce:
- Run on a CPU without AVX2 (e.g. Intel Ivy Bridge i5-3470S)
- Execute
vp create @tanstack/start --package-manager bun -- myapp --yes
- Observe: no project created, exit code 1, no visible output from template
Direct test of the bundled binary:
$ timeout 5 ~/.vite-plus/package_manager/bun/1.3.14/bun/bin/bun.native --version
timeout: the monitored command dumped core
exit: 132
The system bun works:
$ /home/mrboxs/.bun/bin/bun --version
1.3.14
Steps to reproduce
- Install vp via
curl -fsSL https://vite.plus | bash
- Run
vp create @tanstack/start --package-manager bun -- myapp --yes
- No project created, exit code 1
System Info
$ vp env current
Environment:
Version 24.18.0
Source lts
Tool Paths:
node /home/mrboxs/.vite-plus/js_runtime/node/24.18.0/bin/node
npm /home/mrboxs/.vite-plus/js_runtime/node/24.18.0/bin/npm
npx /home/mrboxs/.vite-plus/js_runtime/node/24.18.0/bin/npx
$ vp --version
vp v0.2.2
- OS: Arch Linux, Linux 7.0.10-arch1-1 x86_64
- CPU: Intel Core i5-3470S @ 2.90GHz (SSE4.2 + AVX, no AVX2)
Used Package Manager
bun
Logs
Bundled bun binary MD5: 7d0efc01d1124bb79ca444cb9cb404af (92MB)
System bun binary MD5: 0233916fabdff93d1da22d583555fa76
The bundled binary appears to be compiled with AVX2 instructions not supported on Ivy Bridge and older CPUs.
Workaround
mv ~/.vite-plus/package_manager/bun/1.3.14/bun/bin/bun.native{,.bak}
ln -sf ~/.bun/bin/bun ~/.vite-plus/package_manager/bun/1.3.14/bun/bin/bun.native
Suggested Fix
- Rebuild
bun.native targeting -march=x86-64-v2 (no AVX2 requirement)
- Or fall back to system bun when bundled binary fails with SIGILL
- Or detect CPU features and download appropriate bun build at install time
Describe the bug
vp create --package-manager bunsilently fails (exit code 1) because the bundledbun.nativebinary shipped withvpcrashes with SIGILL (signal 4, exit code 132) on CPUs that lack AVX2 support.The system's own bun binary (same version 1.3.14) works fine.
Reproduction
Steps to reproduce:
vp create @tanstack/start --package-manager bun -- myapp --yesDirect test of the bundled binary:
The system bun works:
Steps to reproduce
curl -fsSL https://vite.plus | bashvp create @tanstack/start --package-manager bun -- myapp --yesSystem Info
Used Package Manager
bun
Logs
Bundled bun binary MD5:
7d0efc01d1124bb79ca444cb9cb404af(92MB)System bun binary MD5:
0233916fabdff93d1da22d583555fa76The bundled binary appears to be compiled with AVX2 instructions not supported on Ivy Bridge and older CPUs.
Workaround
Suggested Fix
bun.nativetargeting-march=x86-64-v2(no AVX2 requirement)