Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596812 - =net-libs/libcap-ng-0.7.7 with dev-lang/python-3.4.3-r1 - checking for python extension module directory... // FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.4/config-3.4m/Makefile'
Summary: =net-libs/libcap-ng-0.7.7 with dev-lang/python-3.4.3-r1 - checking for python...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-11 04:21 UTC by Alex Cannon
Modified: 2021-09-03 08:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cannon 2016-10-11 04:21:31 UTC
It appears to be looking in /usr/lib/python3.4/config-3.4m/Makefile which doesn't exist. PYTHON_TARGETS="python2_7 python3_4" fails but removing python3_4 allows it to work.

Here is the important part of the build log from the end:
checking for python version... 3.4
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.4/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.4/site-packages
Traceback (most recent call last):
  File "/usr/lib/python3.4/distutils/sysconfig.py", line 446, in _init_posix
    parse_makefile(filename, g)
  File "/usr/lib/python3.4/distutils/sysconfig.py", line 315, in parse_makefile
    fp = TextFile(fn, strip_comments=1, skip_blanks=1, join_lines=1, errors="surrogateescape")
  File "/usr/lib/python3.4/distutils/text_file.py", line 100, in __init__
    self.open(filename)
  File "/usr/lib/python3.4/distutils/text_file.py", line 115, in open
    self.file = io.open(self.filename, 'r', errors=self.errors)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.4/config-3.4m/Makefile'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.4/distutils/sysconfig.py", line 577, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python3.4/distutils/sysconfig.py", line 509, in get_config_vars
    func()
  File "/usr/lib/python3.4/distutils/sysconfig.py", line 452, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python3.4/config-3.4m/Makefile (No such file or directory)
configure: error: Python explicitly required and python headers found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-libs/libcap-ng-0.7.7/work/libcap-ng-0.7.7_build-python3_4/config.log
 * ERROR: sys-libs/libcap-ng-0.7.7::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  133:  Called src_configure
 *             environment, line 4259:  Called python_foreach_impl 'setup_python_flags_configure'
 *             environment, line 3715:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'setup_python_flags_configure'
 *             environment, line 2885:  Called _multibuild_run '_python_multibuild_wrapper' 'setup_python_flags_configure'
 *             environment, line 2883:  Called _python_multibuild_wrapper 'setup_python_flags_configure'
 *             environment, line  640:  Called setup_python_flags_configure
 *             environment, line 4257:  Called autotools-utils_src_configure
 *             environment, line  842:  Called econf '--docdir=/usr/share/doc/libcap-ng-0.7.7' '--enable-shared' '--disable-static' '--with-python' '--with-python3'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/libcap-ng-0.7.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libcap-ng-0.7.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/work/libcap-ng-0.7.7_build-python3_4'
 * S: '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/work/libcap-ng-0.7.7'

>>> Failed to emerge sys-libs/libcap-ng-0.7.7, Log file:

>>>  '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/temp/build.log'
 * Messages for package sys-libs/libcap-ng-0.7.7:
 * ERROR: sys-libs/libcap-ng-0.7.7::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  133:  Called src_configure
 *             environment, line 4259:  Called python_foreach_impl 'setup_python_flags_configure'
 *             environment, line 3715:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'setup_python_flags_configure'
 *             environment, line 2885:  Called _multibuild_run '_python_multibuild_wrapper' 'setup_python_flags_configure'
 *             environment, line 2883:  Called _python_multibuild_wrapper 'setup_python_flags_configure'
 *             environment, line  640:  Called setup_python_flags_configure
 *             environment, line 4257:  Called autotools-utils_src_configure
 *             environment, line  842:  Called econf '--docdir=/usr/share/doc/libcap-ng-0.7.7' '--enable-shared' '--disable-static' '--with-python' '--with-python3'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/libcap-ng-0.7.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libcap-ng-0.7.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/work/libcap-ng-0.7.7_build-python3_4'
 * S: '/var/tmp/portage/sys-libs/libcap-ng-0.7.7/work/libcap-ng-0.7.7'


Reproducible: Always




Portage 2.2.28 (python 3.4.3-final-0, default/linux/x86/13.0, gcc-4.7.3, glibc-2.22-r4, 3.2.72 i686)
=================================================================
System uname: Linux-3.2.72-i686-Pentium_III_-Coppermine-with-gentoo-2.2
KiB Mem:     2071616 total,    110524 free
KiB Swap:    4130940 total,   3864200 free
Timestamp of repository gentoo: Tue, 11 Oct 2016 03:30:01 +0000
sh bash 4.3_p46-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.1.5-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r2::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            3.4.6-r2::gentoo, 4.3.6-r1::gentoo, 4.5.4::gentoo, 4.7.3-r1::gentoo, 4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

twister
    location: /var/lib/layman/twister
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE IBM-J1.6"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=pentium3 -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 xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X a52 aac acc acl alsa apache2 apng bash-completion bazaar berkdb bittorrent bzip2 caps cgi chappa clang cli cpudetection cracklib crypt cups cvs cxx dbus dga divx4linux dlz dri dvd dvdread emacs encode esd esound examples extras faac faad fdformat finger fltk fontconfig fortran ftp gd gdbm geoip gif gimp git gnutella gnutls gopher gpg gpm gtk html hwdb iconv idn imagemagick imap imlib ipv6 jadetex javascript jpeg kdeenablefinal libcaca libopts live lzo mad math mbox minizip mmx mmxext mng modules motif mp2 mp3 mpeg mpi multinet nas ncurses nls nntp nptl offensive ogg oident openft openmp openssl pam pcre pcre16 perl png pnm policykit pop proxy_http python qt3support readline rtmp scripting seccomp server session sidebar smtp snmp socks5 speex sqlite sse ssl subversion suexec syslog tcl tcpd theora threads tiff tk truetype tty-helpers unicode usb vim-syntax vorbis x264 x86 xa xattr xinetd xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias ident proxy proxy_connect proxy_ftp proxy_http auth_digest" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr de es it nl ru sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Felix Janda 2016-10-11 10:33:16 UTC
My installation of dev-lang/python-3.4.5 has the file
/usr/lib/python3.4/config-3.4m/Makefile . Could you see whether
upgrading python helps?
Comment 2 Alex Cannon 2016-10-11 18:17:56 UTC
It worked. After adding the ~x86 keyword for python and then installing dev-lang/python-3.4.5:3.4/3.4m::gentoo the /usr/lib/python3.4/config-3.4m/ directory appeared. There is no config-3.4 directory without the m at the end. sys-libs/libcap-ng-0.7.7::gentoo is now installed with python3_4 enabled.

So for those who don't have ~x86 set it looks like this still could be an an issue.