fcitx / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
114 stars 11 forks source link

Build error: Compiling unix/fcitx5/mozc_connection.cc failed #38

Closed utuhiro78 closed 1 year ago

utuhiro78 commented 1 year ago

Description Compiling unix/fcitx5/mozc_connection.cc failed

Commit-id 271f3a4db6124a535631ba46b40e5243bdc241ad

Build target

  1. Docker build for Linux and Android-lib

CI build status

  1. passing

Environment:

Build commands

  1. git clone --depth 1 --recursive --shallow-submodules https://github.com/fcitx/mozc.git
  2. cd src/
  3. sh ../scripts/build_fcitx5_bazel

Error logs

ERROR: src/unix/fcitx5/BUILD:9:16: Compiling unix/fcitx5/mozc_connection.cc failed: (Exit 1): gcc failed: error executing command (from target //unix/fcitx5:mozc_connection) /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 87 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
unix/fcitx5/mozc_connection.cc: In function 'mozc::client::ClientInterface* fcitx::CreateAndConfigureClient()':
unix/fcitx5/mozc_connection.cc:45:45: error: cannot convert 'std::unique_ptr<mozc::client::ClientInterface>' to 'mozc::client::ClientInterface*' in initialization
   45 |       mozc::client::ClientFactory::NewClient();
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                             |
      |                                             std::unique_ptr<mozc::client::ClientInterface>

Additional context Thank you for fixing https://github.com/fcitx/mozc/commit/ebc1ce4c8f66e490aec8964777e5f672264d659c !

utuhiro78 commented 1 year ago

Thanks wengxt! It's working fine. :-)