Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482338 - =dev-libs/gobject-introspection-1.36 - conftest.c:45:20: fatal error: Python.h: No such file or directory
Summary: =dev-libs/gobject-introspection-1.36 - conftest.c:45:20: fatal error: Python....
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 485040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-24 16:51 UTC by Willie Wong
Modified: 2013-09-15 20:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,95.51 KB, text/plain)
2013-08-24 16:53 UTC, Willie Wong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willie Wong 2013-08-24 16:51:17 UTC
When trying to emerge dev-libs/gobject-introspection-1.36.0::gentoo it fails at the configuration phase with

checking for /usr/bin/python2.7 version... 2.7
checking for /usr/bin/python2.7 platform... linux2
checking for /usr/bin/python2.7 script directory... ${prefix}/lib/python2.7/site-packages
checking for /usr/bin/python2.7 extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for headers required to compile python extensions... ./configure: line 14602: /usr/bin/python2.7-config: No such file or directory
not found
configure: error: Python headers not found

Reproducible: Always

Steps to Reproduce:
1. emerge --oneshot =dev-libs/gobject-introspection-1.36.0

Actual Results:  
Fails in configuration phase

Expected Results:  
Continue to compile phase. 

Portage 2.2.1 (default/linux/x86/13.0, gcc-4.5.4, glibc-2.17, 3.4.4-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.4-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2
KiB Mem:     1020480 total,    140560 free
KiB Swap:    1048572 total,   1017160 free
Timestamp of tree: Sat, 24 Aug 2013 15:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0-r1000::progress
dev-lang/python:          2.7.4_pre20130210::progress, 3.2.4_pre20130113::progress
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.12.6
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo gentoo-zh science sunrise progress
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA skype-4.0.0.7-copyright dlj-1.1 AdobeFlash-11.x"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -floop-block -floop-strip-mine -floop-interchange -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -floop-block -floop-strip-mine -floop-interchange -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirrors.tds.net/gentoo"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-zh /usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/progress"
USE="X a52 aac aalib acpi alsa ass bash-completion bcmath bzip2 cairo canna cjk crypt css cups cxx dga directfb djvu dri dv enca encode exif expat fbcon ffmpeg firefox flac fontconfig fortran ftp gdbm gif gimp gnutls gphoto2 gpm graphviz gs gtk gtk3 iconv icu imagemagick imap imlib introspection ipv6 java javascript jpeg jpeg2k latex libcaca libwww lua lzo mad maildir matroska mbox mime mmx mmxext mng motif mp3 mp4 mpeg mplayer musepack ncurses network nls nptl nsplugin offensive ogg opengl pcmcia pcre pdf perl plotutils png posix postscript python quicktime readline sdl sftp simplexml smime soap sox spell sse sse2 ssl ssse3 stroke svg tcpd threads tiff timidity truetype udev unicode vcd vim vim-pager vim-syntax vorbis wavpack wifi wmf wxwidgets wxwindows x264 x86 xcb xcomposite xinetd xml xorg xpm xrandr xv xvid xvmc zh_TW zlib" ABI_X86="32" CAMERAS="canon sony_dscf1 sony_dscf55 template ptp2 directory" CURL_SSL="gnutls" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval graph2dot ismindex" INPUT_DEVICES="mouse keyboard synaptics tslib evdev void" KERNEL="linux" LINGUAS="en en_US en_GB fr zh_TW zh" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Willie Wong 2013-08-24 16:53:42 UTC
Created attachment 356880 [details]
config.log
Comment 2 Willie Wong 2013-08-24 16:55:31 UTC
Ah, also, I indeed do not have /usr/bin/python2.7-config. 

~ $ ls /usr/bin/python*
/usr/bin/python     /usr/bin/python3        /usr/bin/python-config-2.7  /usr/bin/python-exec-c
/usr/bin/python2    /usr/bin/python3.2      /usr/bin/python-config-3.2  /usr/bin/python-wrapper
/usr/bin/python2.7  /usr/bin/python-config  /usr/bin/python-exec

Should the configuration script have called python-config-2.7 instead?
Comment 3 Pacho Ramos gentoo-dev 2013-08-25 07:16:15 UTC
(In reply to Willie Wong from comment #2)
[...]
> Should the configuration script have called python-config-2.7 instead?

Yes, it's provided by python ebuild:
 # equery b python2.7-config
 * Searching for python2.7-config ... 
dev-lang/python-2.7.5 (/usr/bin/python2.7-config)
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-08-25 15:32:44 UTC
As reported by emerge --info, your python installation is not the one found in portage, please try with that first.
Comment 5 Willie Wong 2013-08-25 17:46:05 UTC
Thanks! Updating python:2.7 did the trick. Now things build fine.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-08-25 21:57:56 UTC
ok closing invalid then. thanks for the update.
Comment 7 Pacho Ramos gentoo-dev 2013-09-15 20:20:17 UTC
*** Bug 485040 has been marked as a duplicate of this bug. ***