NobuoTsukamoto / meta-tensorflow-lite

Yocto layer for TensorFlow Lite interpreter with Python / C++.
MIT License
33 stars 18 forks source link

OrangePiZero - compilation error #4

Closed r0ckyjoe closed 3 years ago

r0ckyjoe commented 3 years ago

Hello Tsukamoto, I tried to bake meta-tensorflow-lite for OrangePiZero but I got the following error.

pokyuser@41779627470d:/yocto-opizero/poky/build$ ### showing conf/local.conf ###pokyuser@41779627470d:/yocto-opizero/poky/build$ grep -v ^# conf/local.conf |grep -v ^$ MACHINE ??= "orange-pi-zero" DEFAULTTUNE = "cortexa7hf-neon-vfpv4" DISTRO ?= "poky" PACKAGE_CLASSES ?= "package_ipk" EXTRA_IMAGE_FEATURES ?= "debug-tweaks" USER_CLASSES ?= "buildstats image-mklibs image-prelink" PATCHRESOLVE = "noop" BB_DISKMON_DIRS ??= "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ ABORT,${TMPDIR},100M,1K \ ABORT,${DL_DIR},100M,1K \ ABORT,${SSTATE_DIR},100M,1K \ ABORT,/tmp,10M,1K" PACKAGECONFIG_append_pn-qemu-system-native = " sdl" CONF_VERSION = "1" BB_NUMBER_THREADS = "32" PARALLEL_MAKE = "-j 32" CORE_IMAGE_EXTRA_INSTALL += "bc htop opencv python3-opencv python3 python3-tensorflow-lite" pokyuser@41779627470d:/yocto-opizero/poky/build$ ### showing conf/bblayers.conf ### pokyuser@41779627470d:/yocto-opizero/poky/build$ grep -v ^# conf/bblayers.conf |grep -v ^$ POKY_BBLAYERS_CONF_VERSION = "2" BBPATH = "${TOPDIR}" BBFILES ?= "" BBLAYERS ?= " \ /yocto-opizero/poky/meta \ /yocto-opizero/poky/meta-poky \ /yocto-opizero/poky/meta-yocto-bsp \ /yocto-opizero/poky/meta-sunxi \ /yocto-opizero/poky/meta-openembedded/meta-oe \ /yocto-opizero/poky/meta-openembedded/meta-python \ /yocto-opizero/poky/meta-openembedded/meta-networking \ /yocto-opizero/poky/meta-openembedded/meta-multimedia \ /yocto-opizero/poky/meta-tensorflow-lite \ " pokyuser@41779627470d:/yocto-opizero/poky/build$ pokyuser@41779627470d:/yocto-opizero/poky/build$ pokyuser@41779627470d:/yocto-opizero/poky/build$ ### running bitbake core-image-minimal ### pokyuser@41779627470d:/yocto-opizero/poky/build$ bitbake core-image-minimal Loading cache: 100% |############################################| Time: 0:00:00 Loaded 3520 entries from dependency cache. NOTE: Resolving any missing task queue dependencies

Build Configuration: BB_VERSION = "1.48.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "orange-pi-zero" DISTRO = "poky" DISTRO_VERSION = "3.2.2" TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 callconvention-hard" TARGET_FPU = "hard" meta
meta-poky
meta-yocto-bsp = "gatesgarth:0298de9a8ac4be957397ef13ff1ab7babb0970c0" meta-sunxi = "master:9e53e57d754e1481d04960421f38c2906a3945fd" meta-oe
meta-python
meta-networking
meta-multimedia = "gatesgarth:945f062ff098dc9c8ba8d22c5eef88adec60730d" meta-tensorflow-lite = "master:40b0230405c009a1a74f85c77456bb5585caa7e3"

Initialising tasks: 100% |#######################################| Time: 0:00:02 Sstate summary: Wanted 10 Found 0 Missed 10 Current 1689 (0% match, 99% complete) NOTE: Executing Tasks ERROR: python3-tensorflow-lite-2.4.1-r0 do_compile: Execution of '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99' failed with exit code 1: arm build arm +++ dirname /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/build_pip_package.sh ++ cd /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package ++ pwd

Backtrace (metadata-relative locations):

1: do_compile, /yocto-opizero/poky/meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb, line 59

ERROR: Logfile of failure stored in: /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/log.do_compile.99 Log data follows: DEBUG: Executing shell function do_compile arm build arm +++ dirname /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/build_pip_package.sh ++ cd /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package ++ pwd + SCRIPT_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package + PYTHON=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + VERSION_SUFFIX= + export TENSORFLOW_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. + TENSORFLOW_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. + TENSORFLOW_LITE_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite ++ grep '_VERSION = ' /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/tools/pip_package/setup.py ++ cut -d= -f2 ++ sed 's/[ '\''-]//g' + TENSORFLOW_VERSION=2.4.1 + export PACKAGE_VERSION=2.4.1 + PACKAGE_VERSION=2.4.1 + BUILD_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + rm -rf /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + mkdir -p /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3/tflite_runtime + cp -r /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package/debian /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package/setup.py /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package/MANIFEST.in /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/python/interpreter_wrapper /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + cp /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/python/interpreter.py /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3/tflite_runtime + echo 'version = '\''2.4.1'\''' ++ git -C /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. describe + echo '__git_version__ = '\''0.6.0-98395-g85c8b2a817f'\''' + cd /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + case "${TENSORFLOW_TARGET}" in + [[ -n orange-pi-zero ]] + [[ -n '' ]] + /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py bdist bdist_wheel running bdist running bdist_dumb running build running build_py running build_ext make: Entering directory '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git' make: Nothing to be done for 'all'. make: Leaving directory '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git' building 'tflite_runtime._pywrap_tensorflow_interpreter_wrapper' extension creating build creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/interpreter_wrapper arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/interpreter_wrapper.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper.o --std=c++11 interpreter_wrapper/interpreter_wrapper.cc: In member function 'std::string tflite::interpreter_wrapper::InterpreterWrapper::TensorName(int) const': interpreter_wrapper/interpreter_wrapper.cc:305:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 305 if (!interpreter_ i >= interpreter_->tensors_size() i < 0) { ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorType(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:315:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 315 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorSize(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:333:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 333 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorSizeSignature(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:348:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 348 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorSparsityParameters(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:368:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 368 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorQuantization(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:379:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 379 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorQuantizationParameters(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:386:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 386 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject tflite::interpreter_wrapper::InterpreterWrapper::SetTensor(int, PyObject)': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:420:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 420 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::NodeInputs(int) const': interpreter_wrapper/interpreter_wrapper.cc:51:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 51 if (i >= interpreter_->nodes_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:499:3: note: in expansion of macro 'TFLITE_PY_NODES_BOUNDS_CHECK' 499 TFLITE_PY_NODES_BOUNDS_CHECK(i); ^~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::NodeOutputs(int) const': interpreter_wrapper/interpreter_wrapper.cc:51:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 51 if (i >= interpreter_->nodes_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:509:3: note: in expansion of macro 'TFLITE_PY_NODES_BOUNDS_CHECK' 509 TFLITE_PY_NODES_BOUNDS_CHECK(i); ^~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'std::string tflite::interpreter_wrapper::InterpreterWrapper::NodeName(int) const': interpreter_wrapper/interpreter_wrapper.cc:518:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 518 if (!interpreter_ i >= interpreter_->nodes_size() i < 0) { ^~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In function 'PyObject tflite::interpreter_wrapper::{anonymous}::CheckGetTensorArgs(tflite::Interpreter, int, TfLiteTensor*, int)': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:544:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 544 TFLITE_PY_TENSOR_BOUNDS_CHECK(tensor_index); ^~~~~~~~~ arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/interpreter_wrapper_pybind11.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper_pybind11.o --std=c++11 arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/numpy.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/numpy.o --std=c++11 arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/python_error_reporter.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_error_reporter.o --std=c++11 arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/python_utils.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_utils.o --std=c++11 creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/tflite_runtime arm-poky-linux-gnueabi-g++ -pthread -shared -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/yocto-opizero/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/yocto-opizero/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper.o build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper_pybind11.o build/temp.linux-x86_64-3.8/interpreter_wrapper/numpy.o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_error_reporter.o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_utils.o -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/make/gen/orange-pi-zero_x86_64/lib/ -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -ltensorflow-lite -o build/lib.linux-x86_64-3.8/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crti.o: No such file or directory /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtbeginS.o: No such file or directory /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lstdc++ /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lm /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lgcc_s /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lpthread /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lc /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lgcc_s /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtendS.o: No such file or directory /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status error: command 'arm-poky-linux-gnueabi-g++' failed with exit status 1 WARNING: /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99:163 exit 1 from '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/build_pip_package.sh' WARNING: Backtrace (BB generated script): #1: do_compile, /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99, line 163 #2: main, /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99, line 167 ERROR: Execution of '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99' failed with exit code 1: arm build arm +++ dirname /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/build_pip_package.sh ++ cd /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package ++ pwd + SCRIPT_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package + PYTHON=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + VERSION_SUFFIX= + export TENSORFLOW_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. + TENSORFLOW_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. + TENSORFLOW_LITE_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite ++ grep '_VERSION = ' /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/tools/pip_package/setup.py ++ cut -d= -f2 ++ sed 's/[ '\''-]//g' + TENSORFLOW_VERSION=2.4.1 + export PACKAGE_VERSION=2.4.1 + PACKAGE_VERSION=2.4.1 + BUILD_DIR=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + rm -rf /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + mkdir -p /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3/tflite_runtime + cp -r /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package/debian /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package/setup.py /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package/MANIFEST.in /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/python/interpreter_wrapper /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + cp /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/python/interpreter.py /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3/tflite_runtime + echo 'version = '\''2.4.1'\''' ++ git -C /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. describe + echo '__git_version__ = '\''0.6.0-98395-g85c8b2a817f'\''' + cd /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/gen/tflite_pip//yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 + case "${TENSORFLOW_TARGET}" in + [[ -n orange-pi-zero ]] + [[ -n '' ]] + /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py bdist bdist_wheel running bdist running bdist_dumb running build running build_py running build_ext make: Entering directory '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git' make: Nothing to be done for 'all'. make: Leaving directory '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git' building 'tflite_runtime._pywrap_tensorflow_interpreter_wrapper' extension creating build creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/interpreter_wrapper arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/interpreter_wrapper.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper.o --std=c++11 interpreter_wrapper/interpreter_wrapper.cc: In member function 'std::string tflite::interpreter_wrapper::InterpreterWrapper::TensorName(int) const': interpreter_wrapper/interpreter_wrapper.cc:305:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 305 if (!interpreter_ i >= interpreter_->tensors_size() i < 0) { ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorType(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:315:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 315 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorSize(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:333:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 333 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorSizeSignature(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:348:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 348 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorSparsityParameters(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:368:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 368 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorQuantization(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:379:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 379 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::TensorQuantizationParameters(int) const': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:386:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 386 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject tflite::interpreter_wrapper::InterpreterWrapper::SetTensor(int, PyObject)': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:420:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 420 TFLITE_PY_TENSOR_BOUNDS_CHECK(i); ^~~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::NodeInputs(int) const': interpreter_wrapper/interpreter_wrapper.cc:51:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 51 if (i >= interpreter_->nodes_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:499:3: note: in expansion of macro 'TFLITE_PY_NODES_BOUNDS_CHECK' 499 TFLITE_PY_NODES_BOUNDS_CHECK(i); ^~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'PyObject* tflite::interpreter_wrapper::InterpreterWrapper::NodeOutputs(int) const': interpreter_wrapper/interpreter_wrapper.cc:51:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 51 if (i >= interpreter_->nodes_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:509:3: note: in expansion of macro 'TFLITE_PY_NODES_BOUNDS_CHECK' 509 TFLITE_PY_NODES_BOUNDS_CHECK(i); ^~~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In member function 'std::string tflite::interpreter_wrapper::InterpreterWrapper::NodeName(int) const': interpreter_wrapper/interpreter_wrapper.cc:518:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 518 if (!interpreter_ i >= interpreter_->nodes_size() i < 0) { ^~~~~~~ interpreter_wrapper/interpreter_wrapper.cc: In function 'PyObject tflite::interpreter_wrapper::{anonymous}::CheckGetTensorArgs(tflite::Interpreter, int, TfLiteTensor*, int)': interpreter_wrapper/interpreter_wrapper.cc:43:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 43 if (i >= interpreter_->tensors_size() i < 0) { \ ^ interpreter_wrapper/interpreter_wrapper.cc:544:3: note: in expansion of macro 'TFLITE_PY_TENSOR_BOUNDS_CHECK' 544 TFLITE_PY_TENSOR_BOUNDS_CHECK(tensor_index); ^~~~~~~~~ arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/interpreter_wrapper_pybind11.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper_pybind11.o --std=c++11 arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/numpy.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/numpy.o --std=c++11 arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/python_error_reporter.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_error_reporter.o --std=c++11 arm-poky-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= -fPIC -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../.. -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/pip_package -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/numpy/core/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/../../../../tensorflow/lite/tools/make/downloads/absl -I/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot/usr/include/python3.8 -c interpreter_wrapper/python_utils.cc -o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_utils.o --std=c++11 creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/tflite_runtime arm-poky-linux-gnueabi-g++ -pthread -shared -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/yocto-opizero/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/yocto-opizero/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0=/usr/src/debug/python3-tensorflow-lite/2.4.1-r0 -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot= -fdebug-prefix-map=/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native= build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper.o build/temp.linux-x86_64-3.8/interpreter_wrapper/interpreter_wrapper_pybind11.o build/temp.linux-x86_64-3.8/interpreter_wrapper/numpy.o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_error_reporter.o build/temp.linux-x86_64-3.8/interpreter_wrapper/python_utils.o -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/make/gen/orange-pi-zero_x86_64/lib/ -L/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/lib -ltensorflow-lite -o build/lib.linux-x86_64-3.8/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crti.o: No such file or directory /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtbeginS.o: No such file or directory /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lstdc++ /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lm /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lgcc_s /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lpthread /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lc /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find -lgcc_s /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtendS.o: No such file or directory /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status error: command 'arm-poky-linux-gnueabi-g++' failed with exit status 1 WARNING: /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99:163 exit 1 from '/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/git/tensorflow/lite/tools/pip_package/build_pip_package.sh' WARNING: Backtrace (BB generated script): #1: do_compile, /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99, line 163 #2: main, /yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/temp/run.do_compile.99, line 167
Backtrace (metadata-relative locations):
#1: do_compile, /yocto-opizero/poky/meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb, line 59

ERROR: Task (/yocto-opizero/poky/meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 4462 tasks of which 4458 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /yocto-opizero/poky/meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb:do_compile Summary: There was 1 ERROR message shown, returning a non-zero exit code. pokyuser@41779627470d:/yocto-opizero/poky/build$ ### showing line 59 of python3-tensorflow-lite_2.4.1.bb ### pokyuser@41779627470d:/yocto-opizero/poky/build$ cat -n meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb|grep 59 -A5 -B5 cat: meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb: No such file or directory pokyuser@41779627470d:/yocto-opizero/poky/build$ cd .. pokyuser@41779627470d:/yocto-opizero/poky$ cat -n meta-tensorflow-lite/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb|grep 59 -A5 -B5 54 echo "build arm" 55 export TENSORFLOW_TARGET=orange-pi-zero 56 export TARGET=orange-pi-zero 57 fi 58
59 ${S}/tensorflow/lite/tools/pip_package/build_pip_package.sh 60
61 } 62
63 do_install() { 64 echo "Generating pip package" pokyuser@41779627470d:/yocto-opizero/poky$

My yocto knowledge is very minimal so please apologize if I wasn't able to spot the issue myself.

NobuoTsukamoto commented 3 years ago

@ipiazza san

Thank you for reporting issue.

The problem seems to be due to an error in the build of tensorflow-lite. But I couldn't pinpoint the cause.

/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtn.o: No such file or directory


Please tell me the detailed procedure.

Perhaps TARGET_ARCH is not specified, but I'm not sure. https://github.com/NobuoTsukamoto/meta-tensorflow-lite/blob/master/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb#L49

r0ckyjoe commented 3 years ago

Hello Tsukamoto, Thanks for looking at it! I am not in front of my ox now but if you look at the log I reported, at the beginning I did a cat of local.conf and bblayers.conf. Is this what you are looking for? Or you want me to give you the meta-tensorflow-lite/conf files?

Just let me know and I’ll provide what you asked for.

Thanks very much indeed!

~Ivan

Sent from ProtonMail Mobile

Arrivato lun, mar 15, 2021 alle 13:53, Nobuo Tsukamoto @.***> ha scritto:

@.***(https://github.com/ipiazza) san

Thank you for reporting issue.

The problem seems to be due to an error in the build of tensorflow-lite. But I couldn't pinpoint the cause.

/yocto-opizero/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-tensorflow-lite/2.4.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: cannot find crtn.o: No such file or directory

Please tell me the detailed procedure.

  • Which repository did you clone?
  • What layer did you add?
  • Modifications of local.conf (files may be attached)
  • bitbake command options

Perhaps TARGET_ARCH is not specified, but I'm not sure. https://github.com/NobuoTsukamoto/meta-tensorflow-lite/blob/master/recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.4.1.bb#L49

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

NobuoTsukamoto commented 3 years ago

@ipiazza

I'm sorry. I overlooked the log. The information I need is enough.

r0ckyjoe commented 3 years ago

No worries, dear! Am glad you’re helping me out!

Thanks again a lot!

Sent from ProtonMail Mobile

Arrivato lun, mar 15, 2021 alle 23:02, Nobuo Tsukamoto @.***> ha scritto:

@.***(https://github.com/ipiazza)

I'm sorry. I overlooked the log. The information I need is enough.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

NobuoTsukamoto commented 3 years ago

@ipiazza -san

Sorry for my late reply.

Fixed build error (Commit: f1cdff40bf72ac923fa7e9931456ed7063e7aa14).

Thank you for reporting this issue.

r0ckyjoe commented 3 years ago

Hello! Thanks so much for the help! I’m working at the moment but I’ll test it this evening and provide an update.

Thanks very much for sorting this out! I am ok to go with the dunfell release.

I’ll have a look at the commit you pointed out so I can hopefully learn something :)

~Ivan

Arrivato lun, mar 22, 2021 alle 12:45, Nobuo Tsukamoto @.***> ha scritto:

@.***(https://github.com/ipiazza) -san

Sorry for my late reply.

Fixed build error (Commit: f1cdff4).

  • A build error occurred due to an update of meta-poky or meta-oe (Even for raspberry pi).
  • However, I have another problem with the gatesgarth branch. Build with the dunfell branch. Builds on the gatesgarth branch will continue to be fixed.

$ git clone -b dunfell git://git.yoctoproject.org/poky.git $ git clone -b dunfell git://git.openembedded.org/meta-openembedded $ git clone -b dunfell https://github.com/linux-sunxi/meta-sunxi.git $ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git $ bitbake-layers add-layer ../meta-openembedded/meta-oe/ $ bitbake-layers add-layer ../meta-openembedded/meta-python/ $ bitbake-layers add-layer ../meta-openembedded/meta-networking/ $ bitbake-layers add-layer ../meta-openembedded/meta-multimedia/ $ bitbake-layers add-layer ../meta-tensorflow-lite/ $ source poky/oe-init-build-env orangi-build/

modify conf/local.conf

$ bitbake core-image-minimal

  • I don't have an Orange Pi, so I only checked the build. Please reply if you can confirm.

Thank you for reporting this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

r0ckyjoe commented 3 years ago

currently testing. Had to add the following: bitbake-layers add-layer ../meta-sunxi/

I'll let you know once I put the image into the sdcard and boot it up.

Thanks!

r0ckyjoe commented 3 years ago

Facing boot-up issues. For your information that's what I am getting.

minicom /dev/ttyUSB0

U-Boot SPL 2020.01-g303f8fe (Jan 06 2020 - 20:56:31 +0000)
DRAM: 512 MiB
Trying to boot from MMC1

U-Boot 2020.01-g303f8fe (Jan 06 2020 - 20:56:31 +0000) Allwinner Technology

CPU: Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Zero
DRAM: 512 MiB
MMC: mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In: serial
Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1b000: USB EHCI 1.00 Bus usb@1c1b400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1b000 for devices... 1 USB Device(s) found scanning bus usb@1c1b400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 714 bytes read in 2 ms (348.6 KiB/s) ## Executing script at 43100000 20893 bytes read in 3 ms (6.6 MiB/s) 4413896 bytes read in 200 ms (21 MiB/s) ## Booting kernel from Legacy Image at 42000000 ... Image Name: Linux-5.4.69 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4413832 Bytes = 4.2 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 EHCI failed to shut down host controller. Loading Kernel Image Loading Device Tree to 49ff7000, end 49fff19c ... OK

Starting kernel ...


I filed issue https://github.com/linux-sunxi/meta-sunxi/issues/313 asking if they can help me with this. I'll update this issue once I'll be able to boot it up and test it. Thanks!

nandra commented 3 years ago

Let me check it internally and I'll get back to you in next days. Thanks.

r0ckyjoe commented 3 years ago

I was able to import successfully the tflite_runtime.interpreter. I will do some testing in the next days. Being the issue related to the meta-tensorflow-lite compilation error which was fixed and as I was able to compile and import the interpreter I'm going to close this issue. Thank you @NobuoTsukamoto and @nandra for helping out!

NobuoTsukamoto commented 3 years ago

@ipiazza -san I am very happy that it worked ! Thank you for reporting.