Closed PugDeveloper closed 2 years ago
Same as https://github.com/nodejs/llnode/issues/350 As far as I can tell the fix is available here https://github.com/nodejs/llnode/pull/389 It's just waiting for CI to be sorted.
Ah I see, Thank you. Not sure if I'm manually installing this correct. Do I just follow the below step?: Cause I did the below and its not working (minus the && sign)
` # globally install llnode
&& git clone --branch use-llvm-project-monorepo https://github.com/trxcllnt/llnode.git /usr/local/lib/llnode \
&& npm install --global --unsafe-perm --no-audit --no-fund /usr/local/lib/llnode \
&& which -a llnode`
Yes that's the command it's hard to see what's going on without the error message but note it runs in system folders so it should be ran as root
When I run the npm now I get this error:
matchapug@MRPUG:~$ npm install --global --unsafe-perm --no-audit --no-fund /usr/local/lib/llnode
npm ERR! code 1
npm ERR! path /usr/local/lib/llnode
npm ERR! command failed
npm ERR! command sh -c node scripts/configure.js
npm ERR! Build dir is: /usr/local/lib/llnode
npm ERR! Looking for lldb executable...
npm ERR! Found lldb executable /usr/bin/lldb
npm ERR!
npm ERR! Reading lldb version...
npm ERR! Installing llnode for /usr/bin/lldb, lldb version 10.0
npm ERR!
npm ERR! Looking for llvm-config for lldb 10.0...
npm ERR! Using llvm-config in /usr/bin/llvm-config
npm ERR!
npm ERR! Looking for headers for lldb 10.0...
npm ERR! Could not find the headers, will download them later
npm ERR!
npm ERR! Looking for shared libraries for lldb 10.0...
npm ERR! From ldd: /usr/bin/lldb loads /lib/x86_64-linux-gnu/liblldb-10.so.1
npm ERR! Found liblldb-10.so in /lib/x86_64-linux-gnu
npm ERR!
npm ERR! Cloning lldb release/10.x into /usr/local/lib/llnode/lldb-10.0
npm ERR! Cloning into '/usr/local/lib/llnode/lldb-10.0'...
npm ERR! fatal: cannot change to 'https://github.com/llvm/llvm-project.git': No such file or directory
npm ERR! error: failed to initialize sparse-checkout
npm ERR! node:child_process:867
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Command failed: git clone --depth 1 --filter=blob:none --sparse --branch release/10.x https://github.com/llvm/llvm-project.git /usr/local/lib/llnode/lldb-10.0
npm ERR! at checkExecSyncError (node:child_process:826:11)
npm ERR! at Object.execFileSync (node:child_process:864:15)
npm ERR! at Object.cloneHeaders (/usr/local/lib/llnode/scripts/lldb.js:66:19)
npm ERR! at configureInstallation (/usr/local/lib/llnode/scripts/configure.js:89:25)
npm ERR! at main (/usr/local/lib/llnode/scripts/configure.js:12:34)
npm ERR! at Object.<anonymous> (/usr/local/lib/llnode/scripts/configure.js:20:1)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
npm ERR! status: 1,
npm ERR! signal: null,
npm ERR! output: [ null, null, null ],
npm ERR! pid: 8024,
npm ERR! stdout: null,
npm ERR! stderr: null
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /home/matchapug/.npm/_logs/2021-11-12T01_45_59_729Z-debug.log
This line looks very suspicious
npm ERR! fatal: cannot change to 'https://github.com/llvm/llvm-project.git': No such file or directory
Can you confirm that /usr/local/lib/llnode/lldb-10.0
has been generated and the code is checked out into it.
The output of the command ls -R /usr/local/lib/llnode/lldb-10.0
will confirm it
I see it seem like there isn't a 11db-10.0 folder within the llnode. Would you happen to know why? Kind of new to this so bit confusing.
Thanks for the help so far!
It's likely not working due to permissions but I can't say for sure. You might be able to work around this by checking it out and build it from your home directory Just ran this on my local machine as a single command and it worked fine.
cd ~ && git clone --branch use-llvm-project-monorepo https://github.com/trxcllnt/llnode.git && cd llnode && npm install --global --unsafe-perm --no-audit --no-fund
Heres a breakdown of what's going on.
cd ~
git clone --branch use-llvm-project-monorepo https://github.com/trxcllnt/llnode.git
cd llnode
npm install --global --unsafe-perm --no-audit --no-fund
If that doesn't work it may be better waiting for the PR to land Ah I see, still doesn't work, Seem like would nee to wait for PR. Anyone knows when that will happen?
When I run the npm now I get this error:
matchapug@MRPUG:~$ npm install --global --unsafe-perm --no-audit --no-fund /usr/local/lib/llnode npm ERR! code 1 npm ERR! path /usr/local/lib/llnode npm ERR! command failed npm ERR! command sh -c node scripts/configure.js npm ERR! Build dir is: /usr/local/lib/llnode npm ERR! Looking for lldb executable... npm ERR! Found lldb executable /usr/bin/lldb npm ERR! npm ERR! Reading lldb version... npm ERR! Installing llnode for /usr/bin/lldb, lldb version 10.0 npm ERR! npm ERR! Looking for llvm-config for lldb 10.0... npm ERR! Using llvm-config in /usr/bin/llvm-config npm ERR! npm ERR! Looking for headers for lldb 10.0... npm ERR! Could not find the headers, will download them later npm ERR! npm ERR! Looking for shared libraries for lldb 10.0... npm ERR! From ldd: /usr/bin/lldb loads /lib/x86_64-linux-gnu/liblldb-10.so.1 npm ERR! Found liblldb-10.so in /lib/x86_64-linux-gnu npm ERR! npm ERR! Cloning lldb release/10.x into /usr/local/lib/llnode/lldb-10.0 npm ERR! Cloning into '/usr/local/lib/llnode/lldb-10.0'... npm ERR! fatal: cannot change to 'https://github.com/llvm/llvm-project.git': No such file or directory npm ERR! error: failed to initialize sparse-checkout npm ERR! node:child_process:867 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Command failed: git clone --depth 1 --filter=blob:none --sparse --branch release/10.x https://github.com/llvm/llvm-project.git /usr/local/lib/llnode/lldb-10.0 npm ERR! at checkExecSyncError (node:child_process:826:11) npm ERR! at Object.execFileSync (node:child_process:864:15) npm ERR! at Object.cloneHeaders (/usr/local/lib/llnode/scripts/lldb.js:66:19) npm ERR! at configureInstallation (/usr/local/lib/llnode/scripts/configure.js:89:25) npm ERR! at main (/usr/local/lib/llnode/scripts/configure.js:12:34) npm ERR! at Object.<anonymous> (/usr/local/lib/llnode/scripts/configure.js:20:1) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12) { npm ERR! status: 1, npm ERR! signal: null, npm ERR! output: [ null, null, null ], npm ERR! pid: 8024, npm ERR! stdout: null, npm ERR! stderr: null npm ERR! } npm ERR! A complete log of this run can be found in: npm ERR! /home/matchapug/.npm/_logs/2021-11-12T01_45_59_729Z-debug.log
Installing the liblldb-dev package on ubuntu fixed this for me. This package contains the needed lldb header. No need for the git clone during the installation anymore ... Would the llnode not be simpler by just specifying this package as a needed prerequisite?
Installing the liblldb-dev package on ubuntu fixed this for me. This package contains the needed lldb header. No need for the git clone during the installation anymore ... Would the llnode not be simpler by just specifying this package as a needed prerequisite?
This did it for me, thanks
OK we now have support for LLDB 8 to 14 and Node 14,16,18 so I'm closing this. We are still getting the headers from github so please follow/comment on https://github.com/nodejs/llnode/issues/382 if that is an issue.
Commenting this in case anybody ran into this issue like I did currently, but if you're seeing the sparse-checkout
error then it may be due to your version of git. Check to make sure your git --version
is 2.26 or higher.
If you're on Ubuntu like I am, you'll need to add the PPA for newer versions of git
Once I updated my git, this issue dissappeared :smiley:
Hi, I'm getting this error below, Any help appreciated: