google-coral / pycoral

Python API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
351 stars 145 forks source link

FAILED: Build did NOT complete successfully Makefile:155: recipe for target 'pybind' failed #9

Closed radu-at closed 3 years ago

radu-at commented 3 years ago

I'm trying to build pycoral on a Debian 10 machine, I have the Mini PCIe Accelerator connected on the Mini PCIe for the WiFi card on a laptop AMD Turion(tm) II Dual-Core Mobile M520 with Docker

docker version
Client: Docker Engine - Community
 Version:           20.10.1
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        831ebea
 Built:             Tue Dec 15 04:34:48 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true
uname -r
4.19.0-13-amd64
lsmod | grep apex
apex                   20480  0
gasket                118784  1 apex
lspci -x | grep 089a
08:00.0 System peripheral: Device 1ac1:089a
ls /dev/apex_0
/dev/apex_0
scripts/build.sh
scripts/build_deb.sh

both scripts failed on the same way, any advise will be appreciated:

(cd /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execroot/pycoral && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python3 \
  /usr/bin/ar @bazel-out/k8-opt/bin/external/ruy/ruy/libhave_built_path_for_avx2_fma.a-2.params)
ERROR: /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/org_tensorflow/tensorflow/lite/schema/BUILD:79:22: Generating flatbuffer files for schema_fbs_srcs: @org_tensorflow//tensorflow/lite/schema:schema_fbs_srcs failed (Illegal instruction): process-wrapper failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/sandbox/processwrapper-sandbox/225/execroot/pycoral && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
    PYTHON_BIN_PATH=/usr/bin/python3 \
    TMPDIR=/tmp \
  /root/.cache/bazel/_bazel_root/install/ba7765e6f39a679257358196b530585b/process-wrapper '--timeout=0' '--kill_delay=15' /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; for f in external/org_tensorflow/tensorflow/lite/schema/schema.fbs; do bazel-out/host/bin/external/flatbuffers/flatc --no-union-value-namespacing --gen-object-api  -c -o bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/lite/schema $f; done') process-wrapper failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/sandbox/processwrapper-sandbox/225/execroot/pycoral && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
    PYTHON_BIN_PATH=/usr/bin/python3 \
    TMPDIR=/tmp \
  /root/.cache/bazel/_bazel_root/install/ba7765e6f39a679257358196b530585b/process-wrapper '--timeout=0' '--kill_delay=15' /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; for f in external/org_tensorflow/tensorflow/lite/schema/schema.fbs; do bazel-out/host/bin/external/flatbuffers/flatc --no-union-value-namespacing --gen-object-api  -c -o bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/lite/schema $f; done')
/bin/bash: line 1:  1336 Illegal instruction     (core dumped) bazel-out/host/bin/external/flatbuffers/flatc --no-union-value-namespacing --gen-object-api -c -o bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/lite/schema $f
Target //src:_pywrap_coral failed to build
INFO: Elapsed time: 345.240s, Critical Path: 30.73s
INFO: 225 processes: 225 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
dmesg

[ 8216.925858] traps: python3[2959] trap invalid opcode ip:7f4b587d4923 sp:7fffd78925a0 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7f4b585ae000+288000]
[ 8357.235313] traps: python3[2973] trap invalid opcode ip:7fc249581923 sp:7ffdf01e4b70 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7fc24935b000+288000]
[ 8418.397008] traps: python3[3037] trap invalid opcode ip:7f55bdbae923 sp:7ffefe36bd30 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7f55bd988000+288000]
[ 8528.418258] traps: python3[3041] trap invalid opcode ip:7f51b6691923 sp:7ffec4b59810 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7f51b646b000+288000]
[ 8629.816238] traps: python3[3141] trap invalid opcode ip:7f0fbad8d923 sp:7ffe04982640 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7f0fbab67000+288000]
[ 8744.007822] traps: python3[3151] trap invalid opcode ip:7f014fd8c923 sp:7fff0f5e57e0 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7f014fb66000+288000]
[ 8924.998261] traps: python3[3345] trap invalid opcode ip:7f032ff72923 sp:7ffe76fa5850 error:0 in _edgetpu_cpp_wrapper.cpython-37m-x86_64-linux-gnu.so[7f032fd4c000+288000]
[ 9416.759505] audit: type=1400 audit(1609512897.912:21): apparmor="STATUS" operation="profile_load" profile="unconfined" name="docker-default" pid=5571 comm="apparmor_parser"