Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937737 - =app-i18n/fcitx-5.1.10:5 fails to build with gcc-15.0.0_pre20240804: ‘uint32_t’ does not name a type
Summary: =app-i18n/fcitx-5.1.10:5 fails to build with gcc-15.0.0_pre20240804: ‘uint32...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: yongxiang
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-10 22:17 UTC by tdr
Modified: 2024-08-15 20:35 UTC (History)
4 users (show)

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


Attachments
inputbuffer.h cstdint add patch (inputbuffer.h-cstdint-add.patch,654 bytes, patch)
2024-08-10 22:19 UTC, tdr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-08-10 22:17:39 UTC
inputbuffer.h does not presently include cstdint
fails to build with gcc-15.0.0_pre20240804

Reproducible: Always

Steps to Reproduce:
select gcc:15
=app-i18n/fcitx-5.1.10:5 
Actual Results:  
FAILED: src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DFCITX_GETTEXT_DOMAIN=\"fcitx5\" -DFMT_HEADER_ONLY=1 -DFcitx5Utils_EXPORTS -I/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10_build -I/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/.. -I/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10_build/src/lib/fcitx-utils -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/elogind  -Wall -Wextra -march=native -O3 -flto=jobserver -mprefer-vector-width=512 -fno-vect-cost-model -pipe -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o -MF src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o.d -o src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o -c /var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.cpp
In file included from /var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.cpp:7:
/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.h:56:15: error: ‘uint32_t’ has not been declared
   56 |     bool type(uint32_t unicode);
      |               ^~~~~~~~
/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.h:82:5: error: ‘uint32_t’ does not name a type
   82 |     uint32_t charAt(size_t i) const;
      |     ^~~~~~~~
Comment 1 tdr 2024-08-10 22:19:34 UTC
Created attachment 899824 [details, diff]
inputbuffer.h cstdint add patch
Comment 2 Larry the Git Cow gentoo-dev 2024-08-15 20:35:22 UTC
The bug has been closed via the following commit(s):

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

commit 04d15160b358179c5dabf2a1e142df6d541eef47
Author:     Yongxiang Liang <tanekliang@gmail.com>
AuthorDate: 2024-08-15 05:56:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-15 20:34:48 +0000

    app-i18n/fcitx: fix missing cstdint for GCC 15
    
    Closes: https://bugs.gentoo.org/937737
    Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-i18n/fcitx/fcitx-5.1.10-r1.ebuild              | 127 +++++++++++++++++++++
 .../fcitx-5.1.10-include-cstdint-for-gcc-15.patch  |  12 ++
 2 files changed, 139 insertions(+)