sigurd4: What rust version are you building this package with?
Search Criteria
Package Details: codelldb 1.11.0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/codelldb.git (read-only, click to copy) |
---|---|
Package Base: | codelldb |
Description: | A native debugger extension for VSCode based on LLDB. Also known as vscode-lldb (NOT lldb-vscode) |
Upstream URL: | https://github.com/vadimcn/codelldb |
Licenses: | MIT |
Provides: | codelldb, vscode-lldb |
Submitter: | bageljr |
Maintainer: | mahor1221 (dmitmel) |
Last Packager: | mahor1221 |
Votes: | 2 |
Popularity: | 0.000000 |
First Submitted: | 2022-04-11 20:24 (UTC) |
Last Updated: | 2024-10-12 15:42 (UTC) |
Dependencies (6)
- lldb (llvm-rocm-gitAUR, llvm-gitAUR)
- cargo (rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rustup-stubAUR, rust, rustup) (make)
- cmake (cmake-gitAUR) (make)
- libc++ (libc++-msanAUR, libc++-modulesAUR) (make)
- npm (corepackerAUR, python-nodejs-wheelAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
Required by (0)
Sources (1)
dmitmel commented on 2024-12-19 00:19 (UTC)
sigurd4 commented on 2024-12-18 01:35 (UTC)
Cannot build:
error: cannot find macro `__cpp_closure_impl` in this scope
--> adapter/lldb/src/sb/sbaddress.rs:9:9
|
9 | / cpp!(unsafe [addr as "addr_t", target as "SBTarget*"] -> SBAddress as "SBAddress" {
10 | | return SBAddress(addr, *target);
11 | | })
| |__________^
|
= note: this error originates in the macro `cpp` (in Nightly builds, run with -Z macro-backtrace for more info)
mahor1221 commented on 2024-10-12 15:56 (UTC) (edited on 2024-10-12 16:00 (UTC) by mahor1221)
Thank you @dmitmel! I should automate testing my AUR packages so this doesn't happen again.
I've applied the patch, but I'm getting build errors when compiling the lldb
crate. The problem is probably from my system, I'll investigate later. If it's working for you then all is good.
I've also made you a maintainer. Feel free to commit any change.
dmitmel commented on 2024-10-12 11:28 (UTC)
The package fails to build due to a glob not matching any files. Also the Python scripts were installed with an incorrect directory structure. Here's a patch that solves these problems:
diff --git a/PKGBUILD b/PKGBUILD
index f101a29..3a7b8bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=codelldb
_pkgname="$pkgname"
pkgver=1.11.0
-pkgrel=1
+pkgrel=2
pkgdesc="A native debugger extension for VSCode based on LLDB. Also known as vscode-lldb (NOT lldb-vscode)"
arch=(x86_64 arm7h aarch64)
url="https://github.com/vadimcn/codelldb"
@@ -27,17 +27,26 @@ build() {
}
package() {
- local reset_shopt="$(shopt -p globstar)"
- shopt -s globstar
-
cd "$_pkgname-$pkgver"
local libdir="$pkgdir/usr/lib/$_pkgname"
- #https://github.com/vadimcn/codelldb/blob/v1.9.0/CMakeLists.txt#L187-L200
- install -Dm644 -t "$libdir" build/platform.ok
- install -Dm755 -t "$libdir"/adapter build/adapter/{codelldb,*.so}
- install -Dm644 -t "$libdir"/adapter build/adapter/scripts/**/*.py
- install -Dm644 -t "$libdir"/formatters build/formatters/**/*.py
+ (
+ cd build
+ shopt -s globstar nullglob
+
+ # Files that need to be installed:
+ # https://github.com/vadimcn/codelldb/blob/v1.11.0/CMakeLists.txt#L200-L213
+
+ install -Dm644 -t "$libdir" platform.ok
+
+ local file; for file in adapter/codelldb adapter/*.so; do
+ install -Dm755 "$file" "$libdir/$file"
+ done
+
+ local file; for file in adapter/scripts/**/*.py formatters/**/*.py; do
+ install -Dm644 "$file" "$libdir/$file"
+ done
+ )
install -d "$libdir"/lldb
ln -s -t "$libdir"/lldb /usr/{bin,lib}
@@ -46,5 +55,4 @@ package() {
ln -s -t "$pkgdir"/usr/bin /usr/lib/"$_pkgname"/adapter/codelldb
install -Dm644 -t "$pkgdir"/usr/share/licenses/"$_pkgname" LICENSE
- eval "$reset_shopt"
}
mahor1221 commented on 2022-10-05 15:51 (UTC) (edited on 2022-10-15 11:51 (UTC) by mahor1221)
After hours of searching I couldn't build the custom LLDB this package depends on (only needed when debugging Rust binaries). It's a rabbit hole which I don't want to step into it.
I suggest installing codelldb-bin to debug Rust programs
qubidt commented on 2022-07-19 21:06 (UTC)
sha256 of the current (v.1.7.2) source tarball on github is actually d818c0ffab6c52d3804fda40f2c5cd80a36567a5f1094490b3b768b34a6a1a99
dmitmel commented on 2022-07-18 10:49 (UTC)
bageljr: Hi, don't want to be a bother, but could you please take a look at the patch I posted?
dmitmel commented on 2022-06-27 12:36 (UTC)
@bageljr: Can you also apply this patch as well? I made a mistake and symlinked the executable installed at /usr/bin/codelldb
to a file in $pkgdir
.
diff --git a/PKGBUILD b/PKGBUILD
index ac12c3b..609e58a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,7 +26,7 @@ package() {
shopt -s globstar
cd "$_reponame-$pkgver"
- local _lib_dir="$pkgdir/usr/lib/codelldb"
+ local _lib_dir="$pkgdir/usr/lib/$pkgname"
# <https://github.com/vadimcn/vscode-lldb/blob/v1.7.0/CMakeLists.txt#L173-L186>
install -Dm644 -t "$_lib_dir" build/platform.ok
@@ -38,7 +38,7 @@ package() {
ln -s -t "$_lib_dir"/lldb /usr/{bin,lib}
install -d "$pkgdir"/usr/bin
- ln -s -t "$pkgdir"/usr/bin "$_lib_dir"/adapter/codelldb
+ ln -s -t "$pkgdir"/usr/bin /usr/lib/"$pkgname"/adapter/codelldb
install -Dm644 -t "$pkgdir"/usr/share/licenses/"$pkgname" LICENSE
eval "$reset_shopt"
Pinned Comments
mahor1221 commented on 2022-10-05 15:51 (UTC) (edited on 2022-10-15 11:51 (UTC) by mahor1221)
After hours of searching I couldn't build the custom LLDB this package depends on (only needed when debugging Rust binaries). It's a rabbit hole which I don't want to step into it.
I suggest installing codelldb-bin to debug Rust programs