Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865119 - dev-util/ccache: fails to compile with gcc-13: error: ‘uint64_t’ does not name a type
Summary: dev-util/ccache: fails to compile with gcc-13: error: ‘uint64_t’ does not nam...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2022-08-14 02:23 UTC by WANG Xuerui
Modified: 2022-08-25 09:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui gentoo-dev 2022-08-14 02:23:22 UTC
> FAILED: src/CMakeFiles/ccache_framework.dir/Args.cpp.o
> /usr/bin/loongarch64-unknown-linux-gnu-g++ -DXXH_STATIC_LINKING_ONLY -Dnssv_CONFIG_SELECT_STRING_VIEW=nssv_STRING_VIEW_NONSTD -I/tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1_build -I/tmp/portage/dev-util/
> ccache-4.6.1/work/ccache-4.6.1/src  -O2 -pipe -ggdb -include /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1_build/config.h -Wall -std=c++14 -MD -MT src/CMakeFiles/ccache_framework.dir/Args.cpp.o -MF src/CM
> akeFiles/ccache_framework.dir/Args.cpp.o.d -o src/CMakeFiles/ccache_framework.dir/Args.cpp.o -c /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Args.cpp
> In file included from /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Util.hpp:21,
>                  from /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Args.hpp:22,
>                  from /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Args.cpp:19:
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:132:3: error: ‘uint64_t’ does not name a type
>   132 |   uint64_t size() const;
>       |   ^~~~~~~~
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:28:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
>    27 | #include <string>
>   +++ |+#include <cstdint>
>    28 |
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:134:3: error: ‘uint64_t’ does not name a type
>   134 |   uint64_t size_on_disk() const;
>       |   ^~~~~~~~
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:134:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:219:8: error: ‘uint64_t’ does not name a type
>   219 | inline uint64_t
>       |        ^~~~~~~~
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:219:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:225:8: error: ‘uint64_t’ does not name a type
>   225 | inline uint64_t
>       |        ^~~~~~~~
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Stat.hpp:225:8: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Util.hpp: In function ‘int64_t Util::size_change_kibibyte(const Stat&, const Stat&)’:
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Util.hpp:357:41: error: ‘const class Stat’ has no member named ‘size_on_disk’
>   357 |   return (static_cast<int64_t>(new_stat.size_on_disk())
>       |                                         ^~~~~~~~~~~~
> /tmp/portage/dev-util/ccache-4.6.1/work/ccache-4.6.1/src/Util.hpp:358:43: error: ‘const class Stat’ has no member named ‘size_on_disk’
>   358 |           - static_cast<int64_t>(old_stat.size_on_disk()))
>       |                                           ^~~~~~~~~~~~
Comment 1 WANG Xuerui gentoo-dev 2022-08-25 09:53:02 UTC
Confirmed fixed with 4.6.2.