uvdl / debian-var

0 stars 1 forks source link

transient failures lead to inconsistent builds #3

Open bvacaliuc opened 5 years ago

bvacaliuc commented 5 years ago

Inspecting the build log, I observed this:

I: Get and unpack iMV CODEC libraries
--2019-03-04 18:31:29--  http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.3.5.bin
Resolving www.freescale.com (www.freescale.com)... 23.218.200.187
Connecting to www.freescale.com (www.freescale.com)|23.218.200.187|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.3.5.bin [following]
--2019-03-04 18:31:29--  http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.3.5.bin
Resolving www.nxp.com (www.nxp.com)... 104.92.26.17
Connecting to www.nxp.com (www.nxp.com)|104.92.26.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/home/cades/debian-var/src/imx/imx-codec-4.3.5.bin’

     0K .......... .......... .......... .......... .......... 1.59M
<snip>
   500K .......... ..                                          15.4M=22s

2019-03-04 18:31:51 (23.0 KB/s) - ‘/home/cades/debian-var/src/imx/imx-codec-4.3.5.bin’ saved [524288]

Welcome to NXP imx-codec-4.3.5.bin

WARNING: EULA has been auto-accepted; this imply you agree with it anyway.
Unpacking file ..........................................................................................................................................................................................................................................................
bzip2: Data integrity error when decompressing.
    Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

...ERROR: 
Signal caught, cleaning up

However, an earlier build showed this:

I: Get and unpack iMV CODEC libraries
--2019-03-01 16:35:34--  http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.3.5.bin
Resolving www.freescale.com (www.freescale.com)... 23.8.17.13
Connecting to www.freescale.com (www.freescale.com)|23.8.17.13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.3.5.bin [following]
--2019-03-01 16:35:34--  http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.3.5.bin
Resolving www.nxp.com (www.nxp.com)... 104.92.26.17
Connecting to www.nxp.com (www.nxp.com)|104.92.26.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/home/cades/debian-var/src/imx/imx-codec-4.3.5.bin’

     0K .......... .......... .......... .......... .......... 1.62M
<snip>
  9550K .......... .......... .......... .......... ....        178M=3.3s

2019-03-01 16:35:37 (2.83 MB/s) - ‘/home/cades/debian-var/src/imx/imx-codec-4.3.5.bin’ saved [9824265]

Welcome to NXP imx-codec-4.3.5.bin

WARNING: EULA has been auto-accepted; this imply you agree with it anyway.
Unpacking file ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... done

A transient download failure should not leave the SD card missing a selected component.

bvacaliuc commented 5 years ago

This issue leads to missing libraries and a non-functional OpenGL/OpenCL subsystem:

I: install gpu libs
/chroot_script_imx-gpu.sh: line 17: cd: /usr/local/src/imx/imx-gpu-viv*: No such file or directory
/bin/cp: cannot stat 'gpu-core/etc/Vivante.icd': No such file or directory
/bin/cp: cannot stat 'gpu-core/usr/include/*': No such file or directory
/bin/cp: cannot stat 'gpu-core/usr/lib/*': No such file or directory
/bin/cp: cannot stat 'gpu-demos/opt/viv_samples/*': No such file or directory
/bin/cp: cannot stat 'gpu-tools/gmem-info/usr/bin/*': No such file or directory
I: update mesa symbolic links
I: force mesa symbolic links
I: install xf86-video-imx-vivante libs
In file included from vivante_gal/vivante_gal_gpu.c:29:0:
vivante_gal/vivante_priv.h:36:20: fatal error: gc_hal.h: No such file or directory
 #include "gc_hal.h"
                    ^
compilation terminated.
make[1]: *** [vivante_gal/vivante_gal_gpu.o] Error 1
make: *** [EXA] Error 2
/bin/cp: cannot stat '/usr/local/src/imx/xf86-video-imx-vivante/EXA/src/vivante_drv.so': No such file or directory
make: *** [install] Error 1