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

Bug#1097512: marked as done (opencc: ftbfs with GCC-15)



Your message dated Tue, 09 Sep 2025 12:54:16 +0000
with message-id <E1uvxrU-001HDQ-2z@fasolo.debian.org>
and subject line Bug#1097512: fixed in opencc 1.1.9+ds1-2
has caused the Debian Bug report #1097512,
regarding opencc: ftbfs with GCC-15
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1097512: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097512
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:opencc
Version: 1.1.9+ds1-1
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/opencc_1.1.9+ds1-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
      |           ;
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:85:22: error: ‘valueTotalLength’ was not declared in this scope
   85 |   valueBuffer.resize(valueTotalLength);
      |                      ^~~~~~~~~~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:94:16: error: expected ‘;’ before ‘i’
   94 |   for (uint32_t i = 0; i < numItems; i++) {
      |                ^~
      |                ;
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:94:24: error: ‘i’ was not declared in this scope
   94 |   for (uint32_t i = 0; i < numItems; i++) {
      |                        ^
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:94:28: error: ‘numItems’ was not declared in this scope
   94 |   for (uint32_t i = 0; i < numItems; i++) {
      |                            ^~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:96:5: error: ‘uint16_t’ was not declared in this scope
   96 |     uint16_t numValues = ReadInteger<uint16_t>(fp);
      |     ^~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:96:5: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:99:18: error: expected ‘;’ before ‘j’
   99 |     for (uint16_t j = 0; j < numValues; j++) {
      |                  ^~
      |                  ;
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:99:26: error: ‘j’ was not declared in this scope
   99 |     for (uint16_t j = 0; j < numValues; j++) {
      |                          ^
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:99:30: error: ‘numValues’ was not declared in this scope; did you mean ‘values’?
   99 |     for (uint16_t j = 0; j < numValues; j++) {
      |                              ^~~~~~~~~
      |                              values
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:101:15: error: expected ‘;’ before ‘numValueBytes’
  101 |       uint16_t numValueBytes = ReadInteger<uint16_t>(fp);
      |               ^~~~~~~~~~~~~~
      |               ;
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:102:23: error: ‘numValueBytes’ was not declared in this scope
  102 |       pValueBuffer += numValueBytes;
      |                       ^~~~~~~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp: At global scope:
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:113:52: error: ‘uint16_t’ was not declared in this scope
  113 |                                        std::vector<uint16_t>* valueBytes,
      |                                                    ^~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:113:52: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:113:60: error: template argument 1 is invalid
  113 |                                        std::vector<uint16_t>* valueBytes,
      |                                                            ^
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:113:60: error: template argument 2 is invalid
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:114:40: error: ‘uint32_t’ has not been declared
  114 |                                        uint32_t* valueTotalLength) const {
      |                                        ^~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:114:40: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp: In member function ‘void opencc::SerializedValues::ConstructBuffer(std::string*, int*, int*) const’:
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:120:40: error: ‘uint32_t’ does not name a type
  120 |       *valueTotalLength += static_cast<uint32_t>(value.length()) + 1;
      |                                        ^~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:120:40: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:129:19: error: request for member ‘push_back’ in ‘* valueBytes’, which is of non-class type ‘int’
  129 |       valueBytes->push_back(static_cast<uint16_t>(value.length() + 1));
      |                   ^~~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:129:41: error: ‘uint16_t’ does not name a type
  129 |       valueBytes->push_back(static_cast<uint16_t>(value.length() + 1));
      |                                         ^~~~~~~~
/build/reproducible-path/opencc-1.1.9+ds1/src/SerializedValues.cpp:129:41: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
make[3]: *** [src/CMakeFiles/libopencc.dir/build.make:250: src/CMakeFiles/libopencc.dir/SerializedValues.cpp.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/opencc-1.1.9+ds1/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1231: src/CMakeFiles/libopencc.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/opencc-1.1.9+ds1/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/opencc-1.1.9+ds1/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

--- End Message ---
--- Begin Message ---
Source: opencc
Source-Version: 1.1.9+ds1-2
Done: Boyuan Yang <byang@debian.org>

We believe that the bug you reported is fixed in the latest version of
opencc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1097512@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated opencc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 09 Sep 2025 08:26:01 -0400
Source: opencc
Architecture: source
Version: 1.1.9+ds1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 1097512
Changes:
 opencc (1.1.9+ds1-2) unstable; urgency=medium
 .
   * debian/patches/backport/0006-Fix-build-for-gcc-15-934.patch,
     debian/patches/backport/0007-Fix-deprecated-declarations-in-C-17.patch:
     Backport upstream patches to fix FTBFS with GCC 15. (Closes: #1097512)
   * debian/patches/0002-Force-build-with-c-17.patch: Force building with
     c++17 standard to fix FTBFS with the new googletest.
Checksums-Sha1:
 1685e35688a9d8031f7741c9477a15ba6f7fba90 3229 opencc_1.1.9+ds1-2.dsc
 03bce052cc90c70f98d725b7110c4c6ae4e8ec19 13724 opencc_1.1.9+ds1-2.debian.tar.xz
 b52cd9067d71eed86e00d6d2d825d76a82ba0720 1685704 opencc_1.1.9+ds1-2.git.tar.xz
 11f6802e96aa8d12c0261c41d4d42763144e0499 18066 opencc_1.1.9+ds1-2_source.buildinfo
Checksums-Sha256:
 54a146a04a7034423eb628ef992d5effed6374a76f75c3a3d37776731e6131b6 3229 opencc_1.1.9+ds1-2.dsc
 e1acd8163013eaa13659e7b84af3128a771e5682c71c28d4ef84f2c37b074bf7 13724 opencc_1.1.9+ds1-2.debian.tar.xz
 cd96f3f8c41eeade2bf5049ff3a6d5c10a6c89e816b27ce900967632b5c675c6 1685704 opencc_1.1.9+ds1-2.git.tar.xz
 be4273f14eb56c6e147fbb6352bfd0fe0bf5789297fafa8618ebcba24ac1c1c2 18066 opencc_1.1.9+ds1-2_source.buildinfo
Files:
 90659502aa3e8ab4695b7753102857ae 3229 libs optional opencc_1.1.9+ds1-2.dsc
 bf70e4120b49d1a63bdd88ca3a58830d 13724 libs optional opencc_1.1.9+ds1-2.debian.tar.xz
 98a685015c28ae2d8a128fb4e53e591a 1685704 libs optional opencc_1.1.9+ds1-2.git.tar.xz
 024d7eae201175f67b23b9e04df94312 18066 libs optional opencc_1.1.9+ds1-2_source.buildinfo
Git-Tag-Info: tag=ac1a7a855480269bea212ba62f0b8827cfa6adfb fp=7e7729476d87d6f11d91accbc293e7b461825ace
Git-Tag-Tagger: Boyuan Yang <byang@debian.org>

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmjAHscACgkQYG0ITkaD
wHkdTg//bQbu4V9Vi5RW1YzAK46NiI+k/i3yPy9MtvMs3eZW/arVhCPShmLQxICv
m4I0ZgNO4Cfwxt+YXg2ax21fNHzprJdGjmKwB9+EqxJ0QqBwZgTbZa6dRJT6mljB
zkhx2n9mOIRUcsY0AMJ+247UNwgH+GHT7KCza/eI/cQt/ljmD/T8lApJ3jLY6x4n
Q183DTosjDz7lW2oOJOpr5olFDE0Ail5b8nuAIDRJfDCNz54LUyC1G+mSZhv4QHA
vMceXwy4K88VChrD9ClpWQq9tTI2W+2VOEDko5DPbAhgNcyXk5pScLhdTjCiVYBO
3+Fu3Eh1sNXp1Zs4hqak+2ZSFH19FyHHa84XR4DYnjaSioOL+blVxp57AnYVwhNk
aOYw8RkXLykAWnd+TgDm0rqXBBQv0zFz9jBTR8udRKrfygx34QiUersoJfqV8kho
BClrBINPVZ2TEe9zx7MtUCKtkhjhbDXaFvlNYoXge4egWD+UIYtpwpaBOTCJdTkC
N875p1lmXF1lENtFOEyGIyxK5F61YlygUmQxV/YS4GPot6mTYJJ2MRDk6PGj7e1W
TX9EORAyW9Ga4PatbJYuYe5nXvtkk7J85CqnzrHREkL3w5xJ3cqdUMGjo01iCSVo
HiMZ3/GnTp6CmsSWLir33dOkOLDcRZPSVeKvGEex6CaCY4QeQ5s=
=iRlI
-----END PGP SIGNATURE-----

Attachment: pgpeoybk21u6P.pgp
Description: PGP signature


--- End Message ---

Reply to: