Portage 2.0.54 (default-linux/sparc/sparc64/2005.0, gcc-3.3.5-20050130, glibc-2.3.3.20040420-r2, 2.4.31-sparc sparc64) ================================================================= System uname: 2.4.31-sparc sparc64 sun4u Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmai l/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=ultrasparc -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://gentoo.mirrors.pair.com/ http://mirror.tucdemonic.org/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="sparc aalib apache2 arts avi bash-completion berkdb bitmap-fonts bzip2 clamav crypt cups dl loader encode esd expat fam fbcon flash foomaticdb fortran freetds gcc64 gd gdbm gif gpm imap im lib java jpeg libwww mad maildir mcal mhash mikmod ming mozilla mpeg mysql ncurses nls no-htdocs oggvorbis oss pam pcre pdflib perl png python readline ruby samba sasl sdl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev vhosts xml xml2 xmms zlib userland_GNU kernel_lin ux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY I am booted and chrooted with the livecd into my system...2.6 system but i cant compile gentoo-sources 2.6.15 r2 and r3. here what i get: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 * Applying 4315_ahci-jmb363.patch (-p0+) ... [ ok ] * Applying 4320_promise-pdc2037x.patch (-p0+) ... [ ok ] * Applying 4351_megaraid-compatibility.patch (-p0+) ... [ ok ] * Applying 4500_fbsplash-0.9.2-r5.patch (-p0+) ... [ ok ] * Applying 4501_fbsplash-early-splash-fix.patch (-p0+) ... [ ok ] * Applying 4505_vesafb-tng-1.0-rc1-r3.patch (-p0+) ... [ ok ] * Applying 4705_squashfs-2.2.patch (-p0+) ... [ ok ] * Applying 4900_speakup-20060103.patch (-p0+) ... [ ok ] * Applying 4901_speakup-highlight-tracking-amd64.patch (-p0+) ... [ ok ] * Applying 4905_alpha-sysctl-uac.patch (-p0+) ... [ ok ] awk: cmd. line:1: fatal: cannot open file `/var/tmp/portage/gentoo-sources-2.6.15-r3/work/linux-2.6.15-gentoo-r3/include/linux/version.h' for reading (No such file or directory) /bin/sh: -c: line 0: unexpected EOF while looking for matching `"' /bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [include/linux/version.h] Error 2 !!! ERROR: sys-kernel/gentoo-sources-2.6.15-r3 failed. !!! Function unpack_2_6, Line 334, Exitcode 2 !!! make include/linux/version.h failed !!! If you need support, post the topmost build error, NOT this status message.
come to find out it was because /dev/null was a regular file. rm -f /dev/null cd /dev mknod null c 1 3 fixed the problem