Bug 15809

Summary: Python3: no usable python found
Product: gdb Reporter: asthompson
Component: pythonAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: tromey
Priority: P2    
Version: 7.6   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description asthompson 2013-07-31 14:14:26 UTC
Following the announcement of python3 support.  I have tried building gdb --with-python.  However this is failing to build with gdb-7.6.


python3.2.5:
  ./configure --prefix=/opt3
  make
  sudo make install

gdb with python:
  export LDFLAGS=-L/opt3/lib
  ./configure --with-python=/opt3/ --prefix=/opt3
  
checking for python2.7... no
checking for python2.6... no
checking for python2.5... no
checking for python2.4... no
configure: error: no usable python found at /opt3/

ls /opt3/lib/
libpython3.2m.a  pkgconfig  python3.2
Comment 1 Tom Tromey 2013-08-02 14:16:42 UTC
Does /opt3/bin/python exist?
There's a long comment in src/gdb/configure.ac that explains
the --with-python needs.
Comment 2 asthompson 2013-08-05 10:48:24 UTC
Thanks! 

The comments in configure.ac explained everything.  Worked fine once I pointed to the binary with-python instead of the prefix (which only works with python2)
Comment 3 Tom Tromey 2013-08-05 13:22:26 UTC
Fixed.