Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566372 - sys-apps/portage-2.2.25: egencache traceback - AttributeError: 'module' object has no attribute 'Error'
Summary: sys-apps/portage-2.2.25: egencache traceback - AttributeError: 'module' objec...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 566676 566712 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-21 08:24 UTC by Ryan Hill (RETIRED)
Modified: 2016-03-14 04:00 UTC (History)
4 users (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 Ryan Hill (RETIRED) gentoo-dev 2015-11-21 08:24:57 UTC
$ egencache --repo="gentoo" --update
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 107, in check_locale
    except locale.Error:
AttributeError: 'module' object has no attribute 'Error'
[...]
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/egencache", line 1202, in <module>
    sys.exit(egencache_main(sys.argv[1:]))
  File "/usr/lib/python-exec/python2.7/egencache", line 1119, in egencache_main
    gen_cache.run()
  File "/usr/lib/python-exec/python2.7/egencache", line 383, in run
    signum = run_main_scheduler(self._regen)
  File "/usr/lib64/python2.7/site-packages/portage/util/_async/run_main_scheduler.py", line 26, in run_main_scheduler
    scheduler.start()
  File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib64/python2.7/site-packages/portage/util/_async/AsyncScheduler.py", line 76, in _start
    self._schedule()
  File "/usr/lib64/python2.7/site-packages/_emerge/PollScheduler.py", line 127, in _schedule
    self._schedule_tasks()
  File "/usr/lib64/python2.7/site-packages/portage/util/_async/AsyncScheduler.py", line 56, in _schedule_tasks
    task.start()
  File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib64/python2.7/site-packages/_emerge/EbuildMetadataPhase.py", line 119, in _start
    fd_pipes=fd_pipes, returnpid=True)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 789, in doebuild
    fd_pipes=fd_pipes, returnpid=returnpid)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 178, in _spawn_phase
    returnpid=returnpid, logfile=logfile, **kwargs)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 169, in _doebuild_spawn
    return spawn(cmd, settings, **portage._native_kwargs(kwargs))
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 1626, in spawn
    return spawn_func(mystring, env=mysettings.environ(),
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2786, in environ
    raise AssertionError("C locale did not pass the test!")
AssertionError: C locale did not pass the test!


Portage 2.2.25 (python 2.7.10-final-0, default/linux/amd64/13.0/developer, gcc-5.2.0, glibc-2.22-r1, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3920XM_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    32596520 total,    191532 free
KiB Swap:    1048572 total,   1048572 free
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r3::gentoo, 3.4.3-r2::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.0::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo, 5.2.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git+ssh://git@git.gentoo.org/repo/gentoo.git
    priority: -1000

local
    location: /home/dirtyepic/overlay
    sync-type: git
    sync-uri: git+ssh://git@github.com:dirtyepic/overlay.git
    masters: gentoo
    priority: 0

games-overlay
    location: /var/lib/layman/games-overlay
    sync-type: laymansync
    sync-uri: git://github.com/hasufell/games-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/src/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --nospinner"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-logs ccache clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 V=1"
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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2015-11-21 08:42:14 UTC
But I'm not seeing it on another system using pretty much the same config.

Portage 2.2.25 (python 2.7.10-final-0, default/linux/amd64/13.0/developer, gcc-5.2.0, glibc-2.22-r1, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-4910MQ_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    32838104 total,  25429156 free
KiB Swap:    1048572 total,   1048572 free
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r3::gentoo, 3.3.5-r2::gentoo, 3.4.3-r2::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.0::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo, 5.2.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git+ssh://git@git.gentoo.org/repo/gentoo.git
    priority: -1000

local
    location: /home/rhill/overlay
    sync-type: git
    sync-uri: git+ssh://git@github.com:dirtyepic/overlay.git
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -march=native -g -pipe"
DISTDIR="/usr/src/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --nospinner"
FCFLAGS="-O2 -march=native -g -pipe"
FEATURES="assume-digests binpkg-logs ccache cgroup clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -g -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 V=1"
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"
USE_PYTHON="2.7 3.3 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I wiped out md5-cache and resynced and still get the same error.
Comment 2 Nicolas Porcel 2015-11-21 14:43:52 UTC
I have the same problem, and changing from python2.7 to python3.4 fixes the problem. This is only a workaround.
Comment 3 Zac Medico gentoo-dev 2015-11-21 18:13:06 UTC
This is fixed in the master branch:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=ab7efe823ace977d8b46f324bdcbf44dcb7ca6d9
Comment 4 Jochen Schlick 2015-11-21 18:43:23 UTC
I have this problem too on various systems 3bit/64bit, kvm, lxc .... 

switching to python-3.4 is the only thing that helps
Comment 5 Zac Medico gentoo-dev 2015-11-22 20:23:16 UTC
(In reply to Zac Medico from comment #3)
> This is fixed in the master branch:
> 
> https://gitweb.gentoo.org/proj/portage.git/commit/
> ?id=ab7efe823ace977d8b46f324bdcbf44dcb7ca6d9

It's been reported that it fails as follows with the above patch applied:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 106, in check_locale
    locale.setlocale(locale.LC_CTYPE, mylocale)
  File "/usr/lib64/python2.7/locale.py", line 578, in setlocale
    locale = normalize(_build_localename(locale))
  File "/usr/lib64/python2.7/locale.py", line 485, in _build_localename
    language, encoding = localetuple
ValueError: too many values to unpack
Comment 6 Zac Medico gentoo-dev 2015-11-22 20:55:53 UTC
(In reply to Zac Medico from comment #5)
>   File "/usr/lib64/python2.7/locale.py", line 485, in _build_localename
>     language, encoding = localetuple
> ValueError: too many values to unpack

Fixed in the master branch now:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=59f2371c58ea6942ad441d8238600c21cda1c014
Comment 7 Zac Medico gentoo-dev 2015-11-23 22:23:03 UTC
*** Bug 566676 has been marked as a duplicate of this bug. ***
Comment 8 Konstantin (elxa) 2015-11-23 23:47:56 UTC
I had to downgrade to portage-2.2.24 because I was unable to complete a @world update. The world update pulled in sys-process/nmon-15h, which uses EAPI 6. The error is easily reproducable with

# emerge -pvO =nmon-15h

These are the packages that would be merged, in order:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 107, in check_locale
    except locale.Error:
AttributeError: 'module' object has no attribute 'Error'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 107, in check_locale
    except locale.Error:
AttributeError: 'module' object has no attribute 'Error'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 107, in check_locale
    except locale.Error:
AttributeError: 'module' object has no attribute 'Error'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 107, in check_locale
    except locale.Error:
AttributeError: 'module' object has no attribute 'Error'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/locale.py", line 107, in check_locale
    except locale.Error:
AttributeError: 'module' object has no attribute 'Error'


!!! Problem in '=sys-process/nmon-15h' dependencies.
!!! C locale did not pass the test! None
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1174, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3231, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 324, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9152, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9189, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3583, in select_files
    return self._select_files(args)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3926, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3990, in _resolve
    myroot, atom, onlydeps=onlydeps)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5288, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5494, in _select_pkg_highest_available_imp
    root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5790, in _wrapped_select_pkg_highest_available_imp
    onlydeps=onlydeps):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5206, in _iter_match_pkgs_atom
    installed=installed, onlydeps=onlydeps, myrepo=repo)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 6488, in _pkg
    metadata = zip(db_keys, db.aux_get(cpv, db_keys, myrepo=myrepo))
  File "/usr/lib64/python2.7/site-packages/portage/dbapi/porttree.py", line 532, in aux_get
    proc.start()
  File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib64/python2.7/site-packages/_emerge/EbuildMetadataPhase.py", line 119, in _start
    fd_pipes=fd_pipes, returnpid=True)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 789, in doebuild
    fd_pipes=fd_pipes, returnpid=returnpid)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 178, in _spawn_phase
    returnpid=returnpid, logfile=logfile, **kwargs)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 169, in _doebuild_spawn
    return spawn(cmd, settings, **portage._native_kwargs(kwargs))
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 1626, in spawn
    return spawn_func(mystring, env=mysettings.environ(),
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2786, in environ
    raise AssertionError("C locale did not pass the test!")
AssertionError: C locale did not pass the test!




After I downgraded portage:

# emerge --info
Portage 2.2.24 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.2.0, glibc-2.22-r1, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:    20397516 total,   1075864 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 23 Nov 2015 22:41:48 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r3::gentoo, 3.3.5-r2::gentoo, 3.4.3-r2::gentoo, 3.5.0-r1::gentoo
dev-util/cmake:           3.4.0-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::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:            4.9.3::gentoo, 5.2.0::local
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo

bumblebee
    location: /var/lib/layman/bumblebee
    sync-type: laymansync
    sync-uri: git://github.com/Bumblebee-Project/bumblebee-gentoo
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/gnome.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

sublime-text
    location: /var/lib/layman/sublime-text
    sync-type: laymansync
    sync-uri: git://github.com/DamnWidget/sublime-text.git
    masters: gentoo
    priority: 50

tox-overlay
    location: /var/lib/layman/tox-overlay
    sync-type: laymansync
    sync-uri: git://github.com/Tox/gentoo-overlay-tox.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

Installed sets: @ebftpd, @netflix-vector, @pts, @pyshaper, @qt5-addons, @qt5-essentials, @tox
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=native -O2  -fomit-frame-pointer  "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -march=native -O2  -fomit-frame-pointer  "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=6 --keep-going --autounmask=n"
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="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
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"
USE="X a52 aac aacplus acl acpi aes aio airplay amd64 audit avahi avx berkdb bluetooth bluray branding bs2b bzip2 cairo call caps cdda cdio cdr clang cli clutter colord connection-sharing cracklib crypt cryptsetup css cups custom-cflags custom-cpuopts custom-optimization cxx dbus dri dts dvd dvdnav dvdr eds efi emboss encode evo exif faac fam ffmpeg firefox flac fontconfig fortran fprint gdbm geoip gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle hdaps highlight hires-icons iconv icq icu infinality introspection ios ipod ipv6 irc jabber jpeg lame laptop lastfm lcms ldap libnotify libsamplerate libsecret libsoxr lzma mad map mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp openssl optimization optimized-qmake pam pango pch pcre pdf pgo playlist png policykit popcnt ppds pulseaudio qemu qt3support qt4 readline scanner sdl seccomp sendto session sip sna spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification strong-optimization svg systemd taglib tcpd telepathy theora threads thunderbird tiff tls truetype twolame udev udisks unicode upower usb v4l vaapi vdpau virt-network vnc vorbis vpx wavpack webm webp webrtc-aec wifi wxwidgets x264 x265 xattr xcb xinerama xml xv xvid zeitgeist zeroconf 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="biosdevname crypt systemd" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" NETBEANS_MODULES="cnd enterprise gsf ide j2ee java javafx nb profiler xml soa visualweb webcommon websvccommon mobility" NGINX_MODULES_HTTP="addition" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




# locale
LANG=en_US.utf8
LC_CTYPE=en_US.utf8
LC_NUMERIC=en_US.utf8
LC_TIME=en_US.utf8
LC_COLLATE=en_US.utf8
LC_MONETARY=en_US.utf8
LC_MESSAGES=en_US.utf8
LC_PAPER=en_US.utf8
LC_NAME=en_US.utf8
LC_ADDRESS=en_US.utf8
LC_TELEPHONE=en_US.utf8
LC_MEASUREMENT=en_US.utf8
LC_IDENTIFICATION=en_US.utf8
LC_ALL=
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2015-11-24 12:12:22 UTC
*** Bug 566712 has been marked as a duplicate of this bug. ***
Comment 10 Russell Knighton 2015-11-27 11:52:44 UTC
Just encountered this on a server I was @world upgrading.

The server was running portage 2.2.25 when if had the problem (same error as  Konstantin reported relating to pulling in the sys-process/nmon-15h update), but updating to portage 2.2.26 seems to have fixed it for me.
Comment 11 Zac Medico gentoo-dev 2016-03-14 04:00:15 UTC
Fixed in 2.2.26.