Package Details: ibus-mozc 2.31.5851.102-1

Git Clone URL: https://aur.archlinux.org/ibus-mozc.git (read-only, click to copy)
Package Base: ibus-mozc
Description: Mozc module for IBus
Upstream URL: https://github.com/google/mozc
Licenses: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND NAIST-2003 AND Unicode-3.0 AND LicenseRef-Okinawa-Dictionary
Submitter: Nocifer
Maintainer: Nocifer
Last Packager: Nocifer
Votes: 17
Popularity: 0.136103
First Submitted: 2021-12-26 10:41 (UTC)
Last Updated: 2025-06-02 15:03 (UTC)

Pinned Comments

Nocifer commented on 2022-05-29 21:56 (UTC) (edited on 2023-08-22 09:32 (UTC) by Nocifer)

If you're getting compilation errors, please delete your Bazel cache (~/.cache/bazel by default).

Latest Comments

1 2 Next › Last »

Nocifer commented on 2025-07-03 08:02 (UTC)

@jaro3 Your error is a typical example of an outdated Bazel cache that can be fixed by deleting ~/.cache/bazel (or an equivalent non-default path). "Typical" as in, there were some people just the other day who were getting the exact same error with the fcitx-mozc-ut package, and they successfully resolved it by deleting Bazel's cache.

Are you sure you're trying to build in a clean chroot? Did you create the chroot from scratch? If you've used it even once before your testing, then Bazel's cache inside the chroot will not be cleaned before running the build.

jaro3 commented on 2025-07-03 03:16 (UTC)

Fails to build even in clean chroot:


==> Starting build()...
Starting local Bazel server (8.2.1) and connecting to it...
INFO: Analyzed 3 targets (165 packages loaded, 11017 targets configured).
ERROR: /usr/src/tmp/ibus-mozc/src/mozc/src/unix/ibus/BUILD.bazel:98:16: Compiling unix/ibus/ibus_wrapper.cc failed: absolute path inclusion(s) found in rule '//unix/ibus:ibus_wrapper':
the source file 'unix/ibus/ibus_wrapper.cc' includes the following non-builtin files with absolute paths (if these are builtin files, make sure these paths are in your toolchain):
  '/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/include/stddef.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/include/limits.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/include/syslimits.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/include/float.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/include/stdarg.h'
  '/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/include/stdint.h'
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 9.454s, Critical Path: 2.54s
INFO: 9 processes: 1049 action cache hit, 9 internal.
ERROR: Build did NOT complete successfully
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build ibus-mozc.

Nocifer commented on 2024-03-09 13:09 (UTC)

Sorry for the fsck up, I don't even know how I managed to do that. Package permissions have (hopefully) been fixed.

thecheddarcheese commented on 2024-03-09 11:07 (UTC)

Ibus doesn't see mozc after updating for some reason. Changing file permissions to 755 didn't work

birchwhitebrain commented on 2024-03-09 04:32 (UTC)

The latest version seems to be broken. Cross-referencing a comment under the mozc package, I'm guessing it's due to the change in file permission for the targets mozc-renderer and ibus_mozc from 755 to 644. Changing them back to 755 in the PKGBUILD fixed it for me. Could you please fix these file permission issues? Thank you!

Nocifer commented on 2023-05-08 16:02 (UTC)

@mod20 I get the same build error even when building against the latest master. I've reported it upstream, so hopefully it'll get fixed soon.

mod20 commented on 2023-05-08 14:37 (UTC) (edited on 2023-05-08 14:39 (UTC) by mod20)

I am getting the following error when compiling with latest GCC (13.1.1):

ERROR: /home/modanese/.cache/aurutils/sync/ibus-mozc/src/ibus-mozc-git/src/unix/ibus/BUILD.bazel:85:16: Compiling unix/ibus/ibus_wrapper.cc failed: (Exit 1): gcc failed: error executing command (from target //unix/ibus:ibus_wrapper) /usr/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 60 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
unix/ibus/ibus_wrapper.cc: In member function 'void mozc::ibus::IbusBusWrapper::RequestName(absl::lts_20230125::string_view)':
unix/ibus/ibus_wrapper.cc:417:13: error: 'uint32_t' does not name a type
  417 |   constexpr uint32_t flags = 0;
      |             ^~~~~~~~
unix/ibus/ibus_wrapper.cc:31:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   30 | #include "unix/ibus/ibus_wrapper.h"
  +++ |+#include <cstdint>
   31 | 
unix/ibus/ibus_wrapper.cc:418:44: error: 'flags' was not declared in this scope
  418 |   ibus_bus_request_name(bus_, name.data(), flags);
      |                                            ^~~~~

Tried deleting the bazel cache, but that didn't help.

Nocifer commented on 2023-03-05 18:33 (UTC)

Sorry about that, my cache folder still contained a mozc_renderer binary in renderer from the previous build and during testing the package managed to build successfully by reusing that, so I completely failed to notice the issue. Should be fixed now, thanks for reporting.

mithrillion commented on 2023-03-05 13:00 (UTC) (edited on 2023-03-05 13:06 (UTC) by mithrillion)

Current version fails because the latest update to PKGBUILD updates the destination folder of mozc_renderer to renderer/qt from renderer but the install -Dm755 bazel-bin/renderer/mozc_renderer command does not reflect it. Something like this can solve the issue until the update:

ln -s  ~/.cache/yay/ibus-mozc/src/ibus-mozc-git/src/bazel-bin/renderer/qt/mozc_renderer ~/.cache/yay/ibus-mozc/src/ibus-mozc-git/src/bazel-bin/renderer/mozc_renderer

Nocifer commented on 2023-01-18 15:20 (UTC)

@jukan This package does not install any configuration file, it only installs the Mozc binaries and a few extra files like licenses and icons, which you can verify by checking out the PKGBUILD.

If the default config file that (I suppose) is automatically created when launching Mozc via IBus contains errors, then you should probably report it upstream so the developers can provide a fix.