M BUZZ CRAZE NEWS
// news

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 1

Docker Build File

Environments and code are here.

Relative Link

1

1 Answer

I've finally found out JDK installation was needed. After installing it, the compilation was finished successfully.

apt install default-jdk
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy