pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54101: inputmethod/mozc-server build failure on pkgsrc-2019Q1



>Number:         54101
>Category:       pkg
>Synopsis:       inputmethod/mozc-server build failure with protobuf-3.7.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 06 03:35:00 +0000 2019
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.0
>Organization:
>Environment:
System: NetBSD optiplex 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
pkgsrc/inputmethod/mozc-server build fails on pkgsrc-2019Q1:

---
=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for mozc-2.20.2673.102.tar.xz
=> Checksum RMD160 OK for mozc-2.20.2673.102.tar.xz

 :

[317/527] CXX obj/dictionary/user_dictionary.user_dictionary.o
FAILED: obj/dictionary/user_dictionary.user_dictionary.o 
c++ -MMD -MF obj/dictionary/user_dictionary.user_dictionary.o.d -DOS_NETBSD -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src -Igen -Igen/proto_out -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fPIC -fno-exceptions -fPIC -fno-exceptions -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include !
 -Wno-deprecated -std=gnu++0x  -c ../../dictionary/user_dictionary.cc -o obj/dictionary/user_dictionary.user_dictionary.o
In file included from ../../dictionary/user_dictionary.cc:51:0:
/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src/dictionary/user_dictionary_storage.h:77:7: error: cannot derive from 'final' base 'mozc::user_dictionary::UserDictionaryStorage' in derived type 'mozc::UserDictionaryStorage'
 class UserDictionaryStorage : public user_dictionary::UserDictionaryStorage {
       ^
[318/527] CXX obj/prediction/prediction.user_history_predictor.o
FAILED: obj/prediction/prediction.user_history_predictor.o 
c++ -MMD -MF obj/prediction/prediction.user_history_predictor.o.d -DOS_NETBSD -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src -Igen -Igen/proto_out -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fPIC -fno-exceptions -fPIC -fno-exceptions -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/includ!
 e -Wno-deprecated -std=gnu++0x  -c ../../prediction/user_history_predictor.cc -o obj/prediction/prediction.user_history_predictor.o
In file included from ../../prediction/user_history_predictor.cc:30:0:
/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src/prediction/user_history_predictor.h:64:7: error: cannot derive from 'final' base 'mozc::user_history_predictor::UserHistory' in derived type 'mozc::UserHistoryStorage'
 class UserHistoryStorage : public mozc::user_history_predictor::UserHistory {
       ^
[319/527] CXX obj/engine/engine.engine.o
FAILED: obj/engine/engine.engine.o 
c++ -MMD -MF obj/engine/engine.engine.o.d -DOS_NETBSD -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src -Igen -Igen/proto_out -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fPIC -fno-exceptions -fPIC -fno-exceptions -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include -Wno-deprecated -std=g!
 nu++0x  -c ../../engine/engine.cc -o obj/engine/engine.engine.o
In file included from ../../engine/engine.cc:59:0:
/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src/prediction/user_history_predictor.h:64:7: error: cannot derive from 'final' base 'mozc::user_history_predictor::UserHistory' in derived type 'mozc::UserHistoryStorage'
 class UserHistoryStorage : public mozc::user_history_predictor::UserHistory {
       ^
[320/527] CXX obj/dictionary/user_dictionary.user_dictionary_util.o
[321/527] CXX obj/dictionary/user_dictionary.user_dictionary_importer.o
[322/527] CXX obj/dictionary/user_dictionary.user_dictionary_storage.o
FAILED: obj/dictionary/user_dictionary.user_dictionary_storage.o 
c++ -MMD -MF obj/dictionary/user_dictionary.user_dictionary_storage.o.d -DOS_NETBSD -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src -Igen -Igen/proto_out -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fPIC -fno-exceptions -fPIC -fno-exceptions -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/!
 include -Wno-deprecated -std=gnu++0x  -c ../../dictionary/user_dictionary_storage.cc -o obj/dictionary/user_dictionary.user_dictionary_storage.o
In file included from ../../dictionary/user_dictionary_storage.cc:30:0:
/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src/dictionary/user_dictionary_storage.h:77:7: error: cannot derive from 'final' base 'mozc::user_dictionary::UserDictionaryStorage' in derived type 'mozc::UserDictionaryStorage'
 class UserDictionaryStorage : public user_dictionary::UserDictionaryStorage {
       ^
[323/527] CXX obj/converter/converter.converter.o
[324/527] CXX obj/dictionary/user_dictionary.user_dictionary_session.o
FAILED: obj/dictionary/user_dictionary.user_dictionary_session.o 
c++ -MMD -MF obj/dictionary/user_dictionary.user_dictionary_session.o.d -DOS_NETBSD -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src -Igen -Igen/proto_out -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fPIC -fno-exceptions -fPIC -fno-exceptions -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt5/!
 include -Wno-deprecated -std=gnu++0x  -c ../../dictionary/user_dictionary_session.cc -o obj/dictionary/user_dictionary.user_dictionary_session.o
In file included from ../../dictionary/user_dictionary_session.cc:40:0:
/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src/dictionary/user_dictionary_storage.h:77:7: error: cannot derive from 'final' base 'mozc::user_dictionary::UserDictionaryStorage' in derived type 'mozc::UserDictionaryStorage'
 class UserDictionaryStorage : public user_dictionary::UserDictionaryStorage {
       ^
[325/527] CXX obj/dictionary/user_dictionary.user_dictionary_session_handler.o
[326/527] CXX obj/prediction/prediction.dictionary_predictor.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "build_mozc.py", line 1263, in <module>
    main()
  File "build_mozc.py", line 1250, in main
    BuildMain(cmd_opts, cmd_args)
  File "build_mozc.py", line 881, in BuildMain
    BuildWithNinja(options, targets)
  File "build_mozc.py", line 855, in BuildWithNinja
    RunOrDie([ninja, '-C', build_arg] + ninja_targets)
  File "/s/obj.x86_64/pkgsrc/inputmethod/mozc-server/work.x86_64/mozc-2.20.2673.102/src/build_tools/util.py", line 104, in RunOrDie
    '==========']))
build_tools.util.RunOrDieError: 
==========
 ERROR: ninja -C out_bsd/Release mozc_server
==========
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/inputmethod/mozc-server
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/inputmethod/mozc-server

---

There is an issue on upstream github:
 https://github.com/google/mozc/issues/460

It says the error is triggered by protobuf 3.7.0:
 https://github.com/protocolbuffers/protobuf/issues/5869

Some projects have changed their sources for protobuf 3.7.0:
 https://github.com/rlite/rlite/commit/f91271508634fdd5d055c98344c9270f6904f904

>How-To-Repeat:
See above.


>Fix:
Apply changes to mozc for protobuf-3.7.0?
Revert protobuf-3.7.0 new features?

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index