Failure in building MLIR dialects and utilities from source
@wonjeon Could you try cleaning the build directory with `cmake --build . --target clean` and then rebuilding with `cmake --build `, please make sure that you have installed all compatible configurations correctly with the latest build. Thank you!  Do you have any resolution for bazel? I don't use cmake for this process. Hi @wonjeon,

The build failure might be due to  StrCat  function in ```graph_execution_options.cc```.  A recent commit  [afc843c](https://github.com/tensorflow/tensorflow/commit/afc843c3838f8896ebabb3ebd3c9252e252cbebf) related to this function in github repo is updated. Could you please try with this commit for your usecase and let us know  the status.

Thank You.
 Hi @LakshmiKalaKadali ,

Tried the latest code including the commit that you mentioned, but it still doesn't compile the code correctly. I'm using clang 14.0.0-1ubuntu1.1 and python 3.10.12.

```
$ bazel build -j 24 tensorflow/compiler/mlir/...
...

ERROR: /home/wonjeo01/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/ifrt/BUILD:88:11: Compiling tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc failed: (Exit 1): clang failed: error executing command (from target //tensorflow/compiler/mlir/tfrt/transforms/ifrt:tf2hlo) /usr/lib/llvm-14/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 ... (remaining 486 arguments skipped)
In file included from tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:24:
external/com_google_absl/absl/log/log.h:199:9: warning: 'LOG' macro redefined [-Wmacro-redefined]
#define LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
        ^
external/local_tsl/tsl/platform/default/logging.h:165:9: note: previous definition is here
#define LOG(severity) _TF_LOG_##severity
        ^
In file included from tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:24:
external/com_google_absl/absl/log/log.h:237:9: warning: 'LOG_EVERY_N' macro redefined [-Wmacro-redefined]
#define LOG_EVERY_N(severity, n) \
        ^
external/local_tsl/tsl/platform/default/logging.h:278:9: note: previous definition is here
#define LOG_EVERY_N(severity, n)                       \
        ^
In file included from tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:24:
external/com_google_absl/absl/log/log.h:245:9: warning: 'LOG_FIRST_N' macro redefined [-Wmacro-redefined]
#define LOG_FIRST_N(severity, n) \
        ^
external/local_tsl/tsl/platform/default/logging.h:284:9: note: previous definition is here
#define LOG_FIRST_N(severity, n)                       \
        ^
In file included from tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:24:
external/com_google_absl/absl/log/log.h:253:9: warning: 'LOG_EVERY_POW_2' macro redefined [-Wmacro-redefined]
#define LOG_EVERY_POW_2(severity) \
        ^
external/local_tsl/tsl/platform/default/logging.h:290:9: note: previous definition is here
#define LOG_EVERY_POW_2(severity)                         \
        ^
In file included from tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:24:
external/com_google_absl/absl/log/log.h:265:9: warning: 'LOG_EVERY_N_SEC' macro redefined [-Wmacro-redefined]
#define LOG_EVERY_N_SEC(severity, n_seconds) \
        ^
external/local_tsl/tsl/platform/default/logging.h:300:9: note: previous definition is here
#define LOG_EVERY_N_SEC(severity, n_seconds)                      \
        ^
tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:83:35: error: no viable conversion from '::llvm::StringRef' to 'const std::string' (aka 'const basic_string<char>')
    if (!metadata.ParseFromString(metadata_attr.getValue())) {
                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:456:7: note: candidate constructor not viable: no known conversion from '::llvm::StringRef' to 'const std::basic_string<char> &' for 1st argument
      basic_string(const basic_string& __str)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:533:7: note: candidate constructor template not viable: no known conversion from '::llvm::StringRef' to 'const char *' for 1st argument
      basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:565:7: note: candidate constructor not viable: no known conversion from '::llvm::StringRef' to 'std::basic_string<char> &&' for 1st argument
      basic_string(basic_string&& __str) noexcept
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:592:7: note: candidate constructor not viable: no known conversion from '::llvm::StringRef' to 'initializer_list<char>' for 1st argument
      basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:448:7: note: explicit constructor is not a candidate
      basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:664:2: note: explicit constructor is not a candidate
        basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
        ^
external/llvm-project/llvm/include/llvm/ADT/StringRef.h:248:15: note: candidate function
    constexpr operator std::string_view() const {
              ^
external/com_google_protobuf/src/google/protobuf/message_lite.h:280:74: note: passing argument to parameter 'data' here
  PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromString(ConstStringParam data);
                                                                         ^
tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:94:13: error: no viable conversion from '::llvm::StringRef' to 'const std::string' (aka 'const basic_string<char>')
            metadata_text_attr.getValue(), &metadata)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:456:7: note: candidate constructor not viable: no known conversion from '::llvm::StringRef' to 'const std::basic_string<char> &' for 1st argument
      basic_string(const basic_string& __str)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:533:7: note: candidate constructor template not viable: no known conversion from '::llvm::StringRef' to 'const char *' for 1st argument
      basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:565:7: note: candidate constructor not viable: no known conversion from '::llvm::StringRef' to 'std::basic_string<char> &&' for 1st argument
      basic_string(basic_string&& __str) noexcept
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:592:7: note: candidate constructor not viable: no known conversion from '::llvm::StringRef' to 'initializer_list<char>' for 1st argument
      basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:448:7: note: explicit constructor is not a candidate
      basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:664:2: note: explicit constructor is not a candidate
        basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
        ^
external/llvm-project/llvm/include/llvm/ADT/StringRef.h:248:15: note: candidate function
    constexpr operator std::string_view() const {
              ^
external/com_google_protobuf/src/google/protobuf/text_format.h:479:48: note: passing argument to parameter 'input' here
  static bool ParseFromString(ConstStringParam input, Message* output);
                                               ^
tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:104:62: error: invalid operands to binary expression ('tsl::internal::LogMessage' and 'tensorflow::tpu::TPUCompileMetadataProto')
  VLOG(3) << "TpuCompileMetadata before shape is populated " << metadata;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstddef:126:5: note: candidate function template not viable: no known conversion from 'tsl::internal::LogMessage' to 'std::byte' for 1st argument
    operator<<(byte __b, _IntegerType __shift) noexcept
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/system_error:279:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const std::error_code' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:518:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'char' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:524:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:530:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'signed char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:535:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:611:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const char *' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:624:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const signed char *' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:629:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const unsigned char *' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ostream.tcc:321:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const char *' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:79:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Resetiosflags' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:109:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setiosflags' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:143:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setbase' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:208:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setprecision' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:238:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setw' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1020:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const std::bernoulli_distribution' for 2nd argument
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/thread:92:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'thread::id' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id)
    ^
./tensorflow/core/framework/tensor_shape.h:452:22: note: candidate function not viable: expects an lvalue for 1st argument
inline std::ostream& operator<<(std::ostream& os, const TensorShape& ts) {
                     ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:513:5: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'tensorflow::tpu::TPUCompileMetadataProto')
    operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/string_view:667:5: note: candidate template ignored: could not match 'basic_string_view<_CharT, _Traits>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:6531:5: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Alloc>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:594:5: note: candidate template ignored: could not match 'const _CharT *' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
    ^
./tensorflow/core/framework/tensor_shape.h:346:15: note: candidate template ignored: could not match 'TensorShapeBase<Shape>' against 'tensorflow::tpu::TPUCompileMetadataProto'
std::ostream& operator<<(std::ostream& os, const TensorShapeBase<Shape>& tsb) {
              ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:750:5: note: candidate template ignored: substitution failure [with _Ostream = tsl::internal::LogMessage, _Tp = tensorflow::tpu::TPUCompileMetadataProto]: invalid operands to binary expression ('tsl::internal::LogMessage' and 'const tensorflow::tpu::TPUCompileMetadataProto')
    operator<<(_Ostream&& __os, const _Tp& __x)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr.h:70:5: note: candidate template ignored: could not match '__shared_ptr<_Tp, _Lp>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_Ch, _Tr>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:178:5: note: candidate template ignored: could not match '_Setfill<_CharT>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:311:5: note: candidate template ignored: could not match '_Put_money<_MoneyT>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:363:5: note: candidate template ignored: could not match '_Put_time<_CharT>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/complex:555:5: note: candidate template ignored: could not match 'complex<_Tp>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bitset:1540:5: note: candidate template ignored: could not match 'bitset<_Nb>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.h:1309:5: note: candidate template ignored: could not match 'std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:154:5: note: candidate template ignored: could not match 'linear_congruential_engine<_UIntType, __a, __c, __m>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:474:5: note: candidate template ignored: could not match 'mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:628:5: note: candidate template ignored: could not match 'subtract_with_carry_engine<_UIntType, __w, __s, __r>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:696:5: note: candidate template ignored: could not match 'discard_block_engine<_RandomNumberEngine, __p, __r>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:857:5: note: candidate template ignored: could not match 'shuffle_order_engine<_RandomNumberEngine, __k>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:901:5: note: candidate template ignored: could not match 'uniform_int_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:959:5: note: candidate template ignored: could not match 'uniform_real_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1101:5: note: candidate template ignored: could not match 'geometric_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1215:5: note: candidate template ignored: could not match 'negative_binomial_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1425:5: note: candidate template ignored: could not match 'poisson_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1691:5: note: candidate template ignored: could not match 'binomial_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1753:5: note: candidate template ignored: could not match 'exponential_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1919:5: note: candidate template ignored: could not match 'normal_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1986:5: note: candidate template ignored: could not match 'lognormal_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2058:5: note: candidate template ignored: could not match 'chi_squared_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2144:5: note: candidate template ignored: could not match 'cauchy_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2219:5: note: candidate template ignored: could not match 'fisher_f_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2293:5: note: candidate template ignored: could not match 'student_t_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2462:5: note: candidate template ignored: could not match 'gamma_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2538:5: note: candidate template ignored: could not match 'weibull_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2612:5: note: candidate template ignored: could not match 'extreme_value_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2748:5: note: candidate template ignored: could not match 'discrete_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2970:5: note: candidate template ignored: could not match 'piecewise_constant_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:3176:5: note: candidate template ignored: could not match 'piecewise_linear_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:108:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::basic_ostream<char>::__ostream_type &(*)(std::basic_ostream<char>::__ostream_type &)' (aka 'basic_ostream<char, std::char_traits<char>> &(*)(basic_ostream<char, std::char_traits<char>> &)') for 1st argument
      operator<<(__ostream_type& (*__pf)(__ostream_type&))
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:117:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::basic_ostream<char>::__ios_type &(*)(std::basic_ostream<char>::__ios_type &)' (aka 'basic_ios<char, std::char_traits<char>> &(*)(basic_ios<char, std::char_traits<char>> &)') for 1st argument
      operator<<(__ios_type& (*__pf)(__ios_type&))
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:127:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::ios_base &(*)(std::ios_base &)' for 1st argument
      operator<<(ios_base& (*__pf) (ios_base&))
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:166:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'long' for 1st argument
      operator<<(long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:170:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned long' for 1st argument
      operator<<(unsigned long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:174:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'bool' for 1st argument
      operator<<(bool __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:178:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'short' for 1st argument
      operator<<(short __n);
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:181:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned short' for 1st argument
      operator<<(unsigned short __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:189:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'int' for 1st argument
      operator<<(int __n);
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:192:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned int' for 1st argument
      operator<<(unsigned int __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:201:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'long long' for 1st argument
      operator<<(long long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:205:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned long long' for 1st argument
      operator<<(unsigned long long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:220:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'double' for 1st argument
      operator<<(double __f)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:224:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'float' for 1st argument
      operator<<(float __f)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:232:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'long double' for 1st argument
      operator<<(long double __f)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:245:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const void *' for 1st argument; take the address of the argument with &
      operator<<(const void* __p)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:250:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::nullptr_t' for 1st argument
      operator<<(nullptr_t)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:283:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::basic_ostream<char>::__streambuf_type *' (aka 'basic_streambuf<char, std::char_traits<char>> *') for 1st argument
      operator<<(__streambuf_type* __sb);
      ^
tensorflow/compiler/mlir/tfrt/transforms/ifrt/tf2hlo.cc:191:39: error: invalid operands to binary expression ('tsl::internal::LogMessage' and 'tensorflow::tpu::TPUCompileMetadataProto')
  VLOG(1) << "Compilation metadata: " << compile_metadata;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cstddef:126:5: note: candidate function template not viable: no known conversion from 'tsl::internal::LogMessage' to 'std::byte' for 1st argument
    operator<<(byte __b, _IntegerType __shift) noexcept
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/system_error:279:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const std::error_code' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:518:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'char' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:524:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:530:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'signed char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:535:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:611:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const char *' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:624:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const signed char *' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:629:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const unsigned char *' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ostream.tcc:321:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const char *' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:79:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Resetiosflags' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:109:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setiosflags' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:143:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setbase' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:208:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setprecision' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:238:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::_Setw' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1020:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const std::bernoulli_distribution' for 2nd argument
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/thread:92:5: note: candidate function template not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'thread::id' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id)
    ^
./tensorflow/core/framework/tensor_shape.h:452:22: note: candidate function not viable: expects an lvalue for 1st argument
inline std::ostream& operator<<(std::ostream& os, const TensorShape& ts) {
                     ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:513:5: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'tensorflow::tpu::TPUCompileMetadataProto')
    operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/string_view:667:5: note: candidate template ignored: could not match 'basic_string_view<_CharT, _Traits>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:6531:5: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Alloc>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:594:5: note: candidate template ignored: could not match 'const _CharT *' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
    ^
./tensorflow/core/framework/tensor_shape.h:346:15: note: candidate template ignored: could not match 'TensorShapeBase<Shape>' against 'tensorflow::tpu::TPUCompileMetadataProto'
std::ostream& operator<<(std::ostream& os, const TensorShapeBase<Shape>& tsb) {
              ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:750:5: note: candidate template ignored: substitution failure [with _Ostream = tsl::internal::LogMessage, _Tp = tensorflow::tpu::TPUCompileMetadataProto]: invalid operands to binary expression ('tsl::internal::LogMessage' and 'const tensorflow::tpu::TPUCompileMetadataProto')
    operator<<(_Ostream&& __os, const _Tp& __x)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr.h:70:5: note: candidate template ignored: could not match '__shared_ptr<_Tp, _Lp>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_Ch, _Tr>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:178:5: note: candidate template ignored: could not match '_Setfill<_CharT>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:311:5: note: candidate template ignored: could not match '_Put_money<_MoneyT>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/iomanip:363:5: note: candidate template ignored: could not match '_Put_time<_CharT>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/complex:555:5: note: candidate template ignored: could not match 'complex<_Tp>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bitset:1540:5: note: candidate template ignored: could not match 'bitset<_Nb>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.h:1309:5: note: candidate template ignored: could not match 'std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:154:5: note: candidate template ignored: could not match 'linear_congruential_engine<_UIntType, __a, __c, __m>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:474:5: note: candidate template ignored: could not match 'mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:628:5: note: candidate template ignored: could not match 'subtract_with_carry_engine<_UIntType, __w, __s, __r>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:696:5: note: candidate template ignored: could not match 'discard_block_engine<_RandomNumberEngine, __p, __r>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:857:5: note: candidate template ignored: could not match 'shuffle_order_engine<_RandomNumberEngine, __k>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:901:5: note: candidate template ignored: could not match 'uniform_int_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:959:5: note: candidate template ignored: could not match 'uniform_real_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1101:5: note: candidate template ignored: could not match 'geometric_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1215:5: note: candidate template ignored: could not match 'negative_binomial_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1425:5: note: candidate template ignored: could not match 'poisson_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1691:5: note: candidate template ignored: could not match 'binomial_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1753:5: note: candidate template ignored: could not match 'exponential_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1919:5: note: candidate template ignored: could not match 'normal_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:1986:5: note: candidate template ignored: could not match 'lognormal_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2058:5: note: candidate template ignored: could not match 'chi_squared_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2144:5: note: candidate template ignored: could not match 'cauchy_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2219:5: note: candidate template ignored: could not match 'fisher_f_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2293:5: note: candidate template ignored: could not match 'student_t_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2462:5: note: candidate template ignored: could not match 'gamma_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2538:5: note: candidate template ignored: could not match 'weibull_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2612:5: note: candidate template ignored: could not match 'extreme_value_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2748:5: note: candidate template ignored: could not match 'discrete_distribution<_IntType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:2970:5: note: candidate template ignored: could not match 'piecewise_constant_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:3176:5: note: candidate template ignored: could not match 'piecewise_linear_distribution<_RealType>' against 'tensorflow::tpu::TPUCompileMetadataProto'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:108:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::basic_ostream<char>::__ostream_type &(*)(std::basic_ostream<char>::__ostream_type &)' (aka 'basic_ostream<char, std::char_traits<char>> &(*)(basic_ostream<char, std::char_traits<char>> &)') for 1st argument
      operator<<(__ostream_type& (*__pf)(__ostream_type&))
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:117:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::basic_ostream<char>::__ios_type &(*)(std::basic_ostream<char>::__ios_type &)' (aka 'basic_ios<char, std::char_traits<char>> &(*)(basic_ios<char, std::char_traits<char>> &)') for 1st argument
      operator<<(__ios_type& (*__pf)(__ios_type&))
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:127:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::ios_base &(*)(std::ios_base &)' for 1st argument
      operator<<(ios_base& (*__pf) (ios_base&))
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:166:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'long' for 1st argument
      operator<<(long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:170:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned long' for 1st argument
      operator<<(unsigned long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:174:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'bool' for 1st argument
      operator<<(bool __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:178:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'short' for 1st argument
      operator<<(short __n);
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:181:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned short' for 1st argument
      operator<<(unsigned short __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:189:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'int' for 1st argument
      operator<<(int __n);
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:192:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned int' for 1st argument
      operator<<(unsigned int __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:201:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'long long' for 1st argument
      operator<<(long long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:205:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'unsigned long long' for 1st argument
      operator<<(unsigned long long __n)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:220:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'double' for 1st argument
      operator<<(double __f)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:224:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'float' for 1st argument
      operator<<(float __f)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:232:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'long double' for 1st argument
      operator<<(long double __f)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:245:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'const void *' for 1st argument; take the address of the argument with &
      operator<<(const void* __p)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:250:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::nullptr_t' for 1st argument
      operator<<(nullptr_t)
      ^
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ostream:283:7: note: candidate function not viable: no known conversion from 'tensorflow::tpu::TPUCompileMetadataProto' to 'std::basic_ostream<char>::__streambuf_type *' (aka 'basic_streambuf<char, std::char_traits<char>> *') for 1st argument
      operator<<(__streambuf_type* __sb);
      ^
5 warnings and 4 errors generated.
``` Hi @wonjeon, can you ensure your system is updated to a tested build configuration for your system: https://www.tensorflow.org/install/source#tested_build_configurations specifically it seems your Clang is out of date (we tested against 16.0). Also what does ubuntu1.1 mean? Reason being I don't usually see Ubuntu versions that aren't 22.XX LTS, 20.XX LTS, 18.XX LTS etc. Thanks for your help. This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62730">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62730">No</a>

### 1. System information

- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 22.04.3 LTS
- TensorFlow installation (pip package or built from source): build from source
- TensorFlow library (version, if pip package or github SHA, if built from source):  commit id 2454fa808a6

### 2. Code

Provide code to help us reproduce your issues using one of the following options:

#### Option A: Reference colab notebooks

1)  Reference [TensorFlow Model Colab](https://colab.research.google.com/gist/ymodak/e96a4270b953201d5362c61c1e8b78aa/tensorflow-datasets.ipynb?authuser=1): Demonstrate how to build your TF model.
2)  Reference [TensorFlow Lite Model Colab](https://colab.research.google.com/gist/ymodak/0dfeb28255e189c5c48d9093f296e9a8/tensorflow-lite-debugger-colab.ipynb): Demonstrate how to convert your TF model to a TF Lite model (with quantization, if used) and run TFLite Inference (if possible).

```
(You can paste links or attach files by dragging & dropping them below)
- Provide links to your updated versions of the above two colab notebooks.
- Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model.
```

#### Option B: Paste your code here or provide a link to a custom end-to-end colab

```
$ bazel build  -j tensorflow/compiler/mlir/...
...
ERROR: /home/.../tensorflow/tensorflow/core/tfrt/graph_executor/BUILD:27:11: Compiling tensorflow/core/tfrt/graph_executor/graph_execution_options.cc failed: (Exit 1): clang failed: error executing command (from target //tensorflow/core/tfrt/graph_executor:graph_execution_options) /usr/lib/llvm-14/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 ... (remaining 241 arguments skipped)
In file included from tensorflow/core/tfrt/graph_executor/graph_execution_options.cc:19:
external/com_google_absl/absl/log/log.h:199:9: warning: 'LOG' macro redefined [-Wmacro-redefined]
#define LOG(severity) ABSL_LOG_INTERNAL_LOG_IMPL(_##severity)
        ^
external/local_tsl/tsl/platform/default/logging.h:165:9: note: previous definition is here
#define LOG(severity) _TF_LOG_##severity
        ^
In file included from tensorflow/core/tfrt/graph_executor/graph_execution_options.cc:19:
external/com_google_absl/absl/log/log.h:237:9: warning: 'LOG_EVERY_N' macro redefined [-Wmacro-redefined]
#define LOG_EVERY_N(severity, n) \
        ^
external/local_tsl/tsl/platform/default/logging.h:278:9: note: previous definition is here
#define LOG_EVERY_N(severity, n)                       \
        ^
In file included from tensorflow/core/tfrt/graph_executor/graph_execution_options.cc:19:
external/com_google_absl/absl/log/log.h:245:9: warning: 'LOG_FIRST_N' macro redefined [-Wmacro-redefined]
#define LOG_FIRST_N(severity, n) \
        ^
external/local_tsl/tsl/platform/default/logging.h:284:9: note: previous definition is here
#define LOG_FIRST_N(severity, n)                       \
        ^
In file included from tensorflow/core/tfrt/graph_executor/graph_execution_options.cc:19:
external/com_google_absl/absl/log/log.h:253:9: warning: 'LOG_EVERY_POW_2' macro redefined [-Wmacro-redefined]
#define LOG_EVERY_POW_2(severity) \
        ^
external/local_tsl/tsl/platform/default/logging.h:290:9: note: previous definition is here
#define LOG_EVERY_POW_2(severity)                         \
        ^
In file included from tensorflow/core/tfrt/graph_executor/graph_execution_options.cc:19:
external/com_google_absl/absl/log/log.h:265:9: warning: 'LOG_EVERY_N_SEC' macro redefined [-Wmacro-redefined]
#define LOG_EVERY_N_SEC(severity, n_seconds) \
        ^
external/local_tsl/tsl/platform/default/logging.h:300:9: note: previous definition is here
#define LOG_EVERY_N_SEC(severity, n_seconds)                      \
        ^
tensorflow/core/tfrt/graph_executor/graph_execution_options.cc:131:16: error: no matching function for call to 'StrCat'
            << absl::StrCat(options.model_metadata)
               ^~~~~~~~~~~~
external/com_google_absl/absl/strings/str_cat.h:451:41: note: candidate function not viable: no known conversion from 'const tensorflow::SessionMetadata' to 'const absl::AlphaNum' for 1st argument
ABSL_MUST_USE_RESULT inline std::string StrCat(const AlphaNum& a) {
                                        ^
external/com_google_absl/absl/strings/str_cat.h:449:41: note: candidate function not viable: requires 0 arguments, but 1 was provided
ABSL_MUST_USE_RESULT inline std::string StrCat() { return std::string(); }
                                        ^
external/com_google_absl/absl/strings/str_cat.h:455:34: note: candidate function not viable: requires 2 arguments, but 1 was provided
ABSL_MUST_USE_RESULT std::string StrCat(const AlphaNum& a, const AlphaNum& b);
                                 ^
external/com_google_absl/absl/strings/str_cat.h:456:34: note: candidate function not viable: requires 3 arguments, but 1 was provided
ABSL_MUST_USE_RESULT std::string StrCat(const AlphaNum& a, const AlphaNum& b,
                                 ^
external/com_google_absl/absl/strings/str_cat.h:458:34: note: candidate function not viable: requires 4 arguments, but 1 was provided
ABSL_MUST_USE_RESULT std::string StrCat(const AlphaNum& a, const AlphaNum& b,
                                 ^
external/com_google_absl/absl/strings/str_cat.h:463:41: note: candidate function template not viable: requires at least 5 arguments, but 1 was provided
ABSL_MUST_USE_RESULT inline std::string StrCat(
                                        ^
5 warnings and 1 error generated.
INFO: Elapsed time: 27.129s, Critical Path: 24.43s
INFO: 1098 processes: 701 internal, 397 local.
FAILED: Build did NOT complete successfully
```

### 3. Failure after conversion
If the conversion is successful, but the generated model is wrong, then state what is wrong:

- Model produces wrong results and/or has lesser accuracy.
- Model produces correct results, but it is slower than expected.

### 4. (optional) RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.

### 5. (optional) Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
