Please add -enable-libstdcxx-backtrace=yes to default build flags

Bug #2048233 reported by tarick
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc-12 (Ubuntu)
Confirmed
Undecided
Unassigned
gcc-13 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

std::stacktrace is a C++23 feature GCC already supports, but needs --enable-libstdcxx-backtrace=yes to work.

It is a simple change that shouldn't break anything for others but would enable those who want to use a standard adopted C++23 feature.

The only downside at the moment is that it would generate a static library and thus increase storage space a tiny bit.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-12 (Ubuntu):
status: New → Confirmed
Changed in gcc-13 (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-13 - 13.2.0-11ubuntu1

---------------
gcc-13 (13.2.0-11ubuntu1) noble; urgency=medium

  * Merge with Debian; remaining changes:
    - Build from upstream sources.

gcc-13 (13.2.0-11) experimental; urgency=medium

  [ Matthias Klose ]
  * Fall-back to the host crypt.h for the target, required by cross builds.
    See: #1014375.
  * Fix PR target/113030, taken from the trunk.
  * Don't include -Xliblto_plugin.so for dh_fixperms call.
  * Mark *-N-for-{build,host} packages as dependency packages.
  * Stop building packages built by gcc-14.

  [ Helmut Grohne ]
  * Build $triplet packages:
    {cpp,gcc,g++,gfortran,gdc,gobjc,gobjc++,gccgo,gnat,gm2,gccrs}-13-$triplet
  * Use cross_gencontrol for *-for-host packages.
  * Add packages {cpp,gcc,g++,gfortran,gdc,gobjc,gobjc++}-N-for-{build,host}.
  * Add packages {gccgo,gnat,gm2,gccrs}-N-for-{build,host}.
  * Restrict $tool-$v-$triplet packages via ${tool}_no_archs.

 -- Matthias Klose <email address hidden> Tue, 23 Jan 2024 22:09:10 +0100

Changed in gcc-13 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Ali Thari (alithari90) wrote :

is this fixed? For some reason libstdc++exp.a does not include the backtrace

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.