Hi, the stage3 tarball (eg. stage3-amd64-20131226.tar.bz2) does not have "bc" included, so a kernel compile fails because of this: ... CC mm/madvise.o BC kernel/timeconst.h /bin/sh: bc: command not found make[1]: *** [kernel/timeconst.h] Error 127 make: *** [kernel] Error 2 make: *** Waiting for unfinished jobs.... ... Kind regards, mdbuerkle Reproducible: Always Steps to Reproduce: 1. extract stage3 tarball, add resolv.conv, adjust make.conf, setup networking 2. USE=symlink emerge gentoo-sources 3. cd /usr/src/linux; make *config; make -j3 bzImage modules (I have special CFLAGS but I think they're irrelevant here.) Actual Results: make stops with error "bc not found" Expected Results: make compiles kernel and modules "unknown repository" is a very old (+5 years) install of gentoo with a partially completed "emerge -1vv --backtrack=30 portage gettext readline e2fsprogs util-linux expat sysvinit". Due to a partial emerge (it stopped in "Emerging (13 of 22) dev-lang/python-3.3.2-r2 for /mnt/gentoo/" with a "copying build/lib.linux-x86_64-3.3/ossaudiodev.cpython-33.so -> /var/tmp/portage/dev-lang/python-3.3.2-r2/image//usr/lib64/python3.3/lib-dynload // error: Function not implemented" and in the end " * ERROR: dev-lang/python-3.3.2-r2::gentoo failed (install phase): // * emake altinstall failed") that system has a mix of current and old packages installed... vdr ~ # chroot /root/portage-recover/stage3 vdr / # export ROOT=/mnt/gentoo vdr / # emerge --info Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.1.1, glibc-2.5, 2.6.19-suspend2-r1 x86_64) ================================================================= System uname: Linux-2.6.19-suspend2-r1-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.2 KiB Mem: 1025144 total, 77316 free KiB Swap: 2064344 total, 2063924 free Timestamp of tree: Wed, 15 Jan 2014 17:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.3.6::<unknown repository>, 2.4.4::<unknown repository> dev-util/pkgconfig: 0.21-r1::<unknown repository> sys-apps/baselayout: 1.12.9::<unknown repository> sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13::<unknown repository>, 2.61::<unknown repository> sys-devel/automake: 1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10::<unknown repository> sys-devel/binutils: 2.17::<unknown repository> sys-devel/gcc: 3.4.6-r2::<unknown repository>, 4.1.1-r3::<unknown repository> sys-devel/gcc-config: 1.3.14::<unknown repository> sys-devel/libtool: 1.5.22::<unknown repository> sys-devel/make: 3.81::<unknown repository> sys-kernel/linux-headers: 2.6.19.2-r1::<unknown repository> (virtual/os-headers) sys-libs/glibc: 2.5::<unknown repository> Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/conf.d /etc/make.conf /etc/portage /etc/rsyncd.conf" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/pam.d /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=athlon64 -mno-align-stringops -O2 -falign-functions=64 -falign-loops=64 -pipe" DISTDIR="/usr/portage/distfiles" 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://lapmdb-hpl ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/" 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="" SYNC="rsync://192.168.178.20/portage" USE="X acl acpi alsa amd64 apache2 bash-completion berkdb bindist browserplugin bzip2 cdr cli cracklib crypt curl cxx dri dvd dvdr dvdread gdbm gnome gtk gtk2 iconv imap ipv6 mmap mmx modules mozilla mudflap multilib ncurses nls nptl nptl-only oggvorbis openal openmp pam pcre readline session sse sse2 ssl tcpd theora unicode xml xml2 xmlrpc xv 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr" LIRC_DEVICES="com1" 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="fbdev 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON workaround: "emerge bc".
*** This bug has been marked as a duplicate of bug 494952 ***