Package Details: anki 24.11-2

Git Clone URL: https://aur.archlinux.org/anki.git (read-only, click to copy)
Package Base: anki
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: https://apps.ankiweb.net/
Keywords: anki languages learning vocabulary
Licenses: AGPL3
Conflicts: anki-bin, anki-git, anki-qt5
Submitter: demize
Maintainer: AlexBocken
Last Packager: AlexBocken
Votes: 179
Popularity: 4.49
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-12-23 08:04 (UTC)

Latest Comments

« First ‹ Previous 1 .. 19 20 21 22 23 24 25 26 27 28 29 .. 31 Next › Last »

Ketchup901 commented on 2022-01-20 11:27 (UTC)

Just tried to build it and it failed. Then I tried again, changing nothing at all, and it worked. What a wonderful build tool that has a built-in random chance to fail silently.

AlexBocken commented on 2022-01-11 17:41 (UTC)

@J5lx thx for the clarification. That's also what I figured. bazel really is a total mess imo.

J5lx commented on 2022-01-11 17:38 (UTC)

AlexBocken, the timeout patch I provided affects only the PyQt download with pip, but the error posted by superraiden seems to be related to some TypeScript stuff instead. AFAICT the default timeout is hardcoded in Bazel’s repository_ctx.execute function so there is no way to change it globally (not without patching Bazel itself, anyway). Therefore, if there are additional downloads elsewhere, those would need to have their timeouts changed separately.

AlexBocken commented on 2022-01-11 17:01 (UTC) (edited on 2022-01-11 17:02 (UTC) by AlexBocken)

@superraiden, @jose1711 These cannot find module '../tsetse/runner' errors are most likely due to incomplete downloads. Bazel fails really ugly in these cases (when doesn't it fail ugly?) without a clear error message.

What are your download speeds? Consider trying an install again in a faster network if they're below ~500KB/s. I was hoping that the recent inc_timeout_time.patch patch would help with such cases but apparently there are still issues.

You will probably have to manually remove .cache/bazel (with sudo) as well.

If anyone has recommendations on how we could improve on this issue, feel free to post a comment or shoot me an email.

jose1711 commented on 2022-01-11 11:58 (UTC)

@superraiden i can reproduce this too. building in clean chroot does not resolve it.

superraiden commented on 2022-01-10 02:05 (UTC)

Getting a build error as well:

Error: Cannot find module '../tsetse/runner' Require stack: - /home/XX/.cache/bazel/_bazel_tom/d1203104d01aebb11bc172161a919dd3/execroot/ankidesktop/node_modules/@bazel/typescript/internal/tsc_wrapped/tsc_wrapped.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15) at Function.Module._load (internal/modules/cjs/loader.js:687:27) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/home/tom/.cache/bazel/_bazel_tom/d1203104d01aebb11bc172161a919dd3/execroot/ankidesktop/node_modules/@bazel/typescript/internal/tsc_wrapped/tsc_wrapped.js:7:18) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)

Full output of build is here: https://pastebin.com/9A6fY3fF

Will update back if I resolve

AlexBocken commented on 2022-01-06 13:52 (UTC)

@J5lx perfect, if it's a bazel issue i'll just disable ccache in the package options.

If anyone finds a reliable way without disabling ccache: improvement suggestions are always welcome. Post as a comment or shoot me an email.

J5lx commented on 2022-01-06 12:46 (UTC)

It builds completely fine for me (without using ccache). I did a quick google search and it seems to have something to do with Bazel's sandboxing: https://github.com/bazelbuild/bazel/issues/12124

Jertzukka commented on 2022-01-06 10:04 (UTC) (edited on 2022-01-06 10:07 (UTC) by Jertzukka)

The newest updates actually made this not build anymore on my system, probably something to do with using ccache.

ERROR: /home/username/.cache/bazel/_bazel_username/cc3d0631f882a3fdea24915054261e94/external/rules_rust/
util/process_wrapper/BUILD.bazel:3:10: Compiling util/process_wrapper/system_posix.cc [for host] failed:
(Exit 1): gcc failed: error executing command /usr/lib/ccache/bin/gcc -U_FORTIFY_SOURCE -fstack-protector
-Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1'
-DNDEBUG -ffunction-sections ... (remaining 25 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
ccache: error: Failed to create directory /run/user/1000/ccache-tmp: Read-only file system

Editing the PKGBUILD and adding back the export CC and CXX removed here: https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=anki&id=7b3fd345ad16b337f117c7bff73ebe96ebad43bd made it build again. Not sure if this has anything to do with the package itself or just my system (haven't had problems with it before with any other packages though).

AlexBocken commented on 2022-01-06 07:20 (UTC)

Alright, the linker should now work correctly for clang users. @Neko-san, let me know if you're still having issues.