[Debian-zh-dev] Bug#1075707: Bug#1075707: zhcon: ftbfs with GCC-14
xiao sheng wen (=?UTF-8?Q?=E8=82=96=E7=9B=9B=E6=96=87?=)
atzlinux at sina.com
Mon Jul 8 09:52:18 BST 2024
Hi Rafael Lee,
Thanks for your patch.
I test patch 0001 0002 and 0003, 0002 is ok, but 0001 and 0003 need to
some updates as some old patches had modify the same upstream source
code file.
I had updated 0001 and 0003 on:
https://salsa.debian.org/chinese-team/zhcon/-/tree/master/debian/patches/fix-gcc14?ref_type=heads
Now, the package can build success on gcc-14 now.
I uploaded to https://mentors.debian.net/package/zhcon/
I don't test 0004 0005 patches, they don't need to fix this bug.
Regards,
在 2024/7/8 12:26, Rafael Lee 写道:
> 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]
>
>
> _______________________________________________
> Chinese-developers mailing list
> Chinese-developers at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/chinese-developers
--
肖盛文 xiao sheng wen
https://www.atzlinux.com 《铜豌豆 Linux》基于 Debian 的 Linux 中文 桌面
操作系统
Debian QA page:
https://qa.debian.org/developer.php?login=atzlinux%40sina.com
Debian salsa: https://salsa.debian.org/atzlinux-guest
GnuPG Public Key: 0x00186602339240CB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20240708/e1d88f8a/attachment-0001.sig>
More information about the Chinese-developers
mailing list