caffe runtest error after make all - testing

I am installing caffe with ubuntu 16.04 system of cpu. I am facing prpoblem while makerun test.
The error is:
src/caffe/test/test_hdf5data_layer.cpp:4:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:581: recipe for target
'.build_release/src/caffe/test/test_hdf5data_layer.o' failed
make: *** [.build_release/src/caffe/test/test_hdf5data_layer.o] Error 1

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

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.

Error in Compiling DLPC3010 DLPC-API in jetson Nano

I am trying to compile DLPC Projector APIs in the jetson nano. However, it is throwing an error as in added snapshot. I came across one solution here. However it is not being helpful.
DLPC-APS - https://www.ti.com/tool/DLPC-API
ig#ig-desktop:~/Desktop/Texas Instruments/DLPC-API-1.8/samples/dlpc654x_samples/build$ cmake ../
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ig/Desktop/Texas Instruments/DLPC-API-1.8/samples/dlpc654x_samples/build
ig#ig-desktop:~/Desktop/Texas Instruments/DLPC-API-1.8/samples/dlpc654x_samples/build$ make
[ 4%] Building C object CMakeFiles/libdlpc654x_sample.dir/home/ig/Desktop/Texas_Instruments/DLPC-API-1.8/api/dlpc_common.c.o
cc: error: unrecognized command line option ‘-m32’
CMakeFiles/libdlpc654x_sample.dir/build.make:75: recipe for target 'CMakeFiles/libdlpc654x_sample.dir/home/ig/Desktop/Texas_Instruments/DLPC-API-1.8/api/dlpc_common.c.o' failed
make[2]: *** [CMakeFiles/libdlpc654x_sample.dir/home/ig/Desktop/Texas_Instruments/DLPC-API-1.8/api/dlpc_common.c.o] Error 1
CMakeFiles/Makefile2:88: recipe for target 'CMakeFiles/libdlpc654x_sample.dir/all' failed

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

Install Qutip on Mac os x 10.10 via MacPorts

I am not sure whether i can ask this question here.
I tried to install QuTips on my mac osx 10.10. Am following these two documentation for installation Qutip and MacPorts. Now am struggle to install gcc49.
When i execute this command sudo port install py34-scipy I got the following error
Admins-iMac-2:base admin$ sudo port install py27-scipy
---> Computing dependencies for py27-scipy
The following dependencies will be installed:
gcc49
py27-numpy
swig
swig-python
Continue? [Y/n]: y
---> Building gcc49
Error: Failed to build gcc49: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py27-scipy failed
Admins-iMac-2:base admin$ sudo port install py34-numpy
---> Computing dependencies for py34-numpy
The following dependencies will be installed: gcc49
Continue? [Y/n]: y
---> Building gcc49
Error: Failed to build gcc49: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py34-numpy failed
Admins-iMac-2:base admin$ vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log
Admins-iMac-2:base admin$
I go and look for main.log file. At the end of this file i got below errors
:info:build gcc/vtable-verify.o differs
:info:build make[2]: *** [compare] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build'
:info:build make[1]: *** [stage3-bubble] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/work/build" && /usr/bin/make -j4 -w bootstrap
:info:build Exit code: 2
:error:build Failed to build gcc49: command execution failed
:debug:build Error code: CHILDSTATUS 2595 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:debug:build Registry error: gcc49 not registered as installed & active.
:debug:build invoked from within
:debug:build "registry_active $subport"
:debug:build invoked from within
:debug:build "$workername eval registry_active \$subport"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.
Am not familiar with this. I cannot complete installation without this gcc49. Alternatively i install gcc48, but dosen't work for me. Every time it automatically tried ti install gcc49.
Anybody have any suggestion, it will be really appreciated.
I can answer my question
run sudo port clean gcc49, then try again