Cannot build interactive_graphviz
Hi @desenSunUBW ,

It seems you are using older Tf1.x version build which is not supported now. Since then build configurations also changed.

Please test with latest versions as per tested configurations attached [here](https://www.tensorflow.org/install/source#tested_build_configurations).In case of problem please come back with complete configuration details like OS, bazel version, compiler version and build command etc which helps better to test and analyse the issue.

Thank you! > Hi @desenSunUBW ,
> 
> It seems you are using older Tf1.x version build which is not supported now. Since then build configurations also changed.
> 
> Please test with latest versions as per tested configurations attached [here](https://www.tensorflow.org/install/source#tested_build_configurations).In case of problem please come back with complete configuration details like OS, bazel version, compiler version and build command etc which helps better to test and analyse the issue.
> 
> Thank you!

Hi @SuryanarayanaY , I upgraded my gcc version to 7.2.1 to use bazel-6.1.0 to compile interactive_graphviz in tensorflow r2.14. However, there were still some errors:
```
ERROR: /root/.cache/bazel/_bazel_root/416f10ed22bfff0f5a7b019527c9dfc7/external/com_google_protobuf/BUILD.bazel:27:11: Compiling src/google/protobuf/implicit_weak_message.cc [for tool] failed: (Exit 1): gcc failed: error executing command (from target @com_google_protobuf//:protobuf_lite) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 31 arguments skipped)
external/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc: In constructor 'constexpr google::protobuf::internal::ImplicitWeakMessageDefaultType::ImplicitWeakMessageDefaultType()':
external/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc:53:42: error: temporary of non-literal type 'google::protobuf::internal::ImplicitWeakMessage' in a constant expression
       : instance(ConstantInitialized{}) {}
                                          ^
In file included from external/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc:31:0:
external/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:58:23: note: 'google::protobuf::internal::ImplicitWeakMessage' is not literal because:
 class PROTOBUF_EXPORT ImplicitWeakMessage : public MessageLite {
                       ^~~~~~~~~~~~~~~~~~~
external/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:58:23: note:   'google::protobuf::internal::ImplicitWeakMessage' has a non-trivial destructor
Target //tensorflow/compiler/xla/tools:interactive_graphviz failed to build
Use --verbose_failures to see the command lines of failed build steps.
```
I built interactive_graphviz with the command "bazel build --experimental_repo_remote_exec tensorflow/compiler/xla/tools:interactive_graphviz". It would be helpful if you can give me some advice. @desenSunUBW  Upgrade to GCC 7.4 or newer version will fix the error. 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/61851">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/61851">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

r1.15

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I would like to use interactive_graphviz to check how xla works and why there's a memory increasing while I used it. However, when I tried to build it, I hit some errors that there're undefined references. Here's the detail about the errors:
```
ERROR: /workspace/tensorflow1.15/tensorflow/tensorflow/compiler/xla/tools/BUILD:219:13: Linking tensorflow/compiler/xla/tools/interactive_graphviz failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/interactive_graphviz-2.params
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'tensorflow::ProtoDebugString[abi:cxx11](tensorflow::DeviceAttributes const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'tensorflow::ProtoShortDebugString[abi:cxx11](tensorflow::ConfigProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::AlgorithmProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::InternalSwap(stream_executor::dnn::AlgorithmProto*)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::~AlgorithmProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::AlgorithmProto(stream_executor::dnn::AlgorithmProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::CopyFrom(stream_executor::dnn::TensorDescriptorProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::TensorDescriptorProto(stream_executor::dnn::TensorDescriptorProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::TensorDescriptorProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::clear_layout_oneof()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::~TensorDescriptorProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::InternalSwap(stream_executor::dnn::TensorDescriptorProto*)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::ConvolutionDescriptorProto::ConvolutionDescriptorProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::ConvolutionDescriptorProto::~ConvolutionDescriptorProto()'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::SubProcess(int)'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::SetProgram(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::Start()'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::~SubProcess()'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::SubProcess(int)'
bazel-out/k8-opt/bin/tensorflow/stream_executor/host/_objs/host_gpu_executor/host_gpu_executor.o:host_gpu_executor.cc:function stream_executor::host::HostExecutor::CreateDeviceDescription(int): error: undefined reference to 'tensorflow::profile_utils::CpuUtils::GetCycleCounterFrequency()'
collect2: error: ld returned 1 exit status
Target //tensorflow/compiler/xla/tools:interactive_graphviz failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4.118s, Critical Path: 3.69s
INFO: 3 processes: 3 internal.
FAILED: Build did NOT complete successfully
```


### Standalone code to reproduce the issue

```shell
Just run this compile instruction:

bazel build --experimental_repo_remote_exec tensorflow/compiler/xla/tools:interactive_graphviz
```
```


### Relevant log output

_No response_