tensorflow / serving

A flexible, high-performance serving system for machine learning models

Home Page:https://www.tensorflow.org/serving

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find 'ltmain.sh' when building Tensorflow serving in a docker container

Emeralddddd opened this issue · comments

Bug Report

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

System information

  • OS Platform and Distribution: Centos8
  • TensorFlow Serving installed from (source or binary): source
  • TensorFlow Serving version: 2.7.3

Describe the problem

When building Tensorflow serving from source, I pulled the tensorflow/serving:nightly-devel docker image and run ./tools/run_in_docker.sh bazel build -c opt tensorflow_serving/.... However, there is an error throwing by target @com_github_libevent_libevent//:libevent-srcs that required file './ltmain.sh' not found.

Exact Steps to Reproduce

pull the docker image and run ./tools/run_in_docker.sh bazel build -c opt tensorflow_serving/...

Source code / logs

This file is generated by libtoolize. I found that the automaker(version==1.15.1) and libtool(version==2.4.6-2) had already been installed correctly, and the libtoolize had run as below:

libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4' ```

Here is the stderr provided by Bazel

``` autoreconf: Entering directory
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:25: installing './compile'
configure.ac:33: installing './config.guess'
configure.ac:33: installing './config.sub'
configure.ac:13: installing './install-sh'
configure.ac:129: error: required file './ltmain.sh' not found
configure.ac:13: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: automake failed with exit status: 1 ```

@Emeralddddd,

Hi, I was not able to replicate the reported issue. I tried to building TF serving for source and it worked for me.
Can you please try once with latest nightly build and let us know if the issue persists.
Thank you!

Screen Shot 2022-11-30 at 3 02 25 PM

Closing this due to inactivity. Please take a look into the answers provided above, feel free to reopen and post your comments(if you still have queries on this). Thank you!