First, tensorflow/stream_executor/kernel.h needs an additional #include <cstring> and replace std::memcpy by memcpy. But then it fails with tensorflow/core/lib/io/cache.cc: In static member function 'static uint32_t tensorflow::table::{anonymous}::ShardedLRUCache::Hash(const char*, size_t, uint32_t)': tensorflow/core/lib/io/cache.cc:430:9: error: 'ABSL_FALLTHROUGH_INTENDED' was not declared in this scope This is with gcc-9.3.0
tf-2.2 is gone from the tree