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

Bug#957196: fcitx5-chinese-addons: ftbfs with GCC-10



Package: src:fcitx5-chinese-addons
Version: 0.0~git20200117.4261e23-2
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/fcitx5-chinese-addons_0.0~git20200117.4261e23-2_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
make -f modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/build.make modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" && /usr/bin/cmake -E cmake_depends "Unix Makefiles" "/<<PKGBUILDDIR>>" "/<<PKGBUILDDIR>>/modules/pinyinhelper" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/pinyinhelper" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/DependInfo.cmake" --color=
Scanning dependencies of target pinyinhelper
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make -f modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/build.make modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 16%] Building CXX object modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/pinyinhelper.cpp.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/pinyinhelper" && /usr/bin/c++  -DFCITX_GETTEXT_DOMAIN=\"fcitx5-chinese-addons\" -Dpinyinhelper_EXPORTS -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -isystem /usr/include/Fcitx5/Core -isystem /usr/include/Fcitx5/Config -isystem /usr/include/Fcitx5/Utils -isystem /usr/include/LibIME  -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++17 -o CMakeFiles/pinyinhelper.dir/pinyinhelper.cpp.o -c "/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinhelper.cpp"
[ 17%] Building CXX object modules/cloudpinyin/CMakeFiles/cloudpinyin.dir/fetch.cpp.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/cloudpinyin" && /usr/bin/c++  -DFCITX_GETTEXT_DOMAIN=\"fcitx5-chinese-addons\" -Dcloudpinyin_EXPORTS -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -isystem /usr/include/Fcitx5/Core -isystem /usr/include/Fcitx5/Config -isystem /usr/include/Fcitx5/Utils  -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++17 -o CMakeFiles/cloudpinyin.dir/fetch.cpp.o -c "/<<PKGBUILDDIR>>/modules/cloudpinyin/fetch.cpp"
[ 19%] Building CXX object modules/chttrans/CMakeFiles/chttrans.dir/chttrans-native.cpp.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/chttrans" && /usr/bin/c++  -DFCITX_GETTEXT_DOMAIN=\"fcitx5-chinese-addons\" -Dchttrans_EXPORTS -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -I/usr/include/Fcitx5/Module/fcitx-module/notifications -isystem /usr/include/Fcitx5/Core -isystem /usr/include/Fcitx5/Config -isystem /usr/include/Fcitx5/Utils -isystem /usr/include/opencc  -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++17 -o CMakeFiles/chttrans.dir/chttrans-native.cpp.o -c "/<<PKGBUILDDIR>>/modules/chttrans/chttrans-native.cpp"
[ 20%] Building CXX object modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/pinyinlookup.cpp.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/pinyinhelper" && /usr/bin/c++  -DFCITX_GETTEXT_DOMAIN=\"fcitx5-chinese-addons\" -Dpinyinhelper_EXPORTS -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -isystem /usr/include/Fcitx5/Core -isystem /usr/include/Fcitx5/Config -isystem /usr/include/Fcitx5/Utils -isystem /usr/include/LibIME  -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++17 -o CMakeFiles/pinyinhelper.dir/pinyinlookup.cpp.o -c "/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.cpp"
In file included from /<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.cpp:21:
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.h:39:22: error: ‘string’ is not a member of ‘std’
   39 |     std::vector<std::string> lookup(uint32_t hz);
      |                      ^~~~~~
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.h:25:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   24 | #include <vector>
  +++ |+#include <string>
   25 | 
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.h:39:28: error: template argument 1 is invalid
   39 |     std::vector<std::string> lookup(uint32_t hz);
      |                            ^
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.h:39:28: error: template argument 2 is invalid
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.cpp:101:26: error: no declaration matches ‘std::vector<std::__cxx11::basic_string<char> > fcitx::PinyinLookup::lookup(uint32_t)’
  101 | std::vector<std::string> PinyinLookup::lookup(uint32_t hz) {
      |                          ^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.cpp:21:
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.h:39:30: note: candidate is: ‘int fcitx::PinyinLookup::lookup(uint32_t)’
   39 |     std::vector<std::string> lookup(uint32_t hz);
      |                              ^~~~~~
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.h:34:7: note: ‘class fcitx::PinyinLookup’ defined here
   34 | class PinyinLookup {
      |       ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.cpp:87:18: warning: ‘std::string_view fcitx::{anonymous}::py_enhance_get_konsonant(int)’ defined but not used [-Wunused-function]
   87 | std::string_view py_enhance_get_konsonant(int index) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/modules/pinyinhelper/pinyinlookup.cpp:35:18: warning: ‘std::string_view fcitx::{anonymous}::py_enhance_get_vokal(int, int)’ defined but not used [-Wunused-function]
   35 | std::string_view py_enhance_get_vokal(int index, int tone) {
      |                  ^~~~~~~~~~~~~~~~~~~~
make[3]: *** [modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/build.make:79: modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/pinyinlookup.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:671: modules/pinyinhelper/CMakeFiles/pinyinhelper.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 22%] Building CXX object modules/chttrans/CMakeFiles/chttrans.dir/chttrans-opencc.cpp.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/chttrans" && /usr/bin/c++  -DFCITX_GETTEXT_DOMAIN=\"fcitx5-chinese-addons\" -Dchttrans_EXPORTS -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -I/usr/include/Fcitx5/Module/fcitx-module/notifications -isystem /usr/include/Fcitx5/Core -isystem /usr/include/Fcitx5/Config -isystem /usr/include/Fcitx5/Utils -isystem /usr/include/opencc  -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++17 -o CMakeFiles/chttrans.dir/chttrans-opencc.cpp.o -c "/<<PKGBUILDDIR>>/modules/chttrans/chttrans-opencc.cpp"
[ 23%] Linking CXX shared module cloudpinyin.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/cloudpinyin" && /usr/bin/cmake -E cmake_link_script CMakeFiles/cloudpinyin.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -shared  -o cloudpinyin.so CMakeFiles/cloudpinyin.dir/cloudpinyin.cpp.o CMakeFiles/cloudpinyin.dir/fetch.cpp.o  /usr/lib/x86_64-linux-gnu/libFcitx5Core.so.5.0 /usr/lib/x86_64-linux-gnu/libFcitx5Config.so.5.0 /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/x86_64-linux-gnu/libFcitx5Utils.so.1.0 /usr/lib/x86_64-linux-gnu/libcurl.so 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 23%] Built target cloudpinyin
[ 25%] Linking CXX shared module punctuation.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/punctuation" && /usr/bin/cmake -E cmake_link_script CMakeFiles/punctuation.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -shared  -o punctuation.so CMakeFiles/punctuation.dir/punctuation.cpp.o  /usr/lib/x86_64-linux-gnu/libFcitx5Core.so.5.0 /usr/lib/x86_64-linux-gnu/libFcitx5Config.so.5.0 /usr/lib/x86_64-linux-gnu/libboost_iostreams.so /usr/lib/x86_64-linux-gnu/libFcitx5Utils.so.1.0 /usr/lib/x86_64-linux-gnu/libboost_regex.so 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target punctuation
[ 26%] Linking CXX shared module chttrans.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/chttrans" && /usr/bin/cmake -E cmake_link_script CMakeFiles/chttrans.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -shared  -o chttrans.so CMakeFiles/chttrans.dir/chttrans.cpp.o CMakeFiles/chttrans.dir/chttrans-native.cpp.o CMakeFiles/chttrans.dir/chttrans-opencc.cpp.o  /usr/lib/x86_64-linux-gnu/libFcitx5Core.so.5.0 /usr/lib/x86_64-linux-gnu/libFcitx5Config.so.5.0 /usr/lib/x86_64-linux-gnu/libboost_iostreams.so /usr/lib/x86_64-linux-gnu/libopencc.so /usr/lib/x86_64-linux-gnu/libFcitx5Utils.so.1.0 /usr/lib/x86_64-linux-gnu/libboost_regex.so 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 26%] Built target chttrans
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:144: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:16: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: