nodejs / llnode

An lldb plugin for Node.js and V8, which enables inspection of JavaScript states for insights into Node.js processes and their core dumps.
Other
1.15k stars 100 forks source link

brew install: unknown option --with-lldb #286

Open watson opened 5 years ago

watson commented 5 years ago

If I use the following brew install command from the readme:

brew install --with-lldb --with-toolchain llvm

I get the following error:

Error: invalid option: --with-lldb

Here's the result of my brew info llvm:

llvm: stable 8.0.0 (bottled), HEAD [keg-only]
Next-gen compiler infrastructure
https://llvm.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/llvm.rb
==> Dependencies
Build: cmake ✘
Required: libffi ✔, swig ✘
==> Requirements
Build: xcode ✔
==> Options
--HEAD
        Install HEAD version
==> Caveats
To use the bundled libc++ please add the following LDFLAGS:
  LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"

llvm is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

==> Analytics
install: 10,302 (30 days), 39,199 (90 days), 174,788 (365 days)
install_on_request: 8,019 (30 days), 30,640 (90 days), 134,400 (365 days)
build_error: 0 (30 days)
watson commented 5 years ago

I think the answer is here: https://twitter.com/gibfahn/status/1159020612037332992

joyeecheung commented 5 years ago

Maybe we should just remove that recommendation (AFAIK it still works if you specify llvm@6? But using that doesn't look like a good idea). I am using the Xcode lldb these days and it seems fine.

stringang commented 2 years ago

refer to homebrew: https://github.com/Homebrew/homebrew-core/issues/36992 https://github.com/Homebrew/homebrew-core/issues/31510