when build tensorflow lite python wheel package with tensorflow source code, an error occurred - tensorflow2.0

I built tensorflow lite python wheel package with tensorflow source code, according to the guidence from official website of tensorflow, https://tensorflow.google.cn/lite/guide/build_cmake_pip?hl=zh-cn. An same error occurred neither I built with source code nor in the docker container, tensorflow/tensorflow:devel, the error is:
compilation terminated.
make[3]: *** [//gen/tflite_pip/python3/cmake_build/CMakeFiles/tensorflow-lite.dir/build.make:739: //gen/tflite_pip/python3/cmake_build/CMakeFiles/tensorflow-lite.dir/kernels/conv3d.cc.o] Error 1
make[3]: Leaving directory '/gen/tflite_pip/python3/cmake_build'
make[2]: *** [CMakeFiles/Makefile2:1217: //gen/tflite_pip/python3/cmake_build/CMakeFiles/tensorflow-lite.dir/all] Error 2
make[2]: Leaving directory '/gen/tflite_pip/python3/cmake_build'
make[1]: *** [CMakeFiles/Makefile2:1151: //gen/tflite_pip/python3/cmake_build/CMakeFiles/_pywrap_tensorflow_interpreter_wrapper.dir/rule] Error 2
make[1]: Leaving directory '/gen/tflite_pip/python3/cmake_build'
make: *** [Makefile:186: _pywrap_tensorflow_interpreter_wrapper] Error 2
Has anyone ever encountered a similar error? And how to figure it out?

I got a same error, and looks like in the latest versions of tensorflow lite CMake there is a problem when working with more then 20-30 threads.
So on my end I set BUILD_NUM_JOBS=8 and the CMake of wheel package worked like a charm for me.

Related

How to build pyodide?

During the build of pyodide using the using make method described in the documentation. I am coming across the following error during the emsdk step. Please direct me towards a solution for building the core packages in pyodide PYODIDE_PACKAGES='core'
Error:
Unpacking '/media/savakarrohan/Projects/pyodide/emsdk/emsdk/zips/node-v14.18.2-linux-x64.tar.xz' to '/media/savakarrohan/Projects/pyodide/emsdk/emsdk/node/14.18.2_64bit'
Done installing tool 'node-14.18.2-64bit'.
Installing tool 'releases-upstream-49d45744895c7d7e28acd94a385d7ee361653b4a-64bit'..
Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/49d45744895c7d7e28acd94a385d7ee361653b4a/wasm-binaries.tbz2': <urlopen error [Errno -3] Temporary failure in name resolution>
error: installation failed!
make[1]: *** [Makefile:9: emsdk/.complete] Error 1
make[1]: Leaving directory '/media/savakarrohan/Projects/pyodide/emsdk'
make: *** [Makefile:188: emsdk/emsdk/.complete] Error 2

Why can I not update to the newest version of libtorch?

I followed the tutorial here to make a c++ front-end application for pytorch:
https://pytorch.org/tutorials/advanced/cpp_frontend.html
I used GPU version. I could succesfully cmake and make.
Now I updated to the latest version of libtorch. I can still cmake, but on make, I get the following error:
[willem#int2 build]$ make
make[2]: *** No rule to make target `/sw/arch/RedHatEnterpriseServer7/EB_production/2019/software/cuDNN/7.6.5.32-CUDA-10.1.243/include/lib64', needed by `polIter'. Stop.
make[1]: *** [CMakeFiles/polIter.dir/all] Error 2
make: *** [all] Error 2
My cmake command is:
cmake -DCMAKE_PREFIX_PATH=~/libtorch1.8.1/share/cmake/Torch/
-DCMAKE_MODULE_PATH=/home/willemvj/libtorch1.8.1/share/cmake/Torch/
-DCUDNN_LIBRARY_PATH=$EBROOTCUDNN/include/lib64
-DCUDNN_INCLUDE_DIR=$EBROOTCUDNN/include -DCUDNN_LIBRARY=$EBROOTCUDNN/lib64
/libcudnn.so.7 .. #
Any ideas on what is causing this?

QT LimeReport on RPI4

I am using QT LimeReport on my UBUNTU 18.04 system although i wanted to use it on RPI4.
But i couldn't find any documentation for it and i tried cloning LimeReport from github but it gives error when i use "make".
The error i get is related to
Project ERROR: Unknown module(s) in QT: designercomponents-private
make[1]: *** [Makefile:818: Makefile] Error 3
make[1]: Leaving directory '/home/pi/Desktop/LimeReport/limereport'
make: *** [Makefile:93: sub-limereport-make_first-ordered] Error 2
Has anyone successfully installed and used LimeReport using QT c++ on RPI4.
Install the qttools5-private-dev package to get the missing designercomponents-private QMake file.

error build all ros packages in this repo the error occur in catkin_make step

I followed instruction by Michael Huang.
My error message reads:
In file included from /home/evadro/quadevac_sim_ws/catkin_ws/src/menge_gazebo/menge_congregate/include/MengeCong.h:10:0,
from /home/evadro/quadevac_sim_ws/catkin_ws/src/menge_gazebo/menge_congregate/src/MengeCong.cpp:8:
/home/evadro/quadevac_sim_ws/catkin_ws/src/menge_gazebo/menge_congregate/../menge_common/include/MengePlugin.h:13:44: fatal error: gazebo/physics/InstancedActor.hh: No such file or directory
compilation terminated.
menge_gazebo/menge_congregate/CMakeFiles/menge_congregate.dir/build.make:62: recipe for target 'menge_gazebo/menge_congregate/CMakeFiles/menge_congregate.dir/src/MengeCong.cpp.o' failed
make[2]: * [menge_gazebo/menge_congregate/CMakeFiles/menge_congregate.dir/src/MengeCong.cpp.o] Error 1
CMakeFiles/Makefile2:4099: recipe for target 'menge_gazebo/menge_congregate/CMakeFiles/menge_congregate.dir/all' failed
make[1]: * [menge_gazebo/menge_congregate/CMakeFiles/menge_congregate.dir/all]
The 2nd error is:
make[1]: *** Waiting for unfinished jobs....
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j24 -l24" failed
Your Error is gazebo/physics/InstancedActor.hh No such file or directory.
this header is not on standard version of Gazebo.
Make Sure you Compiled Gazebo Repo mentioned in External Depenencies Here with No errors. Then Double checks paths so compiler can find the missing headers.

Redis-2.6.16 installation issue

I am trying to install redis-2.6.16 on windows using cygwin. I am getting below error.
Appreciate any help. Thanks.
/c/cygwin64/bin/cc: /c/cygwin64/bin/cc: cannot execute binary file
make[3]: *** [net.o] Error 126
make[3]: Leaving directory `/c/cygwin64/home/redis-2.6.16/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/c/cygwin64/home/redis-2.6.16/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
/c/cygwin64/bin/cc: /c/cygwin64/bin/cc: cannot execute binary file
make[1]: *** [adlist.o] Error 126
make[1]: Leaving directory `/c/cygwin64/home/redis-2.6.16/src'
make: *** [all] Error 2
You can't use basic Redis on Windows, you have to use the binaries given by the unsupported port on Windows: https://github.com/MSOpenTech/redis
Basically, you can't just compile the C code of Redis on Windows. And this port has some drawbacks (as Windows does not support fork command), there are "stop the world" operations in it (that redis does not have in its official version): you can't use it for production.
That said, the stack says that cc is missing, you need a C compiler on cygwin, but that won't be enough to make redis work on Windows. Check the last link (github) and download the binaries if you do need to make redis work on Windows.