tensorflow / serving

A flexible, high-performance serving system for machine learning models
https://www.tensorflow.org/serving
Apache License 2.0
6.18k stars 2.19k forks source link

Couldn't build file external/org_tensorflow/tensorflow/core/util/version_info.cc #2146

Closed dengguang2012 closed 1 year ago

dengguang2012 commented 1 year ago

Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow-serving

If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


Feature Request

If this is a feature request, please fill out the following form in full:

Describe the problem the feature is intended to solve

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Bug Report

If this is a bug report, please fill out the following form in full:

System information

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow Serving.

Exact Steps to Reproduce

Please include all steps necessary for someone to reproduce this issue on their own machine. If not, skip this section.

Source code / 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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

when i build serving on centos , cuda 11.2 on serving r2.8.4 code

use

 bazel build --color=yes --curses=yes --config=cuda --copt="-fPIC"  --verbose_failures --output_filter=DONT_MATCH_ANYTHING --config=nativeopt              tensorflow_serving/model_servers:tensorflow_model_server

ERROR: /home/deploy/.cache/bazel/_bazel_deploy/b9bac9218731a57fe4d86ce073192f1c/external/org_tensorflow/tensorflow/core/util/BUILD:379:24: Couldn't build file external/org_tensorflow/tensorflow/core/util/version_info.cc: error executing shell command: '/bin/bash -c bazel-out/host/bin/external/org_tensorflow/tensorflow/tools/git/gen_git_source --generate "$@" --git_tag_override=${GIT_TAG_OVERRIDE:-} external/local_config_git/gen/spec.json externa...' failed (Profiling timer expired): bash failed: error executing command (cd /home/deploy/.cache/bazel/_bazel_deploy/b9bac9218731a57fe4d86ce073192f1c/execroot/tf_serving && \ exec env - \ LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:/home/deploy/kk-tf-servers-comic/zookeeper-client/build/:/usr/local/cuda/lib64/stubs:/usr/local/cuda/extras/CUPTI/lib64:/root/isl-0.15/.libs/:/usr/local/cuda/lib64/:/root/TensorRT-7.2.2.3/lib::/usr/local/python3.7.2/openssl/lib \ PATH=/usr/local/sbin:/usr/local/bin:/root/TensorRT-7.2.2.3/bin:/home/deploy/bin:/home/deploy/anaconda3/bin/:/usr/local/bin/:/usr/local/python3.7.2/bin/python3.7:/usr/local/jdk1.8.0_191/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/python2.7.15/bin/:/usr/local/python3.7.2/bin/::/usr/local/swig-3.0.12/bin:/usr/local/jdk1.8.0_191/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/python2.7.15/bin/:/usr/local/python3.7.2/bin/::/home/deploy/bin \ /bin/bash -c 'bazel-out/host/bin/external/org_tensorflow/tensorflow/tools/git/gen_git_source --generate "$@" --git_tag_override=${GIT_TAG_OVERRIDE:-}' '' external/local_config_git/gen/spec.json external/local_config_git/gen/head external/local_config_git/gen/branch_ref bazel-out/host/bin/external/org_tensorflow/tensorflow/core/util/version_info.cc)

singhniraj08 commented 1 year ago

@dengguang2012,

The recommended approach to building from source is to use Docker. The TensorFlow Serving Docker development images encapsulate all the dependencies you need to build your own version of TensorFlow Serving. You have to append bazel build command with tools/run_in_docker.sh as shown in below tutorial. Please try appending tools/run_in_docker.sh to bazel build command and let us know if helps. Thank you!

tools/run_in_docker.sh bazel build -c opt tensorflow_serving/...

Ref: TF Serving Build from Source

github-actions[bot] commented 1 year ago

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

github-actions[bot] commented 1 year ago

This issue was closed due to lack of activity after being marked stale for past 7 days.

google-ml-butler[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No