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

[Bug] unable to find llvm-bindings.node #35

Open
rishavs opened this issue Nov 3, 2022 · 0 comments
Open

[Bug] unable to find llvm-bindings.node #35

rishavs opened this issue Nov 3, 2022 · 0 comments

Comments

@rishavs
Copy link

rishavs commented Nov 3, 2022

Your environment

  • OS version: Linux 5.10.102.1-microsoft-standard-WSL2 x86_64 GNU/Linux
  • Node.js version: 12.22.9
  • LLVM version: 14.0.6

Describe the bug
when I try to run my ts project using esbuild, i get the error that it is unable to find the llvm-bindings.node file.

rishav@Rishav-SB3:~/tyll$ npm run dev

> [email protected] dev
> esbuild --bundle tyll.ts --format=esm --log-level=warning --platform=node --outfile=dist/compiled.js && node dist/compiled.js

/home/rishav/tyll/dist/compiled.js:145
      throw err;
      ^

Error: Could not locate the bindings file. Tried:
 → /home/rishav/tyll/build/llvm-bindings.node
 → /home/rishav/tyll/build/Debug/llvm-bindings.node
 → /home/rishav/tyll/build/Release/llvm-bindings.node
 → /home/rishav/tyll/out/Debug/llvm-bindings.node
 → /home/rishav/tyll/Debug/llvm-bindings.node
 → /home/rishav/tyll/out/Release/llvm-bindings.node
 → /home/rishav/tyll/Release/llvm-bindings.node
 → /home/rishav/tyll/build/default/llvm-bindings.node
 → /home/rishav/tyll/compiled/12.22.9/linux/x64/llvm-bindings.node
 → /home/rishav/tyll/addon-build/release/install-root/llvm-bindings.node
 → /home/rishav/tyll/addon-build/debug/install-root/llvm-bindings.node
 → /home/rishav/tyll/addon-build/default/install-root/llvm-bindings.node
 → /home/rishav/tyll/lib/binding/node-v72-linux-x64/llvm-bindings.node
    at bindings (/home/rishav/tyll/dist/compiled.js:139:13)
    at node_modules/llvm-bindings/index.js (/home/rishav/tyll/dist/compiled.js:199:40)
    at __require2 (/home/rishav/tyll/dist/compiled.js:15:50)
    at Object.<anonymous> (/home/rishav/tyll/dist/compiled.js:204:36)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  tries: [
    '/home/rishav/tyll/build/llvm-bindings.node',
    '/home/rishav/tyll/build/Debug/llvm-bindings.node',
    '/home/rishav/tyll/build/Release/llvm-bindings.node',
    '/home/rishav/tyll/out/Debug/llvm-bindings.node',
    '/home/rishav/tyll/Debug/llvm-bindings.node',
    '/home/rishav/tyll/out/Release/llvm-bindings.node',
    '/home/rishav/tyll/Release/llvm-bindings.node',
    '/home/rishav/tyll/build/default/llvm-bindings.node',
    '/home/rishav/tyll/compiled/12.22.9/linux/x64/llvm-bindings.node',
    '/home/rishav/tyll/addon-build/release/install-root/llvm-bindings.node',
    '/home/rishav/tyll/addon-build/debug/install-root/llvm-bindings.node',
    '/home/rishav/tyll/addon-build/default/install-root/llvm-bindings.node',
    '/home/rishav/tyll/lib/binding/node-v72-linux-x64/llvm-bindings.node'
  ]
}

Expected behavior

I would expect that the llvm-bindings.node file would be correctly fetched from its location in the npm modules.

To unblock myself, I have currently copied the file into ./Release/llvm-bindings.node path

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

No branches or pull requests

1 participant