F21: building kernels from srpms is broken

Steve Dickson SteveD at redhat.com
Tue Aug 26 17:53:50 UTC 2014



On 08/26/2014 01:47 PM, Steve Dickson wrote:
> 
> 
> On 08/26/2014 01:30 PM, Josh Boyer wrote:
>> On Tue, Aug 26, 2014 at 1:18 PM, Steve Dickson <SteveD at redhat.com> wrote:
>>> Hello,
>>>
>>> When build kernel from the source rpm I
>>> get the following depmod failure:
>>>
>>> + depmod -b . -aeF ./System.map 3.16.1-301.fc20.x86_64
>>> + '[' -s depmod.out ']'
>>> + echo 'Depmod failure'
>>> Depmod failure
>>> + cat depmod.out
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_new_lockspace
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_unlock
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_release_lockspace
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_posix_unlock
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_posix_get
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_lock
>>> depmod: WARNING: /home/steved/rpmbuild/BUILDROOT/kernel-3.16.1-301.fc20.x86_64/./lib/modules/3.16.1-301.fc20.x86_64/kernel/fs/gfs2/gfs2.ko needs unknown symbol dlm_posix_lock
>>> + exit 1
>>>
>>> What needs to happen to get this fixed? Should I open up a bz or
>>> open up a ticket somewhere? Please tell me where to go... nicely! ;-)
>>
>> Didn't we discuss all of this in #fedora-kernel yesterday?  Did the
>> advice we gave there not work, or?
> Yes.. Your advice was to use 'fedpkg local' which does indeed work but
> it also builds a bunch of rpms I don't need or use, like debug kernels.
> 
> When I rpmbuild from a srpm I use the following flags
>    --without extra --without tools --without debug --without perf --without headers
> 
> which greatly decrease the compiling time... from 70mins to 30mins
> depending on the machine... 
> 
> Now if I can set those flags in the fedpkg local build... Then
> I'm good to go...

Also, I can use the resulting source tree for debugging... (aka 
recompile modules after modifying the code)

steved.


More information about the kernel mailing list