Trying to emerge python-3.3.3 fails: >>> Install python-3.3.3 into /var/tmp/portage/dev-lang/python-3.3.3/image/ category dev-lang make -j1 DESTDIR=/var/tmp/portage/dev-lang/python-3.3.3/image/ altinstall Creating directory /usr/bin Creating directory /usr/lib64 /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c python /var/tmp/portage/dev-lang/python-3.3.3/image//usr/bin/python3.3 if test "3.3" != "3.3"; then \ if test -f /var/tmp/portage/dev-lang/python-3.3.3/image//usr/bin/python3.3 -o -h /var/tmp/portage/dev-lang/python-3.3.3/image//usr/bin/python3.3; \ then rm -f /var/tmp/portage/dev-lang/python-3.3.3/image//usr/bin/python3.3; \ fi; \ (cd /var/tmp/portage/dev-lang/python-3.3.3/image//usr/bin; ln python3.3 python3.3); \ fi if test -f libpython3.3.so; then \ if test -n "" ; then \ /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c -m 555 /var/tmp/portage/dev-lang/python-3.3.3/image//usr/bin; \ else \ /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c -m 555 libpython3.3.so /var/tmp/portage/dev-lang/python-3.3.3/image//usr/lib64/libpython3.3.so.1.0; \ if test libpython3.3.so != libpython3.3.so.1.0; then \ (cd /var/tmp/portage/dev-lang/python-3.3.3/image//usr/lib64; ln -sf libpython3.3.so.1.0 libpython3.3.so) \ fi \ fi; \ if test -n "libpython3.so"; then \ /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c -m 555 libpython3.so /var/tmp/portage/dev-lang/python-3.3.3/image//usr/lib64/libpython3.so; \ fi; \ else true; \ fi LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/python-3.3.3/work/x86_64-pc-linux-gnu: ./python -E -S -m sysconfig --generate-posix-vars Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Lib/runpy.py", line 160, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Lib/runpy.py", line 73, in _run_code exec(code, run_globals) File "/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Lib/sysconfig.py", line 721, in <module> _main() File "/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Lib/sysconfig.py", line 709, in _main _generate_posix_vars() File "/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Lib/sysconfig.py", line 414, in _generate_posix_vars os.makedirs(pybuilddir, exist_ok=True) File "/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Lib/os.py", line 269, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists (mode 775 != expected mode 755): 'build/lib.linux-x86_64-3.3' Makefile:502: recipe for target 'pybuilddir.txt' failed make: *** [pybuilddir.txt] Error 1 Reproducible: Always Steps to Reproduce: MAKEOPTS=-j1 emerge =dev-lang/python-3.3.3 Actual Results: python-3.3.3 fails to emerge Expected Results: python-3.3.3 emerges Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.12.0-gentoo-devlight-1 x86_64) ================================================================= System uname: Linux-3.12.0-gentoo-devlight-1-x86_64-Intel-R-_Core-TM-_i7_CPU_960_@_3.20GHz-with-gentoo-2.2 KiB Mem: 6106996 total, 151976 free KiB Swap: 11718652 total, 11659332 free Timestamp of tree: Mon, 09 Dec 2013 19:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.6, 3.3.2-r2 dev-util/cmake: 2.8.12 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.13.4, 1.14 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0 sys-kernel/linux-headers: 3.12 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=corei7 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=corei7 -pipe" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4" FCFLAGS="-O2 -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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/usr/lib/systemd/system /lib/systemd" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/var/portage/packages" PORTAGE_COMPRESS="xz" 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="/var/portage/repos/gentoo" PORTDIR_OVERLAY="" USE="X aac acl acpi alsa amd64 apng avx bash-completion bzip2 cairo caps cdda cdio cli consolekit cracklib crypt cups curl cxx dbus device-mapper dri dvd egl exif ffmpeg fftw flac fuse gif git gmp gnome-keyring gpm gtk iconv ipv6 ithreads jbit jpeg jpeg2k lcms libffi libnotify lzma lzo mad mmap mmx mmxext mng modules mp3 mtp mudflap multilib ncurses networking nptl ogg openal opengl openmp openssl openvg opus pam pcre pdf png pnm policykit python readline session sndfile spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg theora threads tiff truetype udev unicode usb usbredir vaapi vdpau vim vim-syntax vorbis vpx x264 xattr xcb xinerama xorg xv zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb 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" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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" USE_PYTHON="2.7 3.3" Unset: CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
I get the exact same error on Gentoo/prefix on a amd64-linux host.
What is your umask set to?
/etc/login.defs:UMASK 022 /etc/profile:umask 022
Same problem, solved by removing ACLs on /var/tmp folder : setfacl -R -b /var/tmp
Same error on a fresh amd64 stable installation. # setfacl -R -b /var/tmp did not help. umask says 0022. $ emerge --info Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.17.7-gentoo x86_64) ================================================================= System uname: Linux-3.17.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2 KiB Mem: 1023424 total, 432084 free KiB Swap: 0 total, 0 free Timestamp of tree: Wed, 21 Jan 2015 00:45:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p33 dev-lang/perl: 5.18.2-r2 dev-lang/python: 2.7.9-r1, 3.3.5-r1, 3.4.1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/iproute2 /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask-write" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ http://de-mirror.org/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4 -l2" PKGDIR="/var/cache/portage/packages/amd64_i7" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="--x86" 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" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv mmx modules multilib ncurses nls nptl openmp optimization pam pcre readline session smp sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 strong-optimization tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb 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" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vmware" 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: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Mass closing of bugs reported against old versions of dev-lang/python. If the problem still occurs with the current versions (i.e. newest in each visible slot), feel free to reopen.