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

Nelson Elhage nelhage at nelhage.com
Fri Nov 29 20:08:35 UTC 2013


Public bug reported:

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)

** Affects: gcc-4.8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug saucy

-- 
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:
  New

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