[pacman-dev] [PATCH v3] makepkg: implement support for stripping kernel modules

Allan McRae allan at archlinux.org
Tue Feb 11 18:13:39 EST 2014


On 12/02/14 07:58, Thomas Bächler wrote:
> Am 10.02.2014 11:56, schrieb Steven Noonan:
>> I maintain the Arch Linux EC2 kernel, and I'm doing adventurous things
>> with the packaging to make debugging a bit easier. I am looking at
>> enabling CONFIG_DEBUG_INFO and adding -debug packages. That will
>> indeed require removing the compression stage for the modules. In my
>> experience this has had no negative impact. In fact, tools like 'perf'
>> look for separate debug symbols.
> 
> I was unaware that there is a way to debug kernel modules. And I am
> sceptical. So you can debug modules, but not built-in stuff? This all
> sounds very weird.
> 
>> As for module builds, you're correct:
>>
>>   MODPOST 1 modules
>> FATAL: vmlinux has no symtab?
>> /usr/src/linux-3.13.2-1-ec2/scripts/Makefile.modpost:90: recipe for
>> target '__modpost' failed
>> make[1]: *** [__modpost] Error 1
> 
> vmlinux is not even needed to build modules. The only reason we install
> vmlinux is 1) we used to need it for our Xen machines (this is obsolete
> now) and 2) it is needed for oprofile iirc.
> 
> I do not think it is in any way related to building modules, or needed
> for that matter.
> 

I have seen a few people report that stripping that file breaks module
builds.   This and your statement that it is not related to module
builds seem inconsistent.

Allan



More information about the pacman-dev mailing list