Package Details: asciinema-agg 1.4.3-1

Git Clone URL: https://aur.archlinux.org/asciinema-agg.git (read-only, click to copy)
Package Base: asciinema-agg
Description: asciinema gif generator
Upstream URL: https://github.com/asciinema/agg
Licenses: Apache
Submitter: supermario
Maintainer: supermario
Last Packager: supermario
Votes: 5
Popularity: 0.026829
First Submitted: 2022-10-24 17:25 (UTC)
Last Updated: 2023-10-05 09:05 (UTC)

Latest Comments

mrechte commented on 2024-03-07 10:03 (UTC)

Hello. Compilation fails at link time:

   Compiling agg v1.4.3 (/home/mrechte/build/asciinema-agg/src/agg-1.4.3)
error: linking with `cc` failed: exit status: 1
  |

<very long listing>

          /usr/bin/ld: /home/mrechte/build/asciinema-agg/src/agg-1.4.3/target/release/deps/libring-7197f7c164a22321.rlib(p256-x86_64-asm-elf.o): in function `GFp_nistz256_select_w5':
          /home/mrechte/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/p256-x86_64-asm-elf.S:2072:(.text+0x1863): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /home/mrechte/build/asciinema-agg/src/agg-1.4.3/target/release/deps/libring-7197f7c164a22321.rlib(p256-x86_64-asm-elf.o):/home/mrechte/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/p256-x86_64-asm-elf.S:2139: more undefined references to `GFp_ia32cap_P' follow
          /usr/bin/ld: /home/mrechte/build/asciinema-agg/src/agg-1.4.3/target/release/deps/agg-e9fe47524948c09f: hidden symbol `GFp_ia32cap_P' isn't defined
          /usr/bin/ld: final link failed: bad value
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `agg` (bin "agg") due to 1 previous error

supermario commented on 2023-07-05 16:38 (UTC)

@diogo464 are you building in a chroot? I don't have this error, I'm wondering if you have a global cargo setting that's interfering

diogo464 commented on 2023-07-05 08:46 (UTC)

Hello, I have an error building this package because I use a custom CARGO_TARGET_DIR. The error is the following:

==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat 'target/release/agg': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: asciinema-agg-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
asciinema-agg - exit status 4

Here is a patch that fixes the problem:

diff --git a/PKGBUILD b/PKGBUILD
index 3178dc1..a3eaa64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,12 +14,12 @@ sha256sums=('8a4b81733085d81de1076e2964dedf729a8603941de11659d775478293d9efd0')

 build() {
   cd agg-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --target-dir target
 }

 check() {
   cd agg-$pkgver
-  cargo test --all --release --locked
+  cargo test --all --release --locked --target-dir target
 }

 package() {