1 |
On Mon, Þëè 3, 2006 1:22 am, Sven Köhler wrote: |
2 |
> Hi!, |
3 |
> |
4 |
> my gentoo just suprised me with the following: |
5 |
> |
6 |
> gwinet linux # pwd |
7 |
> /usr/src/linux |
8 |
> gwinet linux # make all |
9 |
> /bin/sh: -c: line 0: syntax error near unexpected token `(' |
10 |
> /bin/sh: -c: line 0: `set -e; echo ' CHK include/linux/version.h'; |
11 |
> mkdir -p include/linux/; if [ `echo -n "2.6.17.3 .file null |
12 |
> .ident GCC:(GNU)4.1.1(Gentoo4.1.1) .section .note.GNU-stack,,@progbits" |
13 |
> | wc -c ` -gt 64 ]; then echo '"2.6.17.3 .file null .ident |
14 |
> GCC:(GNU)4.1.1(Gentoo4.1.1) .section .note.GNU-stack,,@progbits" exceeds |
15 |
> 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.17.3 |
16 |
> .file null .ident GCC:(GNU)4.1.1(Gentoo4.1.1) .section |
17 |
> .note.GNU-stack,,@progbits\"; echo \#define LINUX_VERSION_CODE `expr 2 |
18 |
> \\* 65536 + 6 \\* 256 + 17`; echo '#define KERNEL_VERSION(a,b,c) (((a) |
19 |
> << 16) + ((b) << 8) + (c))'; ) < /usr/src/linux-2.6.17.3/Makefile > |
20 |
> include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s |
21 |
> include/linux/version.h include/linux/version.h.tmp; then rm -f |
22 |
> include/linux/version.h.tmp; else echo ' UPD |
23 |
> include/linux/version.h'; mv -f include/linux/version.h.tmp |
24 |
> include/linux/version.h; fi' |
25 |
> make: *** [include/linux/version.h] Error 2 |
26 |
> |
27 |
|
28 |
Make a copy of your .config file if don't use /proc/config.gz. |
29 |
|
30 |
Then do: |
31 |
1) cd /usr/src/linux |
32 |
2) make mrproper |
33 |
3) zcat /proc/config.gz > .config |
34 |
( or copy back .config in /usr/src/linux ) |
35 |
4) make oldconfig |
36 |
5) make menuconfig |
37 |
6) make |
38 |
7) Do your kernel installation procedure |
39 |
|
40 |
The most important part is "make mrproper". If compilation fails after this you |
41 |
better rm -rf /usr/src/"your-version" and emerge a fresh copy of the sources you |
42 |
use. For example |
43 |
"emerge gentoo-sources" |
44 |
|
45 |
HTH |
46 |
-- |
47 |
Best regards, |
48 |
Daniel |
49 |
|
50 |
-- |
51 |
gentoo-user@g.o mailing list |