I got kernel compiling error but i cant google it - linux

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

Related

Unable to build and install binutils in Kali linux

I was trying to install OS 161 KALI LINUX version 2020.3 64bit. The first step was to build and install binutils.
The procedure I followed is shown in this .
I configured the binutils and got this output https://pastebin.com/iXjFq3Zu but upon running i got the make command i got the following errors https://pastebin.com/DYSBdUqq .
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2551: as-new] Error 1
make[4]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[3]: *** [Makefile:2596: all-recursive] Error 1
make[3]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[2]: *** [Makefile:2482: all] Error 2
make[2]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[1]: *** [Makefile:4860: all-gas] Error 2
make[1]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1'
make: *** [Makefile:627: all] Error 2
root#kali:/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1#

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

make -j4 error opencv on kali 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

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).

Resources