[Bug 1256419] Re: libstdc++ pretty-printers don't work with Python 3

Matthias Klose doko at ubuntu.com
Tue Jun 3 12:27:35 UTC 2014


fixed in utopic

** Also affects: gcc-4.8 (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Also affects: gcc-4.9 (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: gcc-4.8 (Ubuntu Trusty)
       Status: New => In Progress

** Changed in: gcc-4.8 (Ubuntu)
       Status: Confirmed => Fix Released

** Changed in: gcc-4.9 (Ubuntu Trusty)
       Status: New => Invalid

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

Title:
  libstdc++ pretty-printers don't work with Python 3

Status in “gcc-4.8” package in Ubuntu:
  Fix Released
Status in “gcc-4.9” package in Ubuntu:
  Fix Released
Status in “gcc-4.8” source package in Trusty:
  In Progress
Status in “gcc-4.9” source package in Trusty:
  Invalid
Status in “gcc-4.8” package in Debian:
  Fix Released
Status in “gcc-4.9” package in Debian:
  Fix Released

Bug description:
  Ubuntu builds gdb's Python support against Python 3, but the STL
  pretty-printers shipped with libstdc++ don't support Python 3:

  (gdb) python
  >import os, sys
  >stldir = '/usr/share/gcc-4.7/python/'
  >if os.path.isdir(stldir):
  >  sys.path.insert(0, stldir)
  >  from libstdcxx.v6.printers import register_libstdcxx_printers
  >  register_libstdcxx_printers (None)
  >end
  Traceback (most recent call last):
    File "<string>", line 5, in <module>
    File "/usr/share/gcc-4.7/python/libstdcxx/v6/printers.py", line 45
      raise ValueError, "Cannot find type %s::%s" % (str(orig), name)
                      ^
  SyntaxError: invalid syntax
  Error while executing Python code.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: gcc-4.8 4.8.1-10ubuntu9
  ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
  Uname: Linux 3.11.0-13-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.1
  Architecture: amd64
  Date: Fri Nov 29 15:06:03 2013
  InstallationDate: Installed on 2012-12-02 (362 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  MarkForUpload: True
  SourcePackage: gcc-4.8
  UpgradeStatus: Upgraded to saucy on 2013-10-19 (41 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1256419/+subscriptions



More information about the foundations-bugs mailing list