Bug 2072 - python-dbus fails configure with "could not find Python headers"
Summary: python-dbus fails configure with "could not find Python headers"
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.2
Assignee: Tim Orling
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-03-12 16:27 UTC by Darren Hart
Modified: 2016-10-10 20:09 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2012-03-12 16:27:35 UTC
Building core-image-sato for fri2 on master HEAD:

OE Build Configuration:
BB_VERSION        = "1.15.1"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "fri2"
DISTRO            = "poky"
DISTRO_VERSION    = "1.1+snapshot-20120312"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta
meta-yocto        = "master:c27b7aab3c37f182bf9acc5d459185f32fb195d0"
meta-intel
meta-fri2         = "master:d9132cc66316be45f44beeea6eba734bb3ab337d"
meta-kernel-dev   = "master:a521d099327773574e26701397a2c0bc6fd66fd2"


| checking for a Python interpreter with version >= 2.6... python
| checking for python... /build/poky/fri2/tmp/sysroots/x86_64-linux/usr/bin/python
| checking for python version... 2.7
| checking for python platform... linux3
| checking for python script directory... ${prefix}/lib/python2.7/site-packages
| checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
| checking for Python headers using /build/poky/fri2/tmp/sysroots/x86_64-linux/usr/bin/python-config --includes... -I/build/poky/fri2/tmp/sysroots/fri2/usr/include/python2.7 -I/build/poky/fri2/tmp/sysroots/fri2/usr/include/python2.7
| checking whether those headers are sufficient... no
| configure: error: could not find Python headers
Comment 1 Saul Wold 2012-03-15 22:12:14 UTC
Could be sstate related, do not have a reproducer at this point.

Need to have a reproducer from Darren
Comment 2 Jessica 2012-03-29 23:31:40 UTC
Can't be reproduce
Comment 3 LETOURNEUR 2016-08-18 08:34:08 UTC
Hi!!!
I've got the same error!

|   File "<string>", line 22, in <module>
|   File "/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a string or other character buffer object
| ${libdir}/python2.7/site-packages
| checking for python extension module directory... Traceback (most recent call last):
|   File "<string>", line 22, in <module>
|   File "/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a string or other character buffer object
| ${libdir}/python2.7/site-packages
| checking for Python headers using /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/bin/python-native/python-config --includes... Traceback (most recent call last):
|   File "/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/bin/python-native/python-config", line 6, in <module>
|     from distutils import sysconfig
|   File "/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a string or other character buffer object
| failed, will try another way
| checking for Python headers in /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr and /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr... -I/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/include/python2.7
| checking whether those headers are sufficient... no
| configure: error: could not find Python headers
| NOTE: The following config.log files may provide further information.
| NOTE: /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/work/cortexa8hf-neon-oe-linux-gnueabi/python-dbus/1.2.0-r0/build/config.log
| ERROR: configure failed
| ERROR: Function failed: do_configure (log file is located at /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/work/cortexa8hf-neon-oe-linux-gnueabi/python-dbus/1.2.0-r0/temp/log.do_configure.17612)
ERROR: Task 5 (/md0/gletourneur/projects/openembedded/oe-core/meta-oe/meta-python/recipes-devtools/python/python-dbus_1.2.0.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1638 tasks of which 1637 didn't need to be rerun and 1 failed.
No currently running tasks (1637 of 1648)

Summary: 1 task failed:
  /md0/gletourneur/projects/openembedded/oe-core/meta-oe/meta-python/recipes-devtools/python/python-dbus_1.2.0.bb, do_configure

on python-dbus or postgresql....
Comment 4 Tim Orling 2016-10-10 20:09:38 UTC
Cannot reproduce with current python-dbus_1.2.4.bb in master. If you are continuing to see this issue, please provide additional details (host OS and version and logs).