Bug 15809 - Python3: no usable python found
Summary: Python3: no usable python found
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: 7.6
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-31 14:14 UTC by asthompson
Modified: 2013-08-05 13:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.