Am 16.05.2013 14:46, schrieb Neil Bothwick:
> On Thu, 16 May 2013 14:38:55 +0200, Tamer Higazi wrote:
> 
>> I uninstalled the linux-headers and the kernel-sources by accident, how
>> can I install then again?! Any ideas?!
> 
> emerge -1 linux-headers gentoo-sources
>

It just tried that, out of curiosity:

I uninstalled linux-headers, and while trying to reinstall them, I get
this error:

>>> Install linux-headers-3.9 into
/var/tmp/portage/sys-kernel/linux-headers-3.9/image/ category sys-kernel
make -j5 headers_install
INSTALL_HDR_PATH=/var/tmp/portage/sys-kernel/linux-headers-3.9/image///usr/include/..
ARCH=x86 CROSS_COMPILE=x86_64-pc-linux-gnu-
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  WRAP    arch/x86/include/generated/asm/clkdev.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  HOSTCC  arch/x86/tools/relocs
In file included from /usr/include/errno.h:35:0,
                 from arch/x86/tools/relocs.c:6:
/usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such
file or directory
compilation terminated.
make[1]: *** [arch/x86/tools/relocs] Error 1
make: *** [archscripts] Error 2
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: sys-kernel/linux-headers-3.9 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 2830:  Called kernel-2_src_install
 *   environment, line 2006:  Called install_headers
 *   environment, line 1895:  Called die
 * The specific snippet of code:
 *           emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/..
${xmakeopts} || die;
 *
 * If you need support, post the output of `emerge --info
'=sys-kernel/linux-headers-3.9'`,
 * the complete build log and the output of `emerge -pqv
'=sys-kernel/linux-headers-3.9'`.
 * The complete build log is located at
'/var/tmp/portage/sys-kernel/linux-headers-3.9/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-kernel/linux-headers-3.9/temp/environment'.
 * Working directory:
'/var/tmp/portage/sys-kernel/linux-headers-3.9/work/gentoo-headers-base-3.9'
 * S:
'/var/tmp/portage/sys-kernel/linux-headers-3.9/work/gentoo-headers-base-3.9'


Luckily, I qpkg'ed linux-headers before.

Maybe you can try installing a binary package of linux-headers from
tinderbox? http://tinderbox.dev.gentoo.org/

> zcat /proc/config.gz >/usr/src/linux/.config
> 
>> I tried, but got at the linux-headers problems.....
> 
> How is anybody supposed to answer that? You tried something but you don't
> say what and it gave a problem, which you also keep to yourself. If you
> want helpful answers, you have to ask helpful questions.
> 

true

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to