make couldn't find file /usr/src/linux/scripts/mod/modpost while emerging and fails Reproducible: Always Steps to Reproduce: 1. emerge submount Actual Results: [skipped some output] * Preparing subfs module make -C /usr/src/linux M=/var/tmp/portage/submount-0.9-r2/work/submount-0.9/subfs-0.9 modules make[1]: Entering directory `/usr/src/linux-2.6.10-r1' CC [M] /var/tmp/portage/submount-0.9-r2/work/submount-0.9/subfs-0.9/subfs.o Building modules, stage 2. MODPOST /bin/sh: line 1: scripts/mod/modpost: No such file or directory make[2]: *** [__modpost] Ошибка 127 make[1]: *** [modules] Ошибка 2 make[1]: Leaving directory `/usr/src/linux-2.6.10-r1' make: *** [default] Ошибка 2 workaround is: 1. cd /usr/src/linux/ 2. make scripts/mod/
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10 i686) ================================================================= System uname: 2.6.10 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 12 2005, 01:59:25)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.6.3, 1.4_p6, 1.7.9-r1, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://10.0.0.10/linux/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.icd.hu/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at/ http://gentoo.zie.pg.gda.pl http://gentoo.eliteitminds.com http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.du.se/pub/os/gentoo http://ftp.heanet.ie/pub/gentoo/" LANG="ru_RU.ISO8859-5" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.0.10/portage/" USE="x86 3dnow X aalib acl alsa apm arts avi berkdb bitmap-fonts cdr cscope cups curl emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline samba scanner sdl slang spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
The modpost script is generated when you build your kernel. I don't see why it wouldn't be there unless you manually removed it.