Comments (13)
Are /tmp
and coding/bun-kai/test
on different mount points/filesystems?
Edit: I can reproduce the issue, it indeed happens because bkg writes to a temporary file in /tmp
while compiling, and it fails to move the file if the output path is in a different filesystem.
from bkg.
Fixed! Thanks for reporting 👍
I've updated the release assets for v0.0.4
, please reinstall and see if it fixes the issue.
from bkg.
That happens because bkg expects the entrypoint of the application to be index.js
(js) by default when bkg.config.json
is absent.
A quick workaround is create a bkg.config.json
in the project root and set the entry
key to index.ts
.
This is stupid though, I'll probably add index.ts
to default entrypoints 👍
from bkg.
The empty output of cat /proc/cpuinfo | grep -o avx2
means your CPU doesn't support AVX2.
Can you try running bkg with --baseline
flag and see if it changes anything?
from bkg.
It solved the error.
Thanks for responding to this issue 🙏
from bkg.
Yup, that's the the problem.
bkg ./ -o /tmp/test
No target was specified, building for x86_64-linux
Downloading bun-v0.4.0 for target x86_64-linux...
Runtime already exists, skipping
Downloading bkg runtime v0.0.4 for target x86_64-linux...
bkg runtime already exists, skipping
Building archive...
Writing directory test
Writing file test/README.md with 221 bytes
Writing file test/tsconfig.json with 416 bytes
test/bun.lockb is executable
Writing file test/bun.lockb with 1187 bytes
Writing file test/package.json with 121 bytes
Writing directory test/node_modules
Writing directory test/node_modules/bun-types
Writing file test/node_modules/bun-types/README.md with 1017 bytes
Writing file test/node_modules/bun-types/types.d.ts with 1899784 bytes
Writing file test/node_modules/bun-types/package.json with 375 bytes
Writing file test/index.ts with 30 bytes
Writing file .gitignore with 2172 bytes
Configuration file not found, using default
Adding Bun binary...
Finalized archive
Compressing archive...
Compressed to 37712537 bytes
Calculated CRC32 hash: 565776911
Writing archive to binary...
Written 37712537 bytes to binary
Finalizing binary...
Done
⚡ Built test for target x86_64-linux.
from bkg.
Now it's compiled successfully, but now I get another error :
from bkg.
I've added bkg.config.json, this is what i get :
from bkg.
I can't seem to be able to reproduce this.
Can you zip up the test
folder and upload it so I can have a look?
from bkg.
It's just the default project that is generated with bun init
.
https://github.com/dominggo1999/bkg-error-reproduction
even if there is only index.js file it still gives the error
from bkg.
Looks like the embedded Bun runtime is crashing.
What happens if you run:
/tmp/.test_runtime_1058350503/bkg_bun /tmp/.test_runtime_1058350503/index.js
Does it crash or work correctly?
Also, what is the output of cat /proc/cpuinfo | grep -o avx2
?
from bkg.
there is no .test_runtime_1058350503/bkg_bun & .test_runtime_1058350503/index.js in /tmp
from bkg.
Glad to see this issue solved!
bkg should really check for the support of AVX2 instructions at compile time to make this less confusing; you can be sure to see that in the next release.
from bkg.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bkg.