make -j4 error opencv on kali linux - linux

When I execute the command "make -j4", then it doesn't work.
Below is the output that I am getting. How can I fix this problem?
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_viz_Release.gch' failed
make[2]: *** [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1
CMakeFiles/Makefile2:3227: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed
make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 16%] Built target pch_Generate_opencv_test_video
[ 16%] Built target pch_Generate_opencv_video
[ 16%] Built target pch_Generate_opencv_perf_video
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Related

I got kernel compiling error but i cant google it

root#com:/usr/src/linux-source-4.15.0/linux-source-4.15.0# make -C $KERN_DIR M=`pwd` modules
echo $KERN_DIR -> /usr/src/linux-source-4.15.0/linux-source-4.15.0
how can i fix it? i cant find this error
drivers/tty/serdev/core.o: failed
scripts/Makefile.build:330: recipe for target 'drivers/tty/serdev/core.o' failed
make[3]: *** [drivers/tty/serdev/core.o] Error 1
scripts/Makefile.build:604: recipe for target 'drivers/tty/serdev' failed
make[2]: *** [drivers/tty/derdev] Error 2
scripts/Makefile.build:604: recipe for target 'drivers/tty' failed
make[1]: *** [drivers/tty] Error 2
Makefile:1060: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Raspberry pi make error cannot find -lbcm_host

/usr/bin/Id: cannot find -Ibcm_host
collect2: error: Id returned 1 exit status
CMakeFiles/sdl-renderer.dir/build.make:91: recipe for target 'bin/sdl-renderer' failed
make[2]: *** [bin/sdl-renderer] Error 1
CmakeFiles/Makefile2:277: recipe for target 'CMakeFiles/sdl-renderer.dir/all' failed
make[1]: *** [CmakeFiles/sdl-renderer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
What to do with it?
cmake version 3.13.3
os: debian/retropie

Failed to build iotivity-constrained Zephyr port on Linux

I am trying to build iotivity-constrained Zephyr port on Linux for ESP32 but getting the following errors,
drivers/built-in.o: In function `esp32_uart_init':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:46:(.text.esp32_uart_init+0x3): dangerous relocation: call8: call target out of range: uartAttach
drivers/built-in.o: In function `esp32_uart_tx':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:19:(.text.esp32_uart_tx+0x9): dangerous relocation: call8: call target out of range: uart_tx_one_char
collect2: error: ld returned 1 exit status
/home/toolchains/zephyr/Makefile:878: recipe for target 'zephyr_prebuilt.elf' failed
make[2]: *** [zephyr_prebuilt.elf] Error 1
make[2]: Leaving directory '/home/projects/iotivity-constrained/port/zephyr/outdir/esp32'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/toolchains/zephyr'
/home/toolchains/zephyr/Makefile.inc:82: recipe for target 'all' failed
make: *** [all] Error 2
I can build Zephyr and ESP32 separately but not iotivity-constrained. I tried to add -mlongcalls but no success.
Any suggestions?
Add flag -mlongcalls in /zephyr/drivers/serial/Makefile.
References:
IOT-2650

LFS:coreutils compile error

help2man:
can't get --help' info from man/cp.td/cp Try--no-discard-stderr' if
option outputs to stderr Makefile:14066: recipe for target 'man/cp.1'
failed make[2]: * [man/cp.1] Error 127 make[2]: Leaving directory
'/sources/coreutils-8.23' Makefile:11098: recipe for target
'all-recursive' failed make[1]: * [all-recursive] Error 1 make[1]:
Leaving directory '/sources/coreutils-8.23' Makefile:5765: recipe for
target 'all' failed make: *** [all] Error 2
There were a few dependency issues fixed in coreutils 8.24
For example see: http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=v8.23-34-gf51c44b
If you try the make again it might succeed (as cp is now built).

Error building HHVM on Amazon Linux 2014.03 (unrecognized command line option ‘-fno-canonical-system-headers’)

I'm following the process https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03.
At the time of compilation and installation:
[root#ip-172-31-19-191 hhvm]# make
[ 0%] Building CXX object hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
c++: error: unrecognized command line option ‘-fno-canonical-system-headers’
make[2]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o] Error 1
make[1]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/all] Error 2
make: *** [all] Error 2
Anyone know why the compiler is not recognizing this command?

Resources