@Nocifer ah thanks that put me in the right direction : I have a minimal (not complete, just the build/device management tools) Android SDK installed in /opt/android-sdk and have $ANDROID_HOME set to that. Unsetting $ANDROID_HOME made the build work - didn't think the presence of an external environment variable would enable additional build options!
Search Criteria
Package Details: mozc-ut 3.34.6239.20260701-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/mozc-ut.git (read-only, click to copy) |
|---|---|
| Package Base: | mozc-ut |
| Description: | The Open Source edition of Google Japanese Input bundled with the UT dictionary |
| Upstream URL: | https://github.com/google/mozc |
| Licenses: | Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND CC-BY-2.5 AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND GFDL-1.3-only AND GPL-2.0-only AND GPL-2.0-or-later AND MIT AND NAIST-2003 AND Unicode-3.0 AND LicenseRef-Okinawa-Dictionary |
| Conflicts: | mozc |
| Provides: | mozc |
| Submitter: | naoina |
| Maintainer: | Nocifer |
| Last Packager: | Nocifer |
| Votes: | 33 |
| Popularity: | 0.52 |
| First Submitted: | 2020-11-04 02:00 (UTC) |
| Last Updated: | 2026-07-01 19:04 (UTC) |
Dependencies (6)
- qt6-base (qt6-base-gitAUR, qt6-base-headlessAUR, qt6-base-hifpsAUR)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- python (make)
- emacs-mozcAUR (emacs-mozc-with-jp-dictAUR) (optional) – Emacs integration
- fcitx5-mozc-utAUR (optional) – Fcitx5 integration
- ibus-mozcAUR (ibus-mozc-with-jp-dictAUR) (optional) – IBus integration
Required by (5)
- emacs-mozc (requires mozc)
- fcitx-mozc-ut (requires mozc)
- fcitx5-mozc-ut (requires mozc)
- ibus-mozc (requires mozc)
- uim-mozc (requires mozc)
Sources (41)
- git+https://github.com/bazelbuild/bazel-central-registry.git#commit=b0cb0e8ec70689252e3b35f109ffa4a32329b900
- git+https://github.com/google/mozc.git#commit=04733c92daf891a3f3d67ba85c69fa9cc64032ba
- git+https://github.com/utuhiro78/merge-ut-dictionaries.git#commit=15c1c64502b43e31d328012860376c03c3eaf633
- git+https://github.com/utuhiro78/mozcdic-ut-alt-cannadic.git#commit=08e033f4558b7a0b03d8ad6920216d9473f15627
- git+https://github.com/utuhiro78/mozcdic-ut-edict2.git#commit=d7279ba285fd5ddfe158b0bfd0c4fcda1f7b08c3
- git+https://github.com/utuhiro78/mozcdic-ut-jawiki.git#commit=b50cabaecaf32c03d102db55fc5d0b98e334ec9e
- git+https://github.com/utuhiro78/mozcdic-ut-neologd.git#commit=d8307abf02b830b185c9320822cffa0d0787c54e
- git+https://github.com/utuhiro78/mozcdic-ut-personal-names.git#commit=5896ebef5f39d5772f4575fa05eb24436ce5a5f1
- git+https://github.com/utuhiro78/mozcdic-ut-place-names.git#commit=6f9d9bda14f0bd2c10c1563d2aed9150ea95095c
- git+https://github.com/utuhiro78/mozcdic-ut-skk-jisyo.git#commit=7c02e535bd6d999a715a53b58c3366f2401bfb7f
- git+https://github.com/utuhiro78/mozcdic-ut-sudachidict.git#commit=7def3da408b1854801bd5b559273f9fb8001ef5b
- https://dumps.wikimedia.org/jawiki/20260601/jawiki-20260601-pages-articles-multistream-index.txt.bz2
- https://github.com/abseil/abseil-cpp/releases/download/20260107.1/abseil-cpp-20260107.1.tar.gz
- https://github.com/astral-sh/python-build-standalone/releases/download/20251031/cpython-3.11.14+20251031-x86_64-unknown-linux-gnu-install_only.tar.gz
- https://github.com/bats-core/bats-core/archive/v1.10.0.tar.gz
- https://github.com/bazel-contrib/bazel-lib/releases/download/v2.22.5/bazel-lib-v2.22.5.tar.gz
- https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.0/bazel-lib-v3.0.0.tar.gz
- https://github.com/bazel-contrib/bazel_features/releases/download/v1.42.1/bazel_features-v1.42.1.tar.gz
- https://github.com/bazel-contrib/rules_go/releases/download/v0.60.0/rules_go-v0.60.0.zip
- https://github.com/bazel-contrib/rules_python/releases/download/1.9.0/rules_python-1.9.0.tar.gz
- https://github.com/bazel-contrib/tar.bzl/releases/download/v0.5.1/tar.bzl-v0.5.1.tar.gz
- https://github.com/bazelbuild/apple_support/releases/download/2.4.0/apple_support.2.4.0.tar.gz
- https://github.com/bazelbuild/bazel-skylib/releases/download/1.9.0/bazel-skylib-1.9.0.tar.gz
- https://github.com/bazelbuild/bazel/releases/download/9.0.2/bazel-9.0.2-linux-x86_64
- https://github.com/bazelbuild/platforms/releases/download/1.0.0/platforms-1.0.0.tar.gz
- https://github.com/bazelbuild/rules_android/releases/download/v0.7.1/rules_android-v0.7.1.tar.gz
- https://github.com/bazelbuild/rules_android_ndk/releases/download/v0.1.5/rules_android_ndk-v0.1.5.tar.gz
- https://github.com/bazelbuild/rules_apple/releases/download/4.5.2/rules_apple.4.5.2.tar.gz
- https://github.com/bazelbuild/rules_cc/releases/download/0.2.17/rules_cc-0.2.17.tar.gz
- https://github.com/bazelbuild/rules_java/releases/download/9.3.0/rules_java-9.3.0.tar.gz
- https://github.com/bazelbuild/rules_kotlin/releases/download/v2.2.2/rules_kotlin-v2.2.2.tar.gz
- https://github.com/bazelbuild/rules_license/releases/download/1.0.0/rules_license-1.0.0.tar.gz
- https://github.com/bazelbuild/rules_pkg/releases/download/1.2.0/rules_pkg-1.2.0.tar.gz
- https://github.com/bazelbuild/rules_shell/releases/download/v0.6.1/rules_shell-v0.6.1.tar.gz
- https://github.com/bazelbuild/rules_swift/releases/download/3.5.0/rules_swift.3.5.0.tar.gz
- https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/refs/tags/2025-01-25.zip
- https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
- https://github.com/protocolbuffers/protobuf/releases/download/v34.1/protobuf-34.1.bazel.tar.gz
- https://github.com/protocolbuffers/protobuf/releases/download/v34.1/protoc-34.1-linux-x86_64.zip
- jigyosyo-20260403.zip
- ken_all-20260403.zip
frnx commented on 2026-08-22 12:48 (UTC)
Nocifer commented on 2026-07-29 08:46 (UTC)
@frnx No, the Android SDK is certainly not necessary for building the package, but until very recently a small fix was required in the PKGBUILD in order to successfully build when the Android SDK and/or NDK are not present on the system, but that was rendered obsolete by a recent upstream commit and was removed.
In your case though, if I understand the error log correctly, it seems that you do have the Android SDK installed at /opt/android-sdk, but apparently you have installed it by hand/outside the Android SDK Manager/whatever else, and so the build environment does detect it and tries to include it in the build but then somehow deems it as a "corrupt" installation (missing APIs) and subsequently fails.
If so, then that's a different issue altogether. If you haven't already solved it yourself (this is a very late reply after all) you could try forcing the build process to build without the Android SDK by adding unset ANDROID_HOME (and/or whatever other relevant env var may be pointing to your Android SDK installation) in the PKGBUILD, at the top of the build() function (i.e. before the build command), and see where that gets you.
frnx commented on 2026-07-21 17:42 (UTC)
I'm getting some errors:
Starting local Bazel server (9.0.2) and connecting to it...
INFO: Repo rules_android++android_sdk_repository_extension+androidsdk defined by rule _android_sdk_repository in @@rules_android+//rules/android_sdk_repository:rule.bzl
ERROR: /home/****/.cache/bazel/_bazel_****/e8fe8b673fb64bd3af47228261ba317a/external/rules_android+/rules/android_sdk_repository/rule.bzl:114:13: An error occurred during the fetch of repository 'rules_android++android_sdk_repository_extension+androidsdk':
Traceback (most recent call last):
File "/home/****/.cache/bazel/_bazel_fx/e8fe8b673fb64bd3af47228261ba317a/external/rules_android+/rules/android_sdk_repository/rule.bzl", line 114, column 13, in _android_sdk_repository_impl
fail("No Android SDK apis found in the Android SDK at %s. Please install APIs from the Android SDK Manager." % android_sdk_path)
Error in fail: No Android SDK apis found in the Android SDK at /opt/android-sdk/. Please install APIs from the Android SDK Manager.
ERROR: Analysis of target '//gui/tool:mozc_tool' failed; build aborted: No Android SDK apis found in the Android SDK at /opt/android-sdk/. Please install APIs from the Android SDK Manager.
INFO: Elapsed time: 4.572s, Critical Path: 0.07s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
I tried deleting the Bazel cache but got the same error. Is the Android SDK actually necessary for building just the Linux package ?
Nocifer commented on 2026-07-01 19:08 (UTC)
Right, so these are the b2sums from the previous version of the PKGBUILD.
Are you perhaps trying to build the package without having cleared the $srcdir first? If that is the case, then what's probably happening is that makepkg finds the previous versions of the two zips already present in the $srcdir and, because they always have the same name regardless of version/date, it marks them as satisfied dependencies because it obviously can't know any better; that is, until it eventually checks them against the b2sums and proceeds to fail the build because it realizes they're not the correct files after all.
I was always afraid that something like this could happen at some point; that's why it's good practice to manually add version numbers to a PKGBUILD's sources, but for some reason I never got around to do that for these two zips until now. I've pushed a fix for it, so if it's indeed the cause of your issue, from now on things should always work as expected.
mattrick commented on 2026-07-01 00:47 (UTC)
@Nocifer not the same person but I bumped into this issue as well. Here's the sums:
$ b2sum jigyosyo.zip
46cb54e9d9ee183031dbda9cecbbcf24a341488a0320286f264fb2f9e44638373f432463bbfd2fadaa65f64dba9afce9ca4ae01b8315f3853dcf6b8361e1339d jigyosyo.zip
$ b2sum ken_all.zip
03879037406a9d95c33d14bbde6fdd33acae0e6fda328e960c9f10aad74f2f34353d8b03e98ea247659587821d839783be2f031c3e756eac292ec52094c7ede6 ken_all.zip
Manually removing the zip files and rebuilding seems to have fixed it. They were valid zip files, but the contained csv seemed to be slightly different. Maybe a due to Github blip?
Nocifer commented on 2026-06-29 12:05 (UTC)
I'm not seeing the issue on my end, both the b2sums in the PKGBUILD and the sha256sums in MODULE.bazel match the two downloaded zips.
What sums do you get if you run b2sum jigyosyo.zip and b2sum ken_all.zip in $srcdir?
fly971 commented on 2026-06-29 07:27 (UTC)
The jigyosyo.zip and ken_all.zip sources are failing the b2sums. Should probably get that fixed.
Nocifer commented on 2026-01-21 09:28 (UTC) (edited on 2026-01-21 09:29 (UTC) by Nocifer)
@hype-vhs I see that Bazel was just yesterday updated to version 9.0.0, so the issue is almost certainly that Mozc's build process is incompatible with the new Bazel version.
I've been long overdue in switching the PKGBUILD to using bazelisk instead of bazel anyway (as is upstream's explicit recommendation) so I've done that now.
Although bazelisk is supposed to be a drop-in replacement for bazel there is still a chance that I may have overseen something in this transition, so if any new issues arise please report them here so I can fix them asap.
Pinned Comments
Nocifer commented on 2022-05-29 21:54 (UTC) (edited on 2023-08-22 09:33 (UTC) by Nocifer)
If you're getting compilation errors, please delete your Bazel cache (
~/.cache/bazelby default).