[Bug 1258642] Re: gdb: Python 3 incompatible with libstdc++ pretty printers.

John Weldon johnweldon4 at gmail.com
Thu Apr 17 18:17:39 UTC 2014


Thanks Ryan;
You're right.  I'll try to fix the specific file I saw the error in. My error was:

S 11:11:34 [0]$ gdb juju.test 
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /mnt/build/go/src/launchpad.net/juju-core/juju.test...done.
  File "/usr/share/go/src/pkg/runtime/runtime-gdb.py", line 358
    print s, ptr['goid'], "%8s" % sts[long((ptr['status']))], blk.function
          ^
SyntaxError: invalid syntax
(gdb)

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

Title:
  gdb: Python 3 incompatible with libstdc++ pretty printers.

Status in “gcc-4.8” package in Ubuntu:
  New
Status in “gdb” package in Ubuntu:
  Confirmed

Bug description:
  gdb is now linked against python 3 but python 3 is incompatible with
  libstdc++'s pretty printers:

  Traceback (most recent call last):
    File "<string>", line 4, in <module>
    File "/usr/share/gcc-4.8/python/libstdcxx/v6/printers.py", line 54
      raise ValueError, "Cannot find type %s::%s" % (str(orig), name)
                      ^
  SyntaxError: invalid syntax
  /home/ruediger/.gdbinit:7: Error in sourced command file:
  Error while executing Python code.

  There is a proposed patch but it wasn't upstreamed yet: http://www
  .mail-archive.com/gcc-patches at gcc.gnu.org/msg65185.html

  I'd propose either to continue using python2 for gdb, fixing the
  details to get the patch upstream, or use a patched version downstream
  for now.

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



More information about the foundations-bugs mailing list