Public bug reported: There's no sense in enabling LTO if `noopt` is part of the build flags:
``` $ DEB_BUILD_OPTIONS=noopt dpkg-buildflags ASFLAGS= ASFLAGS_FOR_BUILD= CFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection CFLAGS_FOR_BUILD=-g -O0 CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=0 CPPFLAGS_FOR_BUILD= CXXFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection CXXFLAGS_FOR_BUILD=-g -O0 DFLAGS=-fdebug DFLAGS_FOR_BUILD=-fdebug FCFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -fcf-protection FCFLAGS_FOR_BUILD=-g -O0 FFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -fcf-protection FFLAGS_FOR_BUILD=-g -O0 LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro LDFLAGS_FOR_BUILD= OBJCFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection OBJCFLAGS_FOR_BUILD=-g -O0 OBJCXXFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection OBJCXXFLAGS_FOR_BUILD=-g -O0 ``` ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: dpkg-dev 1.22.6ubuntu6 ProcVersionSignature: Ubuntu 6.8.0-38.38-generic 6.8.8 Uname: Linux 6.8.0-38-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.28.1-0ubuntu3 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Thu Aug 1 11:36:51 2024 InstallationDate: Installed on 2024-02-07 (176 days ago) InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2) PackageArchitecture: all ProcEnviron: LANG=pl_PL.UTF-8 PATH=(custom, no user) SHELL=/usr/bin/zsh TERM=screen-256color XDG_RUNTIME_DIR=<set> RebootRequiredPkgs: Error: path contained symlinks. SourcePackage: dpkg UpgradeStatus: Upgraded to noble on 2024-02-07 (176 days ago) ** Affects: dpkg (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble wayland-session ** Description changed: - There's no sense in enabling LTO i `noopt` is part of the build flags: + There's no sense in enabling LTO if `noopt` is part of the build flags: ``` $ DEB_BUILD_OPTIONS=noopt dpkg-buildflags ASFLAGS= ASFLAGS_FOR_BUILD= CFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection CFLAGS_FOR_BUILD=-g -O0 CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=0 CPPFLAGS_FOR_BUILD= CXXFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection CXXFLAGS_FOR_BUILD=-g -O0 DFLAGS=-fdebug DFLAGS_FOR_BUILD=-fdebug FCFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -fcf-protection FCFLAGS_FOR_BUILD=-g -O0 FFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -fcf-protection FFLAGS_FOR_BUILD=-g -O0 LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro LDFLAGS_FOR_BUILD= OBJCFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection OBJCFLAGS_FOR_BUILD=-g -O0 OBJCXXFLAGS=-g -O0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection OBJCXXFLAGS_FOR_BUILD=-g -O0 ``` ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: dpkg-dev 1.22.6ubuntu6 ProcVersionSignature: Ubuntu 6.8.0-38.38-generic 6.8.8 Uname: Linux 6.8.0-38-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.28.1-0ubuntu3 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Thu Aug 1 11:36:51 2024 InstallationDate: Installed on 2024-02-07 (176 days ago) InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2) PackageArchitecture: all ProcEnviron: - LANG=pl_PL.UTF-8 - PATH=(custom, no user) - SHELL=/usr/bin/zsh - TERM=screen-256color - XDG_RUNTIME_DIR=<set> + LANG=pl_PL.UTF-8 + PATH=(custom, no user) + SHELL=/usr/bin/zsh + TERM=screen-256color + XDG_RUNTIME_DIR=<set> RebootRequiredPkgs: Error: path contained symlinks. SourcePackage: dpkg UpgradeStatus: Upgraded to noble on 2024-02-07 (176 days ago) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2075501 Title: `noopt` should imply `optimize=-lto` To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2075501/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs