Mozc とな
(2010.05.11 初出)
「Google 日本語入力がオープンソースになりました」ということなので、「LinuxBuildInstructions - mozc - How to build Mozc on Linux」に従って PCLinuxOS で mozc のビルドに挑戦してみたものの敢えなく玉砕_|~|○
$ python build_mozc.py build_tools -c Release Generating version definition file... export $QTDIR = /usr/lib/qt4 Running: make -j4 BUILDTYPE=Release primitive_tools ACTION base_gen_version_def out/Release/obj/gen/base/version_def.cc ACTION base_gen_character_set out/Release/obj/gen/base/character_set.h CXX(target) out/Release/obj.target/storage/storage/existence_filter.o CXX(target) out/Release/obj.target/storage/storage/lru_storage.o -----(中略)----- LINK(target) out/Release/gen_pos_data_main LINK(target) out/Release/gen_suggestion_filter_main out/Release/obj.target/base/libbase.a(mutex.o): In function `mozc::ResetOnce(mozc::once_t*)': mutex.cc:(.text+0x81): undefined reference to `__sync_val_compare_and_swap_4' mutex.cc:(.text+0x99): undefined reference to `__sync_val_compare_and_swap_4' out/Release/obj.target/base/libbase.a(mutex.o): In function `mozc::CallOnce(mozc::once_t*, void (*)())': mutex.cc:(.text+0x107): undefined reference to `__sync_val_compare_and_swap_4' mutex.cc:(.text+0x136): undefined reference to `__sync_val_compare_and_swap_4' collect2: ld はステータス 1 で終了しました make: *** [out/Release/gen_pos_data_main] エラー 1 make: *** 未完了のジョブを待っています.... out/Release/obj.target/base/libbase.a(mutex.o): In function `mozc::ResetOnce(mozc::once_t*)': mutex.cc:(.text+0x81): undefined reference to `__sync_val_compare_and_swap_4' mutex.cc:(.text+0x99): undefined reference to `__sync_val_compare_and_swap_4' out/Release/obj.target/base/libbase.a(mutex.o): In function `mozc::CallOnce(mozc::once_t*, void (*)())': mutex.cc:(.text+0x107): undefined reference to `__sync_val_compare_and_swap_4' mutex.cc:(.text+0x136): undefined reference to `__sync_val_compare_and_swap_4' collect2: ld はステータス 1 で終了しました make: *** [out/Release/gen_suggestion_filter_main] エラー 1 Traceback (most recent call last): File "build_mozc.py", line 586, inmain() File "build_mozc.py", line 576, in main BuildToolsMain(original_directory_name) File "build_mozc.py", line 541, in BuildToolsMain BuildMain(original_directory_name) File "build_mozc.py", line 520, in BuildMain BuildOnLinux(options, targets) File "build_mozc.py", line 393, in BuildOnLinux target_names) File "build_mozc.py", line 312, in RunOrDie '=========='])) __main__.RunOrDieError: ========== ERROR: make -j4 BUILDTYPE=Release primitive_tools ==========
【 追記 】
UTUMIさんの記事を参考にして、Mandriva 2010.1 beta2 上でのビルドに成功!
【 5月12日 追記 】
ビルド前に下記を実行することで PCLinuxOS でのビルドに成功!
export CFLAGS="-O3 -march=i586" export CXXFLAGS="$CFLAGS"
パッケージの作成も成功。現在テスト中。
PCLinuxOS | comments (0) | -