title: Cannot build tensorflow/io : Linking tensorflow_io/python/ops/libtensorflow_io_golang.so failed
body: <p>I am trying to build tensorflow io by following the guide <a href="https://github.com/tensorflow/io/blob/master/docs/development.md" rel="nofollow noreferrer">https://github.com/tensorflow/io/blob/master/docs/development.md</a></p>
  <p>Build command</p>
  <p><code>bazel build -s --verbose_failures $BAZEL_OPTIMIZATION //tensorflow_io/... //tensorflow_io_gcs_filesystem/...</code></p>
  <p>Error message</p>
  <pre><code>ERROR: /Users/myusername/Documents/programming/c++/tfio/io/tensorflow_io/BUILD:72:10: Linking tensorflow_io/python/ops/libtensorflow_io_golang.so failed: (Aborted): cc_wrapper.sh failed: error executing command 
    (cd /private/var/tmp/_bazel_myusername/90be77ef8c23afbcfd54d373ff9dcf4e/sandbox/darwin-sandbox/6105/execroot/org_tensorflow_io &amp;&amp; \
    exec env - \
      APPLE_SDK_PLATFORM=MacOSX \
      APPLE_SDK_VERSION_OVERRIDE=12.3 \
      PATH='/Users/myusername/Library/Caches/bazelisk/downloads/bazelbuild/bazel-5.0.0-darwin-x86_64/bin:/Users/myusername/Documents/programming/c++/tfio/io/tfiovirtual/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/myusername/.cargo/bin' \
      TF_HEADER_DIR=/Users/myusername/Documents/programming/c++/tfio/io/tfiovirtual/lib/python3.8/site-packages/tensorflow/include \
      TF_SHARED_LIBRARY_DIR=/Users/myusername/Documents/programming/c++/tfio/io/tfiovirtual/lib/python3.8/site-packages/tensorflow \
      TF_SHARED_LIBRARY_NAME=libtensorflow_framework.2.dylib \
      XCODE_VERSION_OVERRIDE=13.4.1.13F100 \
      ZERO_AR_DATE=1 \
    external/local_config_cc/cc_wrapper.sh @bazel-out/darwin-fastbuild/bin/tensorflow_io/python/ops/libtensorflow_io_golang.so-2.params)
  # Configuration: 816a4134ca568b00b3f81c84f68d5bbe2f1620e0cbd64c10ac7b5bae891c2d7e
  # Execution platform: @local_execution_config_platform//:platform
  </code></pre>
  <p>code that cause the error</p>
  <pre><code>
  cc_binary(
      name = &quot;python/ops/libtensorflow_io_golang.so&quot;,
      copts = tf_io_copts(),
      linkshared = 1,
      deps = [
          &quot;//tensorflow_io/core:prometheus_ops&quot;,
      ],
  )
  </code></pre>
  <p><code>pip list</code></p>
  <pre><code>Package                      Version
  ---------------------------- ---------
  absl-py                      1.2.0
  astunparse                   1.6.3
  cachetools                   5.2.0
  certifi                      2022.6.15
  charset-normalizer           2.1.0
  flatbuffers                  1.12
  gast                         0.4.0
  google-auth                  2.9.1
  google-auth-oauthlib         0.4.6
  google-pasta                 0.2.0
  grpcio                       1.47.0
  h5py                         3.7.0
  idna                         3.3
  importlib-metadata           4.12.0
  keras                        2.9.0
  Keras-Preprocessing          1.1.2
  libclang                     14.0.1
  Markdown                     3.4.1
  MarkupSafe                   2.1.1
  numpy                        1.23.1
  oauthlib                     3.2.0
  opt-einsum                   3.3.0
  packaging                    21.3
  pip                          22.2
  protobuf                     3.19.4
  pyasn1                       0.4.8
  pyasn1-modules               0.2.8
  pyparsing                    3.0.9
  requests                     2.28.1
  requests-oauthlib            1.3.1
  rsa                          4.9
  setuptools                   49.2.1
  six                          1.16.0
  tensorboard                  2.9.1
  tensorboard-data-server      0.6.1
  tensorboard-plugin-wit       1.8.1
  tensorflow                   2.9.1
  tensorflow-estimator         2.9.0
  tensorflow-io-gcs-filesystem 0.26.0
  termcolor                    1.1.0
  typing_extensions            4.3.0
  urllib3                      1.26.11
  Werkzeug                     2.2.0
  wheel                        0.37.1
  wrapt                        1.14.1
  zipp                         3.8.1
  </code></pre>
  <p>Mac version
  <code>12.4</code></p>
  <p>python version
  <code>Python 3.8.9</code></p>
  <p>pip version</p>
  <p><code>pip 22.2 from /Users/myusername/Documents/programming/c++/tfio/io/tfiovirtual/lib/python3.8/site-packages/pip (python 3.8)</code></p>
  <p>Does anyone know how to resolve this, should I pin my tensorflow version to some other version?</p>
  <p>Thanks</p>