[Bug 1141323] New: packages embed CFLAGS with -flto
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323 Bug ID: 1141323 Summary: packages embed CFLAGS with -flto Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: martin.liska@suse.com Reporter: bwiedemann@suse.com QA Contact: qa-bugs@suse.de CC: kgronlund@suse.com, matthias.gerstner@suse.com, max@suse.com, pgajdos@suse.com Blocks: 1081754 Found By: Development Blocker: --- While working on reproducible builds for openSUSE, I found that since the introduction of -flto=%jobs several packages started to vary between builds because they embed the CFLAGS somewhere in the rpm: fldigi gmp haproxy ImageMagick lyx neovim tboot tcl Not all packages have been tested yet. Steps to Reproduce: osc co openSUSE:Factory/fldigi && cd $_ for i in 1 2 ; do osc build --vm-type=kvm -j$i --disable-debuginfo --keep-pkg=.rpm$i done /usr/lib/build/pkg-diff.sh .rpm{1,2}/fldigi-*-0.x86_64.rpm -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323#c1
--- Comment #1 from Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323#c2
--- Comment #2 from Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323#c3
--- Comment #3 from Martin Liška
tboot actually does not use LTO, but the disablement is done not ideally:
The -flto=N is again leaking into debug info producer:
DWARF section [18] '.debug_info' at offset 0x1dd8: [Offset] Compilation unit at offset 0: Version: 4, Abbreviation section offset: 0, Address size: 4, Offset size: 4 [ b] compile_unit abbrev: 1 producer (strp) "GNU C99 9.1.1 20190611 [gcc-9-branch revision 272147] -m32 -march=i686 -msoft-float -g -O2 -O2 -std=gnu99 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -flto=16 -flto=12345 -fno-lto -fno-builtin -fno-common -fno-strict-aliasing -fomit-frame-pointer -fno-stack-protector -fstack-check=no -fPIE"
It's addressed in: https://build.opensuse.org/request/show/714899 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323#c4
--- Comment #4 from Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323
Andreas Färber
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323
http://bugzilla.opensuse.org/show_bug.cgi?id=1141323#c6
Bernhard Wiedemann
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com