Bugzilla – Bug 1143063
pesign fails to build with --disable-debuginfo
Last modified: 2019-07-31 14:12:50 UTC
While working on reproducible builds for openSUSE, I found that the Factory pesign package fails to build with --disable-debuginfo Steps to reproduce: osc co openSUSE:Factory/pesign && cd $_ osc build --clean --noservice --disable-debuginfo Actual results: lto1: error: variable tracking requested, but useless unless producing debug info [-Werror] lto1: all warnings being treated as errors
The error looks correct to me. The package uses -Werror and -fvar-tracking and so that one can expect the error.
https://build.opensuse.org/request/show/719976 I added a patch to remove var-tracking from the default CFLAGS. Per gcc manual, it's enabled by default with "-g" so it seems not necessary to specify the flag.
(In reply to Gary Ching-Pang Lin from comment #2) > https://build.opensuse.org/request/show/719976 > > I added a patch to remove var-tracking from the default CFLAGS. Per gcc > manual, it's enabled by default with "-g" so it seems not necessary to > specify the flag. I like the patch, thanks for it.
Let's count it as fixed then, as it will eventually make its way into Factory.