GithubHelp home page GithubHelp logo

error: RenameAcrossMountPoints about bkg HOT 13 CLOSED

theseyan avatar theseyan commented on August 25, 2024
error: RenameAcrossMountPoints

from bkg.

Comments (13)

theseyan avatar theseyan commented on August 25, 2024 1

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.

theseyan avatar theseyan commented on August 25, 2024 1

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.

theseyan avatar theseyan commented on August 25, 2024 1

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.

theseyan avatar theseyan commented on August 25, 2024 1

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.

oggnimodd avatar oggnimodd commented on August 25, 2024 1

It solved the error.

image

Thanks for responding to this issue 🙏

from bkg.

oggnimodd avatar oggnimodd commented on August 25, 2024

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.

oggnimodd avatar oggnimodd commented on August 25, 2024

Now it's compiled successfully, but now I get another error :

image

image

from bkg.

oggnimodd avatar oggnimodd commented on August 25, 2024

I've added bkg.config.json, this is what i get :

image

image

from bkg.

theseyan avatar theseyan commented on August 25, 2024

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.

oggnimodd avatar oggnimodd commented on August 25, 2024

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

image

from bkg.

theseyan avatar theseyan commented on August 25, 2024

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.

oggnimodd avatar oggnimodd commented on August 25, 2024

there is no .test_runtime_1058350503/bkg_bun & .test_runtime_1058350503/index.js in /tmp

image

from bkg.

theseyan avatar theseyan commented on August 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.