Re: reinstall from stage 3 jef wrote:
> even linux-headers won't compile !
>
> *********************************
>>>> Compiling source in /var/tmp/portage/sys-kernel/linux-headers-2.6.23-
> r3/work/gentoo-headers-base-2.6.23 ...
>>>> Source compiled.
>>>> Test phase [not enabled]: sys-kernel/linux-headers-2.6.23-r3
>
>>>> Install linux-headers-2.6.23-r3 into /var/tmp/portage/sys-kernel/
> linux-headers-2.6.23-r3/image/ category sys-kernel
> CHK include/linux/version.h
> UPD include/linux/version.h
> HOSTCC scripts/unifdef
> In file included from /usr/include/ctype.h:28,
> from scripts/unifdef.c:66:
> /usr/include/bits/types.h:31:20: stddef.h: No such file or directory
> In file included from scripts/unifdef.c:67:
> /usr/include/err.h:26:20: stdarg.h: No such file or directory
> scripts/unifdef.c:69:21: stdbool.h: No such file or directory
For some reason, you have some include files that are missing. On my system,
stddef.h is in /usr/include/linux, while stdarg.h and stdbool.h are
in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include.
It seems you are experiencing major breakages and I'm afraid I can't help
you further here.
There may be, however, another path, but this requires that you have another
working (and preferably up-to-date) gentoo system. If that is the case, you
can issue the following command on that system:
# quickpkg linux-headers gcc glibc portage
While doing this, write down the version of gcc it packages.
After this, you will have binary tarballs for the above packages
under /usr/portage/packages. Copy (using a USB drive or any other means)
the whole /usr/portage/packages directory to your broken system. After the
copy, you should have recreated the same directory structure
under /usr/portage/packages. Now, issue this command:
# emerge -K linux-headers gcc glibc portage
This will install the packages using the binary tarballs you previously
built and transferred here. That shouldn't really need to compile anything,
just unpack the .tgz.
If the whole thing succeeds, you'll need to select the proper gcc version on
your system by using the command "gcc-config -l" and then "gcc-config <n>"
where <n> is the number corresponding to the version of gcc you just
installed, as shown by "gcc-config -l".
If you get this far, then you can try emerging something and see whether
that works.
Sorry, can't be of more help. |