Repository: mlcommons/inference
Issue: ck install package:lib-tensorflow-1.13.1-src-static  failed.
Root cause: Environment Incompatibility

root@ubuntu:/home/mlperf# ck install package:lib-tensorflow-1.13.1-src-static
CK error: [package] can't find path to CK entry "package:lib-tensorflow-1.13.1-src-static" (?:1dc07ee0f4742028:?)!
@psyhtest 

@kubowuhao Are you following [these MobileNet instructions](https://github.com/mlperf/inference/tree/master/edge/object_classification/mobilenets/tf-cpp)? Have you followed the [common installation instructions](https://github.com/mlperf/inference/blob/master/edge/object_classification/mobilenets/README.md#installation) first?

If the answer is yes, please try:
```
$ ck pull all
$ ck pull repo:ck-tensorflow
$ ck pull repo:ck-mlperf
$ ck install package:lib-tensorflow-1.13.1-src-static
```

@psyhtest 
Hi, Anton
      Thank you for your reply.
      I still have problem as below. And I have try cmd "ck pull repo:ck-autotuning" .

   root@ubuntu:~/CK# ck pull repo:ck-tensorflow
******************************************************************
Updating repo "ck-tensorflow" ...

  Local path: /root/CK/ck-tensorflow
  URL:        https://github.com/ctuning/ck-tensorflow

  cd /root/CK/ck-tensorflow
  git pull

fatal: Not a git repository (or any of the parent directories): .git


 WARNING: repository update likely failed OR IN A DIFFERENT BRANCH/CHECKOUT (git exit code: 32768)

  Would you like to continue (Y/n)?: Y
  ========================================
  Checking dependencies on other repos ...

root@ubuntu:~/CK# ck install package:lib-tensorflow-1.13.1-src-static
CK error: [package] can't find path to CK entry "package:lib-tensorflow-1.13.1-src-static" (?:1dc07ee0f4742028:?)!


> @kubowuhao Are you following [these MobileNet instructions](https://github.com/mlperf/inference/tree/master/edge/object_classification/mobilenets/tf-cpp)? Have you followed the [common installation instructions](https://github.com/mlperf/inference/blob/master/edge/object_classification/mobilenets/README.md#installation) first?
> 
> If the answer is yes, please try:
> 
> ```
> $ ck pull all
> $ ck pull repo:ck-tensorflow
> $ ck pull repo:ck-mlperf
> $ ck install package:lib-tensorflow-1.13.1-src-static
> ```

Hi, Anton

    I just use "git clone https://github.com/ctuning/ck-tensorflow", and it seems fixed.


> > @kubowuhao Are you following [these MobileNet instructions](https://github.com/mlperf/inference/tree/master/edge/object_classification/mobilenets/tf-cpp)? Have you followed the [common installation instructions](https://github.com/mlperf/inference/blob/master/edge/object_classification/mobilenets/README.md#installation) first?
> > If the answer is yes, please try:
> > ```
> > $ ck pull all
> > $ ck pull repo:ck-tensorflow
> > $ ck pull repo:ck-mlperf
> > $ ck install package:lib-tensorflow-1.13.1-src-static
> > ```
> 
> Hi, Anton
> 
> ```
> I just use "git clone https://github.com/ctuning/ck-tensorflow", and it seems fixed.
> ```

but, another problem.

  inflating: /tmp/tmp.f8pldNkUip/gemmlowp-38ebac7b059e84692f53e5938f97a9943c120d98/todo/neon-depth-major-sources-packing.txt  
  inflating: /tmp/tmp.f8pldNkUip/gemmlowp-38ebac7b059e84692f53e5938f97a9943c120d98/todo/remove-default-template-param-values.txt  
  inflating: /tmp/tmp.f8pldNkUip/gemmlowp-38ebac7b059e84692f53e5938f97a9943c120d98/todo/x86-kernels.txt  
downloading https://github.com/google/googletest/archive/release-1.8.0.tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
cp: cannot stat '/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/src/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a': No such file or directory
cp: cannot stat '/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/src/tensorflow/contrib/makefile/gen/protobuf/lib/libprotobuf.a': No such file or directory
cp: cannot stat '/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/src/tensorflow/contrib/makefile/gen/protobuf/lib/libprotobuf-lite.a': No such file or directory
cp: cannot stat '/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/src/tensorflow/contrib/makefile/downloads/nsync/builds/default.linux.c++11/libnsync.a': No such file or directory

Setting up environment for installed package ...
  (full path = /root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/lib/libtensorflow-core.a)

  Software entry found: lib.tensorflow.static (6ad9e190eb44aa3b)

  -----------------------------------
  Resolving software dependencies ...

*** Dependency 1 = compiler (C++ compiler):

    Resolved. CK environment UID = 2e7ac1984807be5f (detected version 5.4.0)
  -----------------------------------
CK error: [package] software not found in a specified path (/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/lib/libtensorflow-core.a)!


@kubowuhao 
I have the same problem. Is there any solution？？
CK error: [package] software not found in a specified path (/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/lib/libtensorflow-core.a)!

@kubowuhao CK just provides convenient wrappers around tools but it can't magically fix them! (Oh, it would be so nice to have everything fixed automatically! One day, one day...)

It appears that the problem occurs early on during the installation of TensorFlow. Can please try the failing step manually:
```
$ cd /tmp
$ wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
$ md5sum release-1.8.0.tar.gz 
16877098823401d1bf2ed7891d7dce36  release-1.8.0.tar.gz
$ tar xvzf release-1.8.0.tar.gz
```
(Actually, I don't exactly know the next step, just guessing here.)

Can you share some details about your Linux distro? Is it Ubuntu 16.04 or similar? (Also guessing from the version of gcc.)

What are the tool versions?
```
$ tar --version
tar (GNU tar) 1.28
$ gunzip --version
gunzip (gzip) 1.6
```

By the way, if you are just getting started with CK, do you mind to to try out the [TFLite variant](https://github.com/mlperf/inference/tree/master/edge/object_classification/mobilenets/tflite) first? It is much simpler and faster to build (e.g. ~ 1 minute on a reasonable x86 machine).

@huihuima Do you also get the message about `tar`?
```
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
```

If not, your error might be entirely different. You would typically get:
```
CK error: [package] software not found in a specified path (/root/CK-TOOLS/lib-tensorflow-src-static-1.13.1-gcc-5.4.0-linux-64/lib/libtensorflow-core.a)!
```
with any build problem.

> By the way, if you are just getting started with CK, do you mind to to try out the [TFLite variant](https://github.com/mlperf/inference/tree/master/edge/object_classification/mobilenets/tflite) first? It is much simpler and faster to build (e.g. ~ 1 minute on a reasonable x86 machine).

ok， I will try it. Thanks!

Sure, do let me know how it goes.

I actually posted a similar issue with TFLite v1.13 to the Collective Knowledge Slack on 26 March. It occurred on two different machines with Ubuntu 16.04 and 18.04. My notes say that the issue disappeared after a reboot, but perhaps it was just some time later. I suspect this could happen due to an interrupted download.

Hi @kubowuhao, Do you have any further issues, or can this case be closed?

> Hi @kubowuhao, Do you have any further issues, or can this case be closed?

Hi @psyhtest ， It was closed， sorry for reply late.

I will try this again later, and if I have some more problem, I will ask for your help again. Thanks!