How to build kernel 4.15.0 on ubuntu 18.04 and avoid missing libperf-jvmti.so
By Emma Martinez •
I'm trying to build kernel 4.15.0 to apply patch with Docker. But I encountered the problem that libperf-jvmti.so was not found on building the kernel.
Could anybody tell me how to fix this error?
root@513ceb15941f:/data/linux-4.15.0$ fakeroot debian/rules binary-
....
headers binary-generic binary-perarch
install -m755 /data/linux-4.15.0/debian/build/tools-perarch/tools/perf/perf /data/linux-4.15.0/debian/linux-tools-4.15.0-66/usr/lib/linux-tools-4.15.0-66
install -m755 /data/linux-4.15.0/debian/build/tools-perarch/tools/perf/libperf-jvmti.so /data/linux-4.15.0/debian/linux-tools-4.15.0-66/usr/lib/linux-tools-4.15.0-66
install: cannot stat '/data/linux-4.15.0/debian/build/tools-perarch/tools/perf/libperf-jvmti.so': No such file or directory
debian/rules.d/2-binary-arch.mk:668: recipe for target 'install-perarch' failed
make: *** [install-perarch] Error 1Docker Build File
Environments and code are here.
Relative Link
11 Answer
I've finally found out JDK installation was needed. After installing it, the compilation was finished successfully.
apt install default-jdk 1