1 |
On Sunday 25 April 2004 23:10, John Nilsson wrote: |
2 |
> what commands did you run to compile the kernel? |
3 |
|
4 |
The very ones I found in the handbook (except substituting gs-sources for |
5 |
gentoo-sources): |
6 |
# emerge gs-sources |
7 |
# ls -l /usr/src/linux |
8 |
lrwxrwxrwx 1 root root 24 Apr 23 10:21 /usr/src/linux -> |
9 |
linux-2.4.25_pre7-gss-r3 |
10 |
# cd /usr/src/linux |
11 |
# make mrproper (although this wasn't in the handbook, the README says to, |
12 |
so I did) |
13 |
# make menuconfig |
14 |
# make dep |
15 |
# make bzImage |
16 |
# make modules |
17 |
|
18 |
|
19 |
> Do you have the same problem with gentoo-sources? |
20 |
|
21 |
Yes. |
22 |
|
23 |
> |
24 |
> Try this: |
25 |
> cd /usr/src/linux && |
26 |
> cp .config .config.bak && |
27 |
> make mrproper && #remove config related files |
28 |
> cp .config.bak .config && |
29 |
|
30 |
make mrproper whacked my .config.bak, but I had another copy elsewhere. |
31 |
|
32 |
# cp -i /root/2kernel.config .config |
33 |
|
34 |
> make clean oldconfig dep && #redo config, redo dep (if needed...) |
35 |
> make bzImage modules #try to compile again |
36 |
> |
37 |
|
38 |
Same thing: |
39 |
gcc -D__KERNEL__ -I/usr/src/linux-2.4.25_pre7-gss-r3/include -Wall |
40 |
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common |
41 |
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 |
42 |
-DMODULE -DMODVERSIONS |
43 |
-include /usr/src/linux-2.4.25_pre7-gss-r3/include/linux/modversions.h |
44 |
-nostdinc -iwithprefix include -DKBUILD_BASENAME=lvm_fs -c -o lvm-fs.o |
45 |
lvm-fs.c |
46 |
ld -m elf_i386 -r -o lvm-mod.o lvm.o lvm-snap.o lvm-fs.o |
47 |
gcc -D__KERNEL__ -I/usr/src/linux-2.4.25_pre7-gss-r3/include -Wall |
48 |
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common |
49 |
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 |
50 |
-DMODULE -DMODVERSIONS |
51 |
-include /usr/src/linux-2.4.25_pre7-gss-r3/include/linux/modversions.h |
52 |
-nostdinc -iwithprefix include -DKBUILD_BASENAME=dm -DEXPORT_SYMTAB -c |
53 |
dm.c |
54 |
dm.c: In function `alloc_md': |
55 |
dm.c:785: error: `mempool_alloc_slab' undeclared (first use in this |
56 |
function) |
57 |
dm.c:785: error: (Each undeclared identifier is reported only once |
58 |
dm.c:785: error: for each function it appears in.) |
59 |
dm.c:786: error: `mempool_free_slab' undeclared (first use in this |
60 |
function) |
61 |
make[2]: *** [dm.o] Error 1 |
62 |
make[2]: Leaving directory `/usr/src/linux-2.4.25_pre7-gss-r3/drivers/md' |
63 |
make[1]: *** [_modsubdir_md] Error 2 |
64 |
make[1]: Leaving directory `/usr/src/linux-2.4.25_pre7-gss-r3/drivers' |
65 |
make: *** [_mod_drivers] Error 2 |
66 |
livecd linux # |
67 |
|
68 |
Thanks for the reply, John, but I'm still stuck with the same problem. It |
69 |
sure seems like I'm missing a .h file somewhere. Has something changed |
70 |
in these kernel portage packages recently? I don't remember getting this |
71 |
problem the last time I did a stage 1 install of gentoo on a different |
72 |
box. Can someone try to replicate this problem by following the handbook |
73 |
and doing a stage 1 install themselves? I realize that's alot to ask, |
74 |
but this sure seems like a big problem here. I did nothing out of the |
75 |
ordinary. The device mapper kernel patch is clearly included in the |
76 |
gs-sources package, but is everything from it completely included? Not |
77 |
so long ago, a downloaded a vanilla kernel from kernel.org and patched it |
78 |
with the device mapper patch myself, and then built it with no problems. |
79 |
|
80 |
Any other suggestions? Anyone? |
81 |
|
82 |
Thanks very much. |
83 |
|
84 |
-- |
85 |
-Kevin |
86 |
|
87 |
-- |
88 |
gentoo-dev@g.o mailing list |