gcc build with -O0 results in corrupted -debuginfo package

Petr Spacek pspacek at redhat.com
Fri Apr 25 14:10:29 UTC 2014

Hello list,

I'm trying to rebuild bind-9.9.4-12.P2.fc20.src.rpm with

I did the simplest possible thing - edited the original spec file (see 
spec.diff) and built the package:
$ rpmbuild -ba bind.spec

The package builds and BIND itself seems to work. The problem is that new 
debuginfo package is missing 118 out of 283 header files in 

It seems that "-O0" alone (instead of "-O0 -ggdb") causes the same problem.

I would be glad if anyone can give me advice how to debug this.

Original packages from Fedora 20 (with all headers in /usr/src/debug):

Packages built with -O0 -ggdb (scratch build):

Thank you for your time!

Petr^2 Spacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spec.diff
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140425/938fad10/attachment.bin>

More information about the devel mailing list