gcc build with -O0 results in corrupted -debuginfo package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

I'm trying to rebuild bind-9.9.4-12.P2.fc20.src.rpm with
CFLAGS="$CFLAGS $RPM_OPT_FLAGS -O0 -ggdb".

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 /usr/src/debug/bind-9.9.4-P2.

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):
http://koji.fedoraproject.org/koji/buildinfo?buildID=502596

Packages built with -O0 -ggdb (scratch build):
http://koji.fedoraproject.org/koji/taskinfo?taskID=6778483

Thank you for your time!

--
Petr^2 Spacek
--- bind.orig.spec	2014-03-05 14:59:20.000000000 +0100
+++ bind.spec	2014-04-25 15:52:59.666055748 +0200
@@ -29,3 +29,3 @@
 Version:  9.9.4
-Release:  12.%{?PATCHVER}%{?PREVER}%{?dist}
+Release:  12.%{?PATCHVER}%{?PREVER}.pspacek_O0%{?dist}
 Epoch:    32
@@ -345,3 +345,3 @@
 %build
-export CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
+export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -O0 -ggdb"
 export CPPFLAGS="$CPPFLAGS -DDIG_SIGCHASE"
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux