uber-archive/pyflame

Compilation of frob34.cc fails with Python.h not found

jackvreeken opened this issue · 3 comments

I am on a fully updated Ubuntu 16.04 system. For some reason the compilation process does not set the right include flags (which should be /usr/include/python3.5m).

./configure

checking for PY26... yes
checking for PY34... no
checking for PY35... yes
checking for PY36... no
configure: WARNING: Building without Python 3.6 support

make

libtool: link: ranlib .libs/libfrob26.a
libtool: link: ( cd ".libs" && rm -f "libfrob26.la" && ln -s "../libfrob26.la" "libfrob26.la" )
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.     -g -O2 -std=c++11 -Wall -MT libfrob34_la-frob34.lo -MD -MP -MF .deps/libfrob34_la-frob34.Tpo -c -o libfrob34_la-frob34.lo `test -f 'frob34.cc' || echo './'`frob34.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -g -O2 -std=c++11 -Wall -MT libfrob34_la-frob34.lo -MD -MP -MF .deps/libfrob34_la-frob34.Tpo -c frob34.cc  -fPIC -DPIC -o .libs/libfrob34_la-frob34.o
In file included from frob34.cc:18:0:
./frob.cc:28:20: fatal error: Python.h: No such file or directory
compilation terminated.

i'm able to reproduce your issue, working on patching.

@jmphilli I believe #89 has the fix, would like someone to confirm it though.

I tested this on a 16.04 VM, should work now.