Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937629 - app-i18n/opencc-1.1.7 - [ncurses-6.5] [icu-75.1] [gcc-15] /.../SerializedValues.hpp: error: uint16_t was not declared in this scope
Summary: app-i18n/opencc-1.1.7 - [ncurses-6.5] [icu-75.1] [gcc-15] /.../SerializedValu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-09 15:39 UTC by Toralf Förster
Modified: 2024-09-16 11:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.48 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
app-i18n:opencc-1.1.7:20240809-092203.log (app-i18n:opencc-1.1.7:20240809-092203.log,42.48 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,141.76 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
environment (environment,131.35 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.25 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,41.17 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,29.82 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-08-09 15:39:18 UTC
too long lines were shrinked:

/var/tmp/portage/app-i18n/opencc-1.1.7/work/OpenCC-ver.1.1.7/src/Segments.hpp:35:29: warning: loop variable item of type const std::string& {aka const std::__cxx11::basic_string<char>&} binds to a temporary constructed from type const char* const [-Wrange-loop-construct]
   35 |     for (const std::string& item : initList) {
      |                             ^~~~
/var/tmp/portage/app-i18n/opencc-1.1.7/work/OpenCC-ver.1.1.7/src/Segments.hpp:35:29: note: use non-reference type const std::string {aka const std::__cxx11::basic_string<char>} to make the copy explicit or const char* const& to prevent copying
In file included from /var/tmp/portage/app-i18n/opencc-1.1.7/work/OpenCC-ver.1.1.7/src/SerializedValues.cpp:23:
/var/tmp/portage/app-i18n/opencc-1.1.7/work/OpenCC-ver.1.1.7/src/SerializedValues.hpp: At global scope:
/var/tmp/portage/app-i18n/opencc-1.1.7/work/OpenCC-ver.1.1.7/src/SerializedValues.hpp:47:36: error: uint16_t was not declared in this scope
   47 |                        std::vector<uint16_t>* valueBytes,
      |                                    ^~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20240806-191039

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  >=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.6 linux/amd64

  HEAD of ::gentoo
commit ae4e9a1c836ad2d418ecbf59294c2d85ff712098
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Aug 9 07:49:15 2024 +0000

    2024-08-09 07:49:15 UTC

emerge -qpvO =app-i18n/opencc-1.1.7
[ebuild  N    ] app-i18n/opencc-1.1.7  USE="-doc -test"
Comment 1 Toralf Förster gentoo-dev 2024-08-09 15:39:19 UTC
Created attachment 899699 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-09 15:39:20 UTC
Created attachment 899700 [details]
app-i18n:opencc-1.1.7:20240809-092203.log
Comment 3 Toralf Förster gentoo-dev 2024-08-09 15:39:22 UTC
Created attachment 899701 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-08-09 15:39:23 UTC
Created attachment 899702 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-09 15:39:24 UTC
Created attachment 899703 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-09 15:39:25 UTC
Created attachment 899704 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-09 15:39:26 UTC
Created attachment 899705 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-09 15:39:27 UTC
Created attachment 899706 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-09-07 22:09:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=233b77e82c1c86e05f494d0314b99acaa127623a

commit 233b77e82c1c86e05f494d0314b99acaa127623a
Author:     Yongxiang Liang <tanekliang@gmail.com>
AuthorDate: 2024-09-07 13:20:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-07 22:07:58 +0000

    app-i18n/opencc: fix for gcc-15
    
    Closes: https://bugs.gentoo.org/937629
    Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/38499
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/opencc-1.1.7-fix-missing-cstdint-for-gcc-15.patch | 13 +++++++++++++
 app-i18n/opencc/opencc-1.1.7-r1.ebuild                      |  4 ++++
 app-i18n/opencc/opencc-1.1.7.ebuild                         |  4 ++++
 3 files changed, 21 insertions(+)
Comment 10 Blacktea Hamburger 2024-09-16 11:26:44 UTC
This has been fixed by upstream: https://github.com/BYVoid/OpenCC/commit/3d3adca2dbee0da7d33eb3c3563299fcbd2255e3