bitbake tensorflow-lite is failed!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bitbake tensorflow-lite is failed!

Jump to solution
4,780 Views
Takashi_Kashiwagi
Senior Contributor I

Hi Community.

I can't download from https://bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz .

( /path/to/tensorflow/contrib/lite/tools/make/download_dependencies.sh is failed)

To me, "https://bitbucket.org/eigen/" looks no repository. 

How do I patch download_dependencies.sh?

 

Supplementary explanation:

I built a new environment and did "bitbake fsl-image-qt5". Then I failed with "tensorflow-lite".

And Log is as follows.

```

$ bitbake tensorflow-lite -c do_configure
Loading cache: 100% |####################################################################################################################################| Time: 0:00:00
Loaded 3603 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mm-var-dart"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "4.19-thud"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
~~~

Initialising tasks: 100% |###############################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Found 0 Missed 0 Current 35 (0% match, 100% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: tensorflow-lite-1.12.0-r0 do_configure: Function failed: do_configure (log file is located at /home/tkashi/ctj-yocto/digital-mixer/build/tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.0-r0/temp/log.do_configure.28452)
ERROR: Logfile of failure stored in: /home/tkashi/ctj-yocto/digital-mixer/build/tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.0-r0/temp/log.do_configure.28452
Log data follows:
| DEBUG: Executing shell function do_configure
| downloading https://bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz
|
| gzip: stdin: unexpected end of file
| tar: Child returned status 1
| tar: Error is not recoverable: exiting now
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/tkashi/ctj-yocto/digital-mixer/build/tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.0-r0/temp/log.do_configure.28452)
ERROR: Task (/home/tkashi/ctj-yocto/digital-mixer/sources/meta-fsl-bsp-release/imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_1.12.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 275 tasks of which 274 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
/home/tkashi/ctj-yocto/digital-mixer/sources/meta-fsl-bsp-release/imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_1.12.0.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

```

Best Regards,

T.Kashiwagi

0 Kudos
1 Solution
4,711 Views
yunpuwu7
Contributor I

Actually, you can directly feed a feasible address like "https://mirror.bazel.build/bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz".

So, in the */tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.0-r0/git/tensorflow/contrib/makefile/download_dependencies.sh,

replace "$(grep -o 'http.*bitbucket.org/eigen/eigen/get/.*tar\.gz' "${BZL_FILE_PATH}" | grep -v mirror.bazel | head -n1)"

with "https://mirror.bazel.build/bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz".

It should work!

View solution in original post

5 Replies
4,706 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

    The compilation error of tensorflow-lite is caused by your bad network environment. I handled this problem when I compiled L5.4.3_1.0.0. You can also handle it in a similar way.

    https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Compiling-L5-4-3-1-0-0-BSP-On-Ubuntu-180...

 

Have a nice day!

B.R,

weidong

0 Kudos
4,712 Views
yunpuwu7
Contributor I

Actually, you can directly feed a feasible address like "https://mirror.bazel.build/bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz".

So, in the */tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.0-r0/git/tensorflow/contrib/makefile/download_dependencies.sh,

replace "$(grep -o 'http.*bitbucket.org/eigen/eigen/get/.*tar\.gz' "${BZL_FILE_PATH}" | grep -v mirror.bazel | head -n1)"

with "https://mirror.bazel.build/bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz".

It should work!

2,845 Views
steven_zhang
Contributor V

i changed link to the sorfware site,but it seens the check sam is not correct.

 

steven_zhang_2-1648012560705.png

 

 

0 Kudos
4,218 Views
swa
Contributor I

ERROR: tensorflow-lite-1.12.0-r0 do_configure: Function failed: do_configure (log file is located at /home/fsl-arm-yocto-bsp/build_ML/tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.0- rO/temp/log.do_configure.8568)

ERROR: Logfile of failure stored in: /home/fsl-arm-yocto-bsp/build_ML/tmp/work/aarch64-poky-linuxnensorflow-lite/1.12.040/temp/log.do_configure.8568

Log data follows:

I DEBUG: Executing shell function do_configure

I downloading https://bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz gzip: stdin: unexpected end of file

I tar: Child returned status 1 I tar: Error is not recoverable: exiting now I WARNING: exit code 2 from a shell command. I ERROR: Function failed: do_configure (log file is located at /home/fsl-arm-yocto-bsp/build_ML/tmp/work/aarch64-poky-linux/tensorflow-lite/1.12.040/temp/log.do_configure.8568) sni

ERROR: Task (Thome/fsl-arm-yocto-bsp/sources/meta-imx-machinelearninerecipes-libraries/tensorflow-lite/tensorflow-lite_1.12.0.bb:do_configure) failed with exit code '1'

 

Could you help me fix this issue- above solution did not work for me

0 Kudos
4,774 Views
Takashi_Kashiwagi
Senior Contributor I

Hi Community.

 

I was able to find the file in the backup of the virtual machine and bitbake it.

In summary,

Best Regards,

T.Kashiwagi

 

0 Kudos