Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 865119

Summary: dev-util/ccache: fails to compile with gcc-13: error: ‘uint64_t’ does not name a type
Product: Gentoo Linux Reporter: WANG Xuerui <xen0n>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: loong
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117    

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.