Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955226 - app-i18n/opencc-1.1.9 (gcc-15): OpenCC-ver.1.1.9/src/SerializedValues.cpp:129:41: error: ‘uint16_t’ does not name a type
Summary: app-i18n/opencc-1.1.9 (gcc-15): OpenCC-ver.1.1.9/src/SerializedValues.cpp:129...
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:
 
Reported: 2025-05-02 09:09 UTC by Leo Douglas
Modified: 2025-05-04 03:32 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,35.86 KB, text/x-log)
2025-05-02 09:09 UTC, Leo Douglas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Douglas 2025-05-02 09:09:28 UTC
Created attachment 927295 [details]
build.log

/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/SerializedValues.cpp:129:41: error: ‘uint16_t’ does not name a type
  129 |       valueBytes->push_back(static_cast<uint16_t>(value.length() + 1));
      |                                         ^~~~~~~~
/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/SerializedValues.cpp:129:41: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
[11/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/Lexicon.cpp.o -MF src/CMakeFiles/libopencc.dir/Lexicon.cpp.o.d -o src/CMakeFiles/libopencc.dir/Lexicon.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/Lexicon.cpp
[12/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/SimpleConverter.cpp.o -MF src/CMakeFiles/libopencc.dir/SimpleConverter.cpp.o.d -o src/CMakeFiles/libopencc.dir/SimpleConverter.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/SimpleConverter.cpp
[13/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/Config.cpp.o -MF src/CMakeFiles/libopencc.dir/Config.cpp.o.d -o src/CMakeFiles/libopencc.dir/Config.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/Config.cpp
[14/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/UTF8StringSlice.cpp.o -MF src/CMakeFiles/libopencc.dir/UTF8StringSlice.cpp.o.d -o src/CMakeFiles/libopencc.dir/UTF8StringSlice.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/UTF8StringSlice.cpp
[15/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/MarisaDict.cpp.o -MF src/CMakeFiles/libopencc.dir/MarisaDict.cpp.o.d -o src/CMakeFiles/libopencc.dir/MarisaDict.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/MarisaDict.cpp
[16/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/TextDict.cpp.o -MF src/CMakeFiles/libopencc.dir/TextDict.cpp.o.d -o src/CMakeFiles/libopencc.dir/TextDict.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/TextDict.cpp
[17/49] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DARTS -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"opencc\" -DPKGDATADIR=\"/usr/share/opencc\" -DVERSION=\"1.1.9\" -Dlibopencc_EXPORTS -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build/src -I/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src  -march=native -O2 -pipe -fPIC   -std=c++14 -Wall -MD -MT src/CMakeFiles/libopencc.dir/PhraseExtract.cpp.o -MF src/CMakeFiles/libopencc.dir/PhraseExtract.cpp.o.d -o src/CMakeFiles/libopencc.dir/PhraseExtract.cpp.o -c /var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9/src/PhraseExtract.cpp
ninja: build stopped: subcommand failed.
 * ERROR: app-i18n/opencc-1.1.9::gentoo failed (compile phase):
 *   ninja -v -j8 -l9 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3840:  Called cmake_src_compile
 *   environment, line 1678:  Called cmake_build
 *   environment, line 1645:  Called eninja
 *   environment, line 2572:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=app-i18n/opencc-1.1.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/opencc-1.1.9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-i18n/opencc-1.1.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/opencc-1.1.9/temp/environment'.
 * Working directory: '/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build'
 * S: '/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9'

>>> Failed to emerge app-i18n/opencc-1.1.9, Log file:

>>>  '/var/tmp/portage/app-i18n/opencc-1.1.9/temp/build.log'

 * Messages for package app-i18n/opencc-1.1.9:

 * ERROR: app-i18n/opencc-1.1.9::gentoo failed (compile phase):
 *   ninja -v -j8 -l9 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3840:  Called cmake_src_compile
 *   environment, line 1678:  Called cmake_build
 *   environment, line 1645:  Called eninja
 *   environment, line 2572:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=app-i18n/opencc-1.1.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/opencc-1.1.9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-i18n/opencc-1.1.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/opencc-1.1.9/temp/environment'.
 * Working directory: '/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9_build'
 * S: '/var/tmp/portage/app-i18n/opencc-1.1.9/work/OpenCC-ver.1.1.9'
Comment 2 Larry the Git Cow gentoo-dev 2025-05-04 03:32:02 UTC
The bug has been closed via the following commit(s):

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

commit edf0a960f71ee251e82b4093e1e4544e8d57229f
Author:     Yongxiang Liang <tanekliang@gmail.com>
AuthorDate: 2025-05-02 09:48:05 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-05-04 03:28:38 +0000

    app-i18n/opencc: re-add patch for gcc-15
    
    Closes: https://bugs.gentoo.org/955226
    Closes: https://github.com/gentoo/gentoo/pull/41895
    Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-i18n/opencc/opencc-1.1.9.ebuild | 4 ++++
 1 file changed, 4 insertions(+)