Package Details: anki-git r11728.d3d6bd8ce-1

Git Clone URL: https://aur.archlinux.org/anki-git.git (read-only, click to copy)
Package Base: anki-git
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: https://github.com/ankitects/anki
Keywords: anki memorise memory study
Licenses: AGPL-3.0-or-later
Conflicts: anki, anki-bin, anki-official-binary-bundle, anki20
Provides: anki
Submitter: degeberg
Maintainer: blackthorne
Last Packager: blackthorne
Votes: 25
Popularity: 0.000013
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2025-05-15 20:11 (UTC)

Pinned Comments

blackthorne commented on 2025-05-09 19:48 (UTC)

the PKGBUILD should be compiling now. if not, please let me know. i'll try and clean up the PKGBUILD soon, try and get rid of the AUR dependency, compiler optimization flags, etc.

@hmry thanks for the rust-clang-linking fix.

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

blackthorne commented on 2025-05-14 22:52 (UTC) (edited on 2025-05-14 22:53 (UTC) by blackthorne)

@Eol thanks for the catch.

Eol commented on 2025-05-13 23:48 (UTC) (edited on 2025-05-13 23:49 (UTC) by Eol)

lld should be added to the make dependency list. I got linking error reporting cannot find 'ld'. Fixed by manually installing lld.

blackthorne commented on 2025-05-09 19:48 (UTC)

the PKGBUILD should be compiling now. if not, please let me know. i'll try and clean up the PKGBUILD soon, try and get rid of the AUR dependency, compiler optimization flags, etc.

@hmry thanks for the rust-clang-linking fix.

DarkShadow44 commented on 2025-03-30 00:01 (UTC)

@Mufflone: What is the format of that file, aka what does file say?

Muflone commented on 2025-03-29 20:54 (UTC) (edited on 2025-03-29 20:54 (UTC) by Muflone)

@DarkShadow44

I don't use this package but the build errors reported in the orphan request are still present. here's an extract from the build process:

   Compiling junction v1.2.0
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" VSLANG="1033" "cc" "-m64" "/tmp/rustcFsJKLV/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/build/anki-git/src/anki/out/rust/release/deps/{libwhich-65f5ae34c6a87ea0.rlib,libhome-6ac2e8148a81f5f2.rlib,libzip-f47a094a2d1576db.rlib,libtime-d8aff71642f49234.rlib,libtime_core-0135dec28a096929.rlib,[...]
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /build/anki-git/src/anki/out/rust/release/deps/libzstd_sys-d724a5c76d50ba00.rlib: error adding symbols: file format not recognized
          collect2: error: ld returned 1 exit status


error: could not compile `runner` (bin "runner") due to 1 previous error
==> ERROR: A failure occurred in build().
    Aborting...

hmry commented on 2024-10-31 13:20 (UTC)

For those getting linker errors during the Rust build, like error adding symbols: file format not recognized: Try adding this to the build() section of the PKGBUILD, underneath the other compiler env var exports:

export RUSTFLAGS="-Clink-args=-fuse-ld=lld -Ctarget-cpu=native"

DarkShadow44 commented on 2024-05-24 20:33 (UTC) (edited on 2024-05-24 20:34 (UTC) by DarkShadow44)

I have the same issue (as of 2024-05-24, up-to-date system). I found a thread here, and downgrading Linux to 6.8.9 helped.

hearth commented on 2024-05-24 11:04 (UTC)

Having trouble building this again lately. I don't think it is a python issue this time. I've tried clearing out the yarn and bazel caches with no luck. Asking here before opening a git issue in case the solution is bleedingly obvious.

FAILED: /tmp/makepkg/anki-git/src/anki/out/node_modules/.marker ... very long so redacted
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/home/hearth/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
warning svelte-preprocess@5.1.3: The engine "pnpm" appears to be invalid.
[3/4] Linking dependencies...
warning " > esbuild-sass-plugin@2.16.1" has incorrect peer dependency "esbuild@^0.19.4".
[4/4] Building fresh packages...
error /tmp/makepkg/anki-git/src/anki/node_modules/vite/node_modules/esbuild: Command failed.
Exit code: 126
Command: node install.js
Arguments: 
Directory: /tmp/makepkg/anki-git/src/anki/node_modules/vite/node_modules/esbuild
Output:
/bin/sh: /tmp/yarn--1716547874268-0.043145118609238864/node: /bin/sh: bad interpreter: Text file busy
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Failed with code Some(126): /tmp/makepkg/anki-git/src/anki/out/extracted/node/bin/yarn install
ninja: build stopped: subcommand failed.

Build failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'anki-git-r10935.eb597475c-1': 
error: packages failed to build: anki-git-r10935.eb597475c-1

elimik31 commented on 2024-04-05 16:50 (UTC)

Seems the hard requirement of pip_system_certs was removed in Anki PR #3114, with the reasoning:

"This dependency usually doesn't benefit Linux distros with requests library configured to use system certificate already."

I didn't test yet building the latest commit without pip_system_certs, just saw the git log message. If the requests library is actually configured as described in the PR, then maybe the dependency can be removed.