From 94fdbb55f3e363712465c90e2b45d18eab8087c392a501f28d5ca16b3041be69 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 15 Sep 2020 12:22:08 +0000 Subject: [PATCH] Accepting request 834600 from home:Guillaume_G:branches:Base:System - Disable LTO again - boo#1138796 Adding -flto-partition=none and -Wno-error=stack-usage were not enough: [ 123s] libasm-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libasm.a [ 123s] libdw-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libdw.a [ 123s] libelf-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libelf.a [ 123s] This archive does not contain a non-empty .text section. The archive was not [ 123s] created with -ffat-lto-objects option. And adding -ffat-lto-objects breaks run-show-die-info.sh test. OBS-URL: https://build.opensuse.org/request/show/834600 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=159 --- elfutils-debuginfod.changes | 13 +++++++++++++ elfutils.spec | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/elfutils-debuginfod.changes b/elfutils-debuginfod.changes index 668ec1f..4e995f0 100644 --- a/elfutils-debuginfod.changes +++ b/elfutils-debuginfod.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Sep 15 11:50:27 UTC 2020 - Guillaume GARDET + +- Disable LTO again - boo#1138796 + Adding -flto-partition=none and -Wno-error=stack-usage were + not enough: + [ 123s] libasm-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libasm.a + [ 123s] libdw-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libdw.a + [ 123s] libelf-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libelf.a + [ 123s] This archive does not contain a non-empty .text section. The archive was not + [ 123s] created with -ffat-lto-objects option. + And adding -ffat-lto-objects breaks run-show-die-info.sh test. + ------------------------------------------------------------------- Tue Sep 8 15:18:57 UTC 2020 - Guillaume GARDET diff --git a/elfutils.spec b/elfutils.spec index 0ddf5ce..e507388 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -106,7 +106,7 @@ applications that require libdw. %autosetup -p1 %build -%global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage= +%global _lto_cflags %{nil} # Change DATE/TIME macros to use last change time of elfutils.changes # See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"