[Bug 2016042] Re: Please add -D_GLIBCXX_ASSERTIONS to default build flags

Matthias Klose 2016042 at bugs.launchpad.net
Wed Jul 26 05:37:41 UTC 2023


seriously, referencing a bug from 2008 in bluez-utils?

** Changed in: gcc-12 (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/2016042

Title:
  Please add -D_GLIBCXX_ASSERTIONS to default build flags

Status in dpkg package in Ubuntu:
  New
Status in gcc-12 package in Ubuntu:
  Won't Fix

Bug description:
  This flag has a long history of distro use in Fedora [0] and is used
  by Gentoo [1].

  _GLIBCXX_ASSERTIONS was developed not to impact ABI or big-O
  complexity.

  > The _GLIBCXX_ASSERTIONS macro defines a subset of the _GLIBCXX_DEBUG
  > checks, with no impact on class layout and minimal impact on runtime
  > (and no changes in algorithmic complexity). It is intended to be
  > suitable for both debug builds and release builds.
  [2]

  As with -D_FORTIFY_SOURCE=3, poor quality code requires more mitigations
  and therefore have higher performance penalties.

  When Fedora initially added this default flag some packages FTBFS. Now
  packages appear stable.

  [0] https://src.fedoraproject.org/rpms/redhat-rpm-config/c/0d162176e9dba1adc330a9ee561b91c8e5e62cb5
  [1] https://bugs.gentoo.org/876895
  [2] https://bugs.launchpad.net/kicad/+bug/1838448/comments/40

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2016042/+subscriptions




More information about the foundations-bugs mailing list