latest `devel` branch does not compile with gcc10
Error:
In file included from /local/home/atlasitk/SOFTS/Yarr/src/libStar/./include/StarCmd.h:11,
from /local/home/atlasitk/SOFTS/Yarr/src/libStar/StarCmd.cpp:1:
/local/home/atlasitk/SOFTS/Yarr/src/libStar/./include/LCBUtils.h:8:28: error: ‘uint8_t’ was not declared in this scope
8 | constexpr int count_bits(uint8_t d) {
| ^~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/libStar/CMakeFiles/Star.dir/build.make:160: src/libStar/CMakeFiles/Star.dir/StarCmd.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:955: src/libStar/CMakeFiles/Star.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Also a Warning which could be fixed:
[ 13%] Building CXX object src/libSpec/CMakeFiles/Spec.dir/LMK61E2.cpp.o
In file included from ../../src/tbb/concurrent_hash_map.cpp:17:
../../include/tbb/concurrent_hash_map.h: In constructor ‘tbb::interface5::internal::hash_map_base::hash_map_base()’:
../../include/tbb/concurrent_hash_map.h:131:76: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct tbb::interface5::internal::hash_map_base::bucket’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
131 | std::memset(my_embedded_segment, 0, sizeof(my_embedded_segment));
| ^
../../include/tbb/concurrent_hash_map.h:93:16: note: ‘struct tbb::interface5::internal::hash_map_base::bucket’ declared here
93 | struct bucket : tbb::internal::no_copy {
|
Software I use: LCG_99 x86_64-centos7-gcc10-opt
hope this helps.