Source: mozc
Version: 2.28.4715.102+dfsg-2.2
Severity: minor
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
User: debian...@lists.debian.org
Usertags: qa-doublebuild

Hi,

This package fails to do build a binary-only build (not source) after a
successful build (dpkg-buildpackage ; dpkg-buildpackage -b).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/DoubleBuild

Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env 
> -us -uc -rfakeroot -b
> ----------------------------------------------------------------------------------------------------------------------------
> 
> [...]
> [10/12] /usr/bin/g++ -MMD -MF 
> obj/unix/fcitx/fcitx-mozc.mozc_response_parser.o.d -DOS_LINUX -DMOZC_BUILD 
> -DCHANNEL_DEV -DENABLE_GTK_RENDERER '-DLOCALEDIR="/usr/share/locale/"' 
> -DNDEBUG -DQT_NO_DEBUG -DMOZC_NO_LOGGING -DIGNORE_HELP_FLAG 
> -DIGNORE_INVALID_FLAG '-I/<<PKGBUILDDIR>>/src' -Igen 
> -I../../third_party/abseil-cpp -Igen/proto_out -fmessage-length=0 
> -fno-strict-aliasing -funsigned-char -pipe -pthread -fno-omit-frame-pointer 
> -fstack-protector --param=ssp-buffer-size=4 -Wall -Wno-char-subscripts 
> -Wno-sign-compare -Wno-deprecated-declarations -Wwrite-strings 
> -Wno-unknown-warning-option -Wno-inconsistent-missing-override -fPIC 
> -fno-exceptions -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2 -Wno-deprecated  -c 
> ../../unix/fcitx/mozc_response_parser.cc -o 
> obj/unix/fcitx/fcitx-mozc.mozc_response_parser.o
> [11/12] /usr/bin/g++ -MMD -MF obj/unix/fcitx/fcitx-mozc.fcitx_mozc.o.d 
> -DOS_LINUX -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER 
> '-DLOCALEDIR="/usr/share/locale/"' -DNDEBUG -DQT_NO_DEBUG -DMOZC_NO_LOGGING 
> -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG '-I/<<PKGBUILDDIR>>/src' -Igen 
> -I../../third_party/abseil-cpp -Igen/proto_out -fmessage-length=0 
> -fno-strict-aliasing -funsigned-char -pipe -pthread -fno-omit-frame-pointer 
> -fstack-protector --param=ssp-buffer-size=4 -Wall -Wno-char-subscripts 
> -Wno-sign-compare -Wno-deprecated-declarations -Wwrite-strings 
> -Wno-unknown-warning-option -Wno-inconsistent-missing-override -fPIC 
> -fno-exceptions -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
> -Wno-deprecated  -c ../../unix/fcitx/fcitx_mozc.cc -o 
> obj/unix/fcitx/fcitx-mozc.fcitx_mozc.o
> [12/12] if [ ! -e fcitx-mozc.so -o ! -e fcitx-mozc.so.TOC ]; then 
> /usr/bin/g++ -shared -Wl,-z,relro -Wl,--as-needed -lstdc++ -pthread -o 
> fcitx-mozc.so -Wl,-soname=fcitx-mozc.so @fcitx-mozc.so.rsp && { 
> /usr/bin/readelf -d fcitx-mozc.so | grep SONAME ; /usr/bin/nm -gD -f p 
> fcitx-mozc.so | cut -f1-2 -d' '; } > fcitx-mozc.so.TOC; else /usr/bin/g++ 
> -shared -Wl,-z,relro -Wl,--as-needed -lstdc++ -pthread -o fcitx-mozc.so 
> -Wl,-soname=fcitx-mozc.so @fcitx-mozc.so.rsp && { /usr/bin/readelf -d 
> fcitx-mozc.so | grep SONAME ; /usr/bin/nm -gD -f p fcitx-mozc.so | cut -f1-2 
> -d' '; } > fcitx-mozc.so.tmp && if ! cmp -s fcitx-mozc.so.tmp 
> fcitx-mozc.so.TOC; then mv fcitx-mozc.so.tmp fcitx-mozc.so.TOC ; fi; fi
> FAILED: fcitx-mozc.so fcitx-mozc.so.TOC 
> if [ ! -e fcitx-mozc.so -o ! -e fcitx-mozc.so.TOC ]; then /usr/bin/g++ 
> -shared -Wl,-z,relro -Wl,--as-needed -lstdc++ -pthread -o fcitx-mozc.so 
> -Wl,-soname=fcitx-mozc.so @fcitx-mozc.so.rsp && { /usr/bin/readelf -d 
> fcitx-mozc.so | grep SONAME ; /usr/bin/nm -gD -f p fcitx-mozc.so | cut -f1-2 
> -d' '; } > fcitx-mozc.so.TOC; else /usr/bin/g++ -shared -Wl,-z,relro 
> -Wl,--as-needed -lstdc++ -pthread -o fcitx-mozc.so -Wl,-soname=fcitx-mozc.so 
> @fcitx-mozc.so.rsp && { /usr/bin/readelf -d fcitx-mozc.so | grep SONAME ; 
> /usr/bin/nm -gD -f p fcitx-mozc.so | cut -f1-2 -d' '; } > fcitx-mozc.so.tmp 
> && if ! cmp -s fcitx-mozc.so.tmp fcitx-mozc.so.TOC; then mv fcitx-mozc.so.tmp 
> fcitx-mozc.so.TOC ; fi; fi
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(arena.o): relocation 
> R_X86_64_TPOFF32 against symbol 
> `_ZN6google8protobuf8internal15ThreadSafeArena13thread_cache_E' can not be 
> used when making a shared object; recompile with -fPIC
> /usr/bin/ld: failed to set dynamic section sizes: bad value
> collect2: error: ld returned 1 exit status
> ninja: build stopped: subcommand failed.
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/src/build_mozc.py", line 892, in <module>
>     sys.exit(main())
>              ^^^^^^
>   File "/<<PKGBUILDDIR>>/src/build_mozc.py", line 877, in main
>     BuildMain(cmd_opts, cmd_args)
>   File "/<<PKGBUILDDIR>>/src/build_mozc.py", line 617, in BuildMain
>     BuildWithNinja(options, targets)
>   File "/<<PKGBUILDDIR>>/src/build_mozc.py", line 591, in BuildWithNinja
>     RunOrDie([ninja, '-v', '-C', build_arg, target_name])
>   File "/<<PKGBUILDDIR>>/src/build_tools/util.py", line 96, in RunOrDie
>     raise RunOrDieError('\n'.join(['',
> build_tools.util.RunOrDieError: 
> ==========
>  ERROR: ninja -v -C out_linux/Release fcitx-mozc
> ==========
> make[1]: *** [debian/rules:45: build_dynamic_link] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:30: build] Error 2
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage 
> --sanitize-env -us -uc -rfakeroot -b' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/16/mozc_2.28.4715.102+dfsg-2.2_unstable.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to