Bug 46253

Summary: ccache: ошибка сборки с GCC 13
Product: Sisyphus Reporter: Alexey Sheplyakov <asheplyakov>
Component: ccacheAssignee: Vitaly Lipatov <lav>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: arbars, lav
Version: unstable   
Hardware: all   
OS: Linux   

Description Alexey Sheplyakov 2023-05-24 20:11:16 MSK
[ 28%] Building CXX object src/CMakeFiles/ccache_framework.dir/Util.cpp.o
cd /usr/src/RPM/BUILD/ccache-4.6/loongarch64-alt-linux/src && /usr/bin/c++ -DXXH_STATIC_LINKING_ONLY -Dnssv_CONFIG_SELECT_STRING_VIEW=nssv_STRING_VIEW_NONSTD -I/usr/src/RPM/BUILD/ccache-4.6/
loongarch64-alt-linux -I/usr/src/RPM/BUILD/ccache-4.6/src -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -g -DNDEBUG -include /usr/src/RPM/BUILD/ccache-4.6/loongarch64-alt-linux/con
fig.h -Wall -std=c++14 -MD -MT src/CMakeFiles/ccache_framework.dir/Util.cpp.o -MF CMakeFiles/ccache_framework.dir/Util.cpp.o.d -o CMakeFiles/ccache_framework.dir/Util.cpp.o -c /usr/src/RPM/B
UILD/ccache-4.6/src/Util.cpp
In file included from /usr/src/RPM/BUILD/ccache-4.6/src/Util.hpp:21,
                 from /usr/src/RPM/BUILD/ccache-4.6/src/Util.cpp:19:
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:132:3: error: 'uint64_t' does not name a type
  132 |   uint64_t size() const;
      |   ^~~~~~~~
/usr/src/RPM/BUILD/ccache-4.6/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 |
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:134:3: error: 'uint64_t' does not name a type
  134 |   uint64_t size_on_disk() const;
      |   ^~~~~~~~
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:134:3: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:219:8: error: 'uint64_t' does not name a type
  219 | inline uint64_t
      |        ^~~~~~~~
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:219:8: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:225:8: error: 'uint64_t' does not name a type
  225 | inline uint64_t
      |        ^~~~~~~~
/usr/src/RPM/BUILD/ccache-4.6/src/Stat.hpp:225:8: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
/usr/src/RPM/BUILD/ccache-4.6/src/Util.hpp: In function 'int64_t Util::size_change_kibibyte(const Stat&, const Stat&)':
/usr/src/RPM/BUILD/ccache-4.6/src/Util.hpp:352:41: error: 'const class Stat' has no member named 'size_on_disk'
  352 |   return (static_cast<int64_t>(new_stat.size_on_disk())
      |                                         ^~~~~~~~~~~~
/usr/src/RPM/BUILD/ccache-4.6/src/Util.hpp:353:43: error: 'const class Stat' has no member named 'size_on_disk'
  353 |           - static_cast<int64_t>(old_stat.size_on_disk()))
      |                                           ^~~~~~~~~~~~
/usr/src/RPM/BUILD/ccache-4.6/src/Util.cpp: In function 'std::string Util::read_file(const std::string&, size_t)':
/usr/src/RPM/BUILD/ccache-4.6/src/Util.cpp:1091:22: error: 'class Stat' has no member named 'size'
 1091 |     size_hint = stat.size();
      |                      ^~~~
Comment 1 arbars@altlinux.org 2023-07-11 13:30:42 MSK
В процессе исправления.