How to build pyodide? - cmake

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

Related

when build tensorflow lite python wheel package with tensorflow source code, an error occurred

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.

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.

Can't find jemalloc while building MariaDB on Raspbian Wheezy

I have installed the list of Required tools shown on the Build Environment Setup for Linux, including JEMALLOC, on my Raspberry Pi which has Raspbian Wheezy installed, fully updated, and setup for development. I have successfully built some of the listed tools (Bison, CMake 3.7.2). I have gcc and g++ (Raspbian 4.8.2-21rpi3rpi1) 4.8.2.
When I attempt to build mariadb 10.1.22 (master branch from the github repository) using cmake . -DBUILD_CONFIG=mysql_release I get an error:
CMake Error at cmake/jemalloc.cmake:38 (MESSAGE):
jemalloc is not found
Call Stack (most recent call first):
CMakeLists.txt:343 (CHECK_JEMALLOC)
After building JEMALLOC, I installed it into /usr/local using sudo make install. I have export JEMALLOC_PATH=/usr/local in my .bashrc.
I don't understand why CHECK_JEMALLOC is failing to find the correct files. A list of the file locations is:
/usr/local/bin/jemalloc.sh
/usr/local/bin/jemalloc-config
/usr/local/include/jemalloc
/usr/local/include/jemalloc/jemalloc.h
/usr/local/lib/pkgconfig/jemalloc.pc
/usr/local/lib/libjemalloc.so
/usr/local/lib/libjemalloc_pic.a
/usr/local/lib/libjemalloc.so.2
/usr/local/lib/libjemalloc.a
/usr/local/share/doc/jemalloc
/usr/local/share/doc/jemalloc/jemalloc.html
/usr/local/share/man/man3/jemalloc.3
I can attach a link to the CMake configure log, error log, and terminal output if needed.
UPDATE
I tried using just cmake . and the configuration part worked, but the make failed with the following error:
/home/user/Downloads/mariadb/server/storage/mroonga/vendor/groonga/lib/expr.c:6816:7: note: in expansion of macro ‘GRN_PTR_POP’
GRN_PTR_POP(&keywords, keyword);
^
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/build.make:257: recipe for target 'storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o' failed
make[2]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o] Error 4
make[2]: Leaving directory '/home/user/Downloads/mariadb/server'
CMakeFiles/Makefile2:4420: recipe for target 'storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all' failed
make[1]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all] Error 2
make[1]: Leaving directory '/home/user/Downloads/mariadb/server'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

PCRE error compiling Apache httpd 2.4.18 on RHEL 5.11

Initial attempt of configure gave this error:
checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
I installed pcre-devel:
yum install pcre-devel.x86_64
Now configure is successful. However, make gives this err:
util_pcre.c: In function 'ap_regcomp':
util_pcre.c:128: error: 'PCRE_DUPNAMES' undeclared (first use in this function)
util_pcre.c:128: error: (Each undeclared identifier is reported only once
util_pcre.c:128: error: for each function it appears in.)
make[2]: *** [util_pcre.lo] Error 1
make[2]: Leaving directory `/home/downloads/httpd-2.4.18/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/downloads/httpd-2.4.18/server'
make: *** [all-recursive] Error 1
Looking for help to resolve make pcre problem.
Was able to install Apache httpd-2.4.17 successfully using the same configure and make as httpd-2.4.18.