Comments (2)
I also ran across this issue and was able to resolve it @rvypandey and @gmarcz
The problem is that the install script attempts to download headers for the lldb version that is found on the system but the headers do not appear to match the binary that is included on M1 macs and the dlopen
fails (I think that is what is happening).
I was able to resolve this by installing llvm via homebrew and ensuring it was found on the PATH
(before the lldb that is bundled with xcode). Using the blurb in the docs did not correctly override the PATH
for me and once that issue was resolved llnode
was able to find the correct llvm-config
and node-gyp built the dylib
correctly.
Here are the commands I used to get things installed successfully.
$ brew install llvm
$ echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
$ # note that its before recopying PATH to make sure it resolves
$ zsh ~/.zshrc
$ which llvm-config
Double check withwhich llvm-config
that its on PATH. The correct one, from the homebrew install, needs to come up or the llnode
install attempts to download the incorrect headers causing the plugin to fail at load time. Even with restarting my shell the PATH was incorrect and I had to open a new one before this worked correctly for some reason 🤷♂️
Once llvm-config
is found, llnode
does not have to download the headers and the ones it uses will match the version of lldb that starts (handled by llvm-config
which was not originally on my M1 mac). You can now successfully run the install and the dylib loads fine.
$ npm i -g llnode
$ llnode
(lldb) plugin load '/Users/matthewkeil/.nvm/versions/node/v20.5.1/lib/node_modules/llnode/llnode.dylib'
(lldb) settings set prompt '(llnode) '
(llnode)
from llnode.
I have the same issue with the plugin on my MacBook Pro M1.
Installed with 'npm install -g llnode' command.
- llnode: 4.0.0
- node: v16.20.1
- lldb: lldb-1403.0.17.67 Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
- OS: Darwin MacBook-Pro-M1.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:19 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8103 arm64
- Xcode: 14.3.1 Build version 14E300c
from llnode.
Related Issues (20)
- Rename primary branch to main HOT 4
- llnode failed to install HOT 12
- Not showing details of JS frames on node v16.14.0 HOT 6
- ptrace: No such process. HOT 2
- Document User Journey HOT 11
- core dump collaboration call HOT 27
- Supported Features Matrix HOT 1
- Reinstate 19 Nightly Build HOT 1
- Apply env variables to test timeouts consistently
- 'v8 findjsobjects' command is failing with below the stack trace - need help HOT 4
- discussion: Re-establish automation to detect breaking changes HOT 2
- refactor: use `debug_helper`
- tests: Fix flaky JSArrayBuffer test HOT 3
- bug(print-source): libc++abi: terminating with uncaught exception
- no coverage for "v8 nodeinfo" HOT 4
- [question] emtpy result when read core file HOT 2
- cannot load core file HOT 1
- Consistent crashes with `v8 findrefs -s` HOT 1
- [Question] examining coredumps on Mac x86 HOT 1
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 llnode.