[opensuse-buildservice] OBS ignoring %define _lto_cflags %{nil} in spec file
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 are suddenly failing 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.
--
Rosanne DiMesio
Please file a bug with the maintainers of the rpmlint package. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Samstag, 14. September 2019 09:37:03 CEST Andreas Schwab wrote:
Please file a bug with the maintainers of the rpmlint package.
Andreas.
The rpmlint message is correct, static archives with GCC-internal code representations only are quite pointless: [ 993s] This archive does not contain a non-empty .text section. The archive was not [ 993s] created with -ffat-lto-objects option. Probably *some* code is compiled with -flto, so check the compile flags everywhere. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019
On Sep 14 2019, Stefan Brüns
On Samstag, 14. September 2019 09:37:03 CEST Andreas Schwab wrote:
Please file a bug with the maintainers of the rpmlint package.
Andreas.
The rpmlint message is correct, static archives with GCC-internal code representations only are quite pointless:
Where does it say that there is any GCC-internal code representation? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Sat, 14 Sep 2019 14:06:13 +0200
Stefan Brüns
Probably *some* code is compiled with -flto, so check the compile flags everywhere.
I searched the entire build log, and -flto was nowhere in it.
In the mean time, I have temporarily worked around the problem by adding a wine-rpmlintrc file with setBadness('lto-no-text-in-archive', 0). I gather that's not considered acceptable for distro packages, but this is just my personal project.
I also filed https://bugzilla.opensuse.org/show_bug.cgi?id=1150782. At the very least, the instructions on https://en.opensuse.org/openSUSE:LTO for disabling LTO seem to be incomplete for current Tumbleweed (this problem did not exist two weeks ago). But I'll leave it to people more knowledgeable than myself to decide where the real problem lies.
--
Rosanne DiMesio
participants (3)
-
Andreas Schwab
-
Rosanne DiMesio
-
Stefan Brüns