Bugzilla – Bug 1150782
rpmlint runs LTO checks even when LTO is disabled in the spec file
Last modified: 2019-09-17 03:16:15 UTC
Wine does not build with LTO enabled. I have %define _lto_cflags %{nil} in my spec file, and this has worked in the past to disable it, but my Tumbleweed builds on the OBS are suddenly failing at the end with lto errors: wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libadsiid.a [ 993s] wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libdmoguids.a [ 993s] wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libdxguid.a [ 993s] wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libmfuuid.a [ 993s] wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libstrmiids.a [ 993s] wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libuuid.a [ 993s] wine-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/wine/libwmcodecdspuuid.a [ 993s] This archive does not contain a non-empty .text section. The archive was not [ 993s] created with -ffat-lto-objects option. My project is https://build.opensuse.org/package/show/home:dimesio/wine. I reported this on the opensuse-buildservice mailing list and was asked to file a bug with the rpmlint package maintainers. (If this is not the correct place, please let me know where I should file it.)
FYI, I have worked around the issue temporarily by adding a wine-rpmlintrc file to my sources with setBadness('lto-no-text-in-archive', 0) in it.