How does the Linux kernel compile debuginfo and debuginfo-common packages in kernel-ml-4.19.1-1.el7.elrepo.x86_64

寵の児 提交于 2020-07-10 10:24:52

问题


The production host has been restarted frequently recently, kdump has been started, vmcore has been obtained, and the root cause is ready to be analyzed by crash, but the debuginfo and debuginfo-common packages of the same kernel version should be installed.

But I did not find this version debuginfo package from http://debuginfo.centos.org/7/x86_64/

How to compile the debuginfo and debuginfo-common packages of the Linux kernel? Need to compile the kernel: kernel-ml-4.19.1-1.el7.elrepo.x86_64

The host kernel information and the installed rpm package, the debuginfo rpm package you see is abnormal

Here is what I did:

Get the kernel package from link https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.19.1.tar.xz

The package I searched for was compiled using make -j32 rpm-pkg, but after the compilation, there was no debuginfo rpm package.

I tried to remove #%debug_package{nil} in the scripts/package/mkspec see picture Remove debug_package{nil} location and add find_debuginfo.sh xxxx to enable debug module refer build.log from link https://kojipkgs.fedoraproject.org//vol/fedora_koji_archive04/packages/kernel/4.19.2/300.fc29/data/logs/x86_64/build.log But after I run the command make rpm-pkg again, I got the debuginfo rpm but it seems abnormal。 the size of the rpm is around 600k which is obviously not correct. abnormal size of debuginfo package

That is all, the debuginfo and debuginfo-common rpm package cannot be compiled. Do you have any suggestions to solve this problem, or provide it in kernel version kernel-ml-4.19.1-1.el7.elrepo.x86_64, or provide me kernel-ml source package link address etc. it would be greatly appreciated.

来源:https://stackoverflow.com/questions/62771461/how-does-the-linux-kernel-compile-debuginfo-and-debuginfo-common-packages-in-ker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!