Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Emerging portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
midnightnerd
n00b
n00b


Joined: 28 Dec 2012
Posts: 24
Location: UT

PostPosted: Sat Feb 02, 2013 9:05 pm    Post subject: [Solved] Emerging portage Reply with quote

I am installing Gentoo and when I try to emerge portage it fails with
Code:
 ERROR: sys-apps/portage-2.1.11.31 failed (preinst phase):
 *   preinst sanity tests failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called pkg_preinst
 *   environment, line 2556:  Called die
 * The specific snippet of code:
 *               "$test_runner" || die "preinst sanity tests failed";
 *
 * If you need support, post the output of `emerge --info '=sys-apps/portage-2.1.11.31'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.1.11.31'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.11.31/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.11.31/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/portage-2.1.11.31'
 * S: '/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31'


Here is the emerge --info:
Code:

emerge --info '=sys-apps/portage-2.1.11.31'
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r3, 3.6.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.1
Timestamp of tree: Sat, 02 Feb 2013 19:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -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/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" 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 ubx" INPUT_DEVICES="keyboard mouse evdev vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-apps/portage-2.1.11.31 was built with the following:
USE="(ipc) (multilib) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl"


Here is the build.log:
Code:
 * Package:    sys-apps/portage-2.1.11.31
 * Repository: gentoo
 * Maintainer: dev-portage@gentoo.org
 * Upstream:   dev-portage@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc ipc kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking portage-2.1.11.31.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.11.31/work
>>> Source unpacked in /var/tmp/portage/sys-apps/portage-2.1.11.31/work
>>> Preparing source in /var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31 ...
 * Setting portage.VERSION to 2.1.11.31 ...
patching file make.conf
Hunk #1 succeeded at 22 (offset -1 lines).
Hunk #2 succeeded at 44 with fuzz 2 (offset 6 lines).
Hunk #3 succeeded at 106 (offset 15 lines).
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/portage-2.1.11.31

>>> Install portage-2.1.11.31 into /var/tmp/portage/sys-apps/portage-2.1.11.31/image/ category sys-apps
make -j3 DESTDIR=/var/tmp/portage/sys-apps/portage-2.1.11.31/image/ sysconfdir=/etc prefix=/usr install
set -e; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/cnf"; \
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//etc"; \
install -m0644 etc-update.conf dispatch-conf.conf "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//etc"; \
\
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/portage/config"; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/cnf"; \
install -m0644 make.globals \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/portage/config"; \
install -m0644 "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/cnf/make.conf" \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/portage/config/make.conf.example"; \
\
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/portage/config/sets"; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/cnf/sets"; \
install -m0644 *.conf "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/portage/config/sets"; \
\
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//etc/logrotate.d"; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/cnf/logrotate.d"; \
install -m0644 elog-save-summary \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//etc/logrotate.d"; \
\
for x in $(cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31" && find bin -type d) ; do \
   cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/$x"; \
   install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/$x"; \
   files=$(find . -mindepth 1 -maxdepth 1 -type f ! -type l); \
   if [ -n "$files" ] ; then \
      install -m0755 $files \
         "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/$x"; \
   fi; \
   symlinks=$(find . -mindepth 1 -maxdepth 1 -type l); \
   if [ -n "$symlinks" ] ; then \
      cp -P $symlinks "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/$x"; \
   fi; \
done; \
\
for x in $(cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31" && find pym/* -type d ! -path "pym/portage/tests*") ; do \
   cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/$x"; \
   files=$(echo *.py); \
   if [ -z "$files" ] || [ "$files" = "*.py" ]; then \
      # __pycache__ directories contain no py files \
      continue; \
   fi; \
   install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/$x"; \
   install -m0644 $files "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/$x"; \
done; \
\
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/bin"; \
relative_path=".."; \
x=/usr/bin ; \
y="/usr/lib/portage"; \
if [ "${x#/usr}" != "$x" ] && \
   [ "${y#/usr}" != "$y" ]; then \
   x=${x#/usr}; \
   y=${y#/usr}; \
fi; \
x=${x%/*}; \
while [ -n "$x" ] ; do \
   relative_path=${relative_path}/..; \
   x=${x%/*}; \
done; \
relative_path=$relative_path$y; \
for x in ebuild egencache emerge emerge-webrsync portageq quickpkg repoman ; do \
   ln -sf "$relative_path/bin/$x" \
      "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/bin/$x"; \
done; \
\
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/sbin"; \
relative_path=".."; \
x=/usr/sbin ; \
y="/usr/lib/portage"; \
if [ "${x#/usr}" != "$x" ] && \
   [ "${y#/usr}" != "$y" ]; then \
   x=${x#/usr}; \
   y=${y#/usr}; \
fi; \
x=${x%/*}; \
while [ -n "$x" ] ; do \
   relative_path=${relative_path}/..; \
   x=${x%/*}; \
done; \
relative_path=$relative_path$y; \
for x in archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld ; do \
   ln -sf "$relative_path/bin/$x" \
      "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/sbin/$x"; \
done; \
\
ln -sf "$relative_path/bin/env-update" \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/sbin/update-env"; \
ln -sf "$relative_path/bin/etc-update" \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/sbin/update-etc"; \
\
# We install some minimal tests for use as a preinst sanity check. \
# These tests must be able to run without a full source tree and \
# without relying on a previous portage instance being installed. \
install -d -m0755 \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/pym/portage/tests"; \
install -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/pym/portage/tests/runTests" \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/pym/portage/tests"; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/pym/portage/tests"; \
install -m0644 *.py \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/pym/portage/tests"; \
install -d -m0755 \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/pym/portage/tests/lint"; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/pym/portage/tests/lint"; \
install -m0644 *.py __test__ \
   "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/lib/portage/pym/portage/tests/lint"; \
\
install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31"; \
cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31"; \
install -m 0644 ChangeLog NEWS RELEASE-NOTES "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31"; \
\
for x in 1 5 ; do \
   install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/man/man$x"; \
   cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/man"; \
   install -m0644 *.$x "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/man/man$x"; \
done; \
\
if [ -f "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/doc/portage.html" ] ; then \
   install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31/html"; \
   cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31/doc"; \
   install -m0644 *.html "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31/html"; \
fi; \
\
if [ -d "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/epydoc" ] ; then \
   install -d -m0755 "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31/html"; \
   cp -pPR "/var/tmp/portage/sys-apps/portage-2.1.11.31/work/epydoc" \
      "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31/html/api"; \
   cd "/var/tmp/portage/sys-apps/portage-2.1.11.31/image//usr/share/doc/portage-2.1.11.31/html/api"; \
   find . -type d | xargs chmod 0755; \
   find . -type f | xargs chmod 0644; \
fi; \

>>> Completed installing portage-2.1.11.31 into /var/tmp/portage/sys-apps/portage-2.1.11.31/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
ecompressdir: bzip2 -9 /usr/share/man
 * Running preinst sanity tests...
Traceback (most recent call last):
  File "/var/tmp/portage/sys-apps/portage-2.1.11.31/image/usr/lib/portage/pym/portage/tests/runTests", line 47, in <module>
    if not path or not os.path.samefile(path[0], PORTAGE_BIN_PATH):
  File "/usr/lib64/python3.2/posixpath.py", line 174, in samefile
    s1 = os.stat(f1)
OSError: [Errno 2] No such file or directory: '/usr/lib64/ccache/bin'
 * ERROR: sys-apps/portage-2.1.11.31 failed (preinst phase):
 *   preinst sanity tests failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called pkg_preinst
 *   environment, line 2556:  Called die
 * The specific snippet of code:
 *               "$test_runner" || die "preinst sanity tests failed";
 *
 * If you need support, post the output of `emerge --info '=sys-apps/portage-2.1.11.31'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.1.11.31'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/portage-2.1.11.31/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.1.11.31/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/portage-2.1.11.31'
 * S: '/var/tmp/portage/sys-apps/portage-2.1.11.31/work/portage-2.1.11.31'
!!! FAILED preinst: 1



Help would be awesome.


Last edited by midnightnerd on Sat Feb 02, 2013 10:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Feb 02, 2013 10:34 pm    Post subject: Reply with quote

midnightnerd,

Did you by any chance enable ccache :?: Try disabling it if you did.

FEATURES="-ccache" emerge -1 portage
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
midnightnerd
n00b
n00b


Joined: 28 Dec 2012
Posts: 24
Location: UT

PostPosted: Sat Feb 02, 2013 10:42 pm    Post subject: Yeah... Reply with quote

Yeah, the ccache was enabled. Thats what I get for writing the make.conf at 1AM......

Thanks. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum