0

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.

https://github.com/fx-kirin/docker-ubuntu-kernel-build

Relative Link

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1761379

  • There is no libperf-jvmti.so in anywhere in the directory. – fx-kirin Oct 31 '19 at 0:53
0

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

apt install default-jdk
|improve this answer|||||
  • And I fixed the github repo. So there is no error on building the kernel. – fx-kirin Oct 31 '19 at 3:08

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.