Been trying to compile the handy sysdig util in armbian.
Installed it with:
apt-get install -t jessie-backports sysdig sysdig-dkms
After the normal install that worked, but when running gave this error:
error opening device /dev/sysdig0. Make sure you have root credentials and that the sysdig-probe module is loaded.
I tried:
/usr/lib/dkms/dkms_autoinstaller start
One of the compilation errors I manage to correct commenting the include of asm-offsets.h in /var/lib/dkms/sysdig/0.5.1/build/main.c
I also managed to solve the complaints about the lack of fixdep with:
make fixdep
make bin2c
However now when trying to compile it with /usr/lib/dkms/dkms_autoinstaller start
if fails with:
/bin/sh: 1: scripts/mod/modpost: not found
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 127
Makefile:1387: recipe for target 'modules' failed
make: *** [modules] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.1-sunxi'
It seems I need to do
make modules_prepare
either in the linux source or headers directory. I do not have the linux source installed, and it is giving this error in the headers directory:
oot@ruir:/usr/src# cd linux-headers-4.4.1-sunxi/
root@ruir:/usr/src/linux-headers-4.4.1-sunxi# make modules_prepare
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: *** No rule to make target 'arch/arm/tools/gen-mach-types', needed by 'include/generated/mach-types.h'. Stop.
arch/arm/Makefile:313: recipe for target 'archprepare' failed
make: *** [archprepare] Error 2
Any idea?
TIA,
Rui