apache / celix

Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
https://celix.apache.org/
Apache License 2.0
158 stars 85 forks source link

Hotfix/conan create ubuntu clang #681

Closed PengZheng closed 8 months ago

PengZheng commented 8 months ago

This PR fixes https://github.com/apache/celix/actions/runs/6700166848/job/18207423046

 /home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:132:3: error: unknown type name 'uint64_t'
  uint64_t size() const;
  ^
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:134:3: error: unknown type name 'uint64_t'
  uint64_t size_on_disk() const;
  ^
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:219:8: error: unknown type name 'uint64_t'
inline uint64_t
       ^
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:225:8: error: unknown type name 'uint64_t'
inline uint64_t
       ^
[ 22%] Building CXX object src/CMakeFiles/ccache_framework.dir/Config.cpp.o
4 errors generated.
gmake[2]: *** [src/CMakeFiles/ccache_framework.dir/build.make:76: src/CMakeFiles/ccache_framework.dir/Args.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Config.cpp:19:
In file included from /home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Config.hpp:22:
In file included from /home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Util.hpp:21:
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:132:3: error: unknown type name 'uint64_t'
  uint64_t size() const;
  ^
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:134:3: error: unknown type name 'uint64_t'
  uint64_t size_on_disk() const;
  ^
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:219:8: error: unknown type name 'uint64_t'
inline uint64_t
       ^
/home/runner/work/celix/celix/release/p/b/ccachd626175a63360/b/src/src/Stat.hpp:225:8: error: unknown type name 'uint64_t'
inline uint64_t
       ^
4 errors generated.
gmake[2]: *** [src/CMakeFiles/ccache_framework.dir/build.make:104: src/CMakeFiles/ccache_framework.dir/Config.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:322: src/CMakeFiles/ccache_framework.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

ccache/4.6: ERROR:

It seems caused by missing #include <stdint.h>. Thus I upgrade ccache to 4.7.4, which does not have this issue.