[Debian-zh-dev] Bug#1075707: zhcon: ftbfs with GCC-14

Rafael Lee rafaellee.img at gmail.com
Mon Jul 8 05:26:32 BST 2024


Hi,

I have 5 patches, 0001, 0002 and 0003 to make the code at
https://salsa.debian.org/chinese-team/zhcon.git compiles successfully, with
gcc-14 and debian 12.
The 0004 and 0005 patches are my test on configure.in, but not finished
yet. Since gettext deb package has m4 file related to iconv, I don't know
how to use. I suspect the configure.in is not correct, when I use
autoupdate && autoconf && automake, the generated ./configure is wrong when
detecting iconv.


-- System Information:
Debian Release: 12.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zhcon depends on:
ii  libc6       2.38-13
ii  libgcc-s1   14-20240330-1
ii  libgpm2     1.20.7-11
ii  libstdc++6  14-20240330-1
ii  libtinfo6   6.5-2
pn  zhcon-data  <none>

zhcon recommends no packages.

zhcon suggests no packages.

Regards.

Rafael Lee


On Wed, 03 Jul 2024 12:50:01 +0000 Matthias Klose <doko at debian.org> wrote:
> Package: src:zhcon
> Version: 1:0.2.6-19
> Severity: important
> Tags: sid trixie
> User: debian-gcc at lists.debian.org
> Usertags: ftbfs-gcc-14
>
> [This bug is targeted to the upcoming trixie release]
>
> 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
> severity of this report will be raised before the trixie release.
>
> The full build log can be found at:
> http://qa-logs.debian.net/2024/07/01/zhcon_0.2.6-19_unstable_gccexp.log
> The last lines of the build log are at the end of this report.
>
> To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html
>
> [...]
> winime.cpp:267:32: warning: ‘std::binder2nd<_Operation>
std::bind2nd(const _Operation&, const _Tp&) [with _Operation =
not_equal_to<char*>; _Tp = char*]’ is deprecated: use 'std::bind' instead
[-Wdeprecated-declarations]
>   267 |                         bind2nd(not_equal_to < char *>(),
>       |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
>   268 |                                 (char *) 0xffffffff));
>       |                                 ~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/c++/14/bits/stl_function.h:1435,
>                  from /usr/include/c++/14/functional:49,
>                  from winime.cpp:26:
> /usr/include/c++/14/backward/binders.h:172:5: note: declared here
>   172 |     bind2nd(const _Operation& __fn, const _Tp& __x)
>       |     ^~~~~~~
> winime.cpp:276:17: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
>   276 |             p = (char *)(mpIndex2[Index(mInput[0]) * l +
Index(c)]);
>       |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-nativeinputserver.o `test -f 'nativeinputserver.cpp' || echo
'./'`nativeinputserver.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-inputclient.o `test -f 'inputclient.cpp' || echo
'./'`inputclient.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-inputmanager.o `test -f 'inputmanager.cpp' || echo
'./'`inputmanager.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-inputserver.o `test -f 'inputserver.cpp' || echo
'./'`inputserver.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-candilist.o `test -f 'candilist.cpp' || echo './'`candilist.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-uniconinputserver.o `test -f 'uniconinputserver.cpp' || echo
'./'`uniconinputserver.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-nativebarclient.o `test -f 'nativebarclient.cpp' || echo
'./'`nativebarclient.cpp
> g++ -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-mouse.o `test -f 'mouse.cpp' || echo './'`mouse.cpp
> gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/<<PKGBUILDDIR>>=. - -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -funsigned-char -O2 -DNDEBUG -Wall
-c -o zhcon-encfilter.o `test -f 'encfilter.c' || echo './'`encfilter.c
> gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONF_DIR=\"/etc\" -Wdate-time
-D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
-funsigned-char -O2 -DNDEBUG -Wall -c -o zhcon-iconv_string.o `test -f
'iconv_string.c' || echo './'`iconv_string.c
> iconv_string.c: In function ‘iconv_string’:
> iconv_string.c:83:29: error: passing argument 2 of ‘iconv’ from
incompatible pointer type [-Wincompatible-pointer-types]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/1b090d6f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-not-found-functions-by-adding-headers.patch
Type: application/x-patch
Size: 2741 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/1b090d6f/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-type-error-by-adding-restrict-to-pointer.patch
Type: application/x-patch
Size: 1252 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/1b090d6f/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Fix-type-error-convert-type-of-char-mpText-to-long-u.patch
Type: application/x-patch
Size: 1088 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/1b090d6f/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Fix-iconv-detection-in-configure.in.patch
Type: application/x-patch
Size: 2075 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/1b090d6f/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-file-compile-for-file-detection.patch
Type: application/x-patch
Size: 393 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/1b090d6f/attachment-0009.bin>


More information about the Chinese-developers mailing list