* Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.27-gentoo-r2 * Checking for suitable kernel configuration options...  [ ok ] >>> Unpacking source... >>> Unpacking IS_Linux_STA_6x_D_1.1.1.0.tar.gz to /var/tmp/portage/net-wireless/ralink-rt61-1.1.1.0/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-wireless/ralink-rt61-1.1.1.0/work/IS_Linux_STA_6x_D_1.1.1.0 ... * Applying rtmp_main.diff ...  [ ok ] * Preparing rt61 module make -j14 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= make -C /lib/modules/2.6.27-gentoo-r4/build SUBDIRS=/var/tmp/portage/net-wireless/ralink-rt61-1.1.1.0/work/IS_Linux_STA_6x_D_1.1.1.0/Module modules make: *** /lib/modules/2.6.27-gentoo-r4/build: No such file or directory. Stop. make: *** [all] Error 2 * * ERROR: net-wireless/ralink-rt61-1.1.1.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3285: Called linux-mod_src_compile * environment, line 2527: Called die * The specific snippet of code: * eval "emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/net-wireless/ralink-rt61-1.1.1.0:20081208-204559.log'. * The ebuild environment file is located at '/var/tmp/portage/net-wireless/ralink-rt61-1.1.1.0/temp/environment'. *