View previous topic :: View next topic |
Author |
Message |
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Sun Sep 07, 2003 11:10 pm Post subject: Kernel compilation troubles |
|
|
I'm trying to compile a customized kernel, and I'm following the directions here.
I emerge gentoo-sources then:
Code: | > cd /usr/src/linux # this is my softlink to /usr/src/linux-2.4.20-gentoo-r6
> make clean
> make mrproper
> make clean |
Once that completes, I copy a .config file that I had made previously to /usr/src/linux then:
and get the following output:
Code: | gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r6/arch/i386/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/arch/i386/boot'
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r6/scripts'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkparse.o tkparse.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkcond.o tkcond.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkgen.o tkgen.c
gcc -o tkparse tkparse.o tkcond.o tkgen.o
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
echo "set ARCH \"i386\"" >> kconfig.tk
cat tail.tk >> kconfig.tk
chmod 755 kconfig.tk
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/scripts'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/makeproconfigdata scripts/makeproconfigdata.c
scripts/makeproconfigdata.c: In function `main':
scripts/makeproconfigdata.c:121: warning: long unsigned int format, int arg (arg 3)
scripts/makeproconfigdata.c:195: warning: long unsigned int format, int arg (arg 3)
scripts/mkdep -- init/*.c > .depend
scripts/mkdep -- `find /usr/src/linux-2.4.20-gentoo-r6/include/asm /usr/src/linux-2.4.20-gentoo-r6/include/linux /usr/src/linux-2.4.20-gentoo-r6/include/scsi /usr/src/linux-2.4.20-gentoo-r6/include/net /usr/src/linux-2.4.20-gentoo-r6/include/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
find: /usr/src/linux-2.4.20-gentoo-r6/include/asm: No such file or directory
make _sfdep_kernel _sfdep_drivers _sfdep_mm _sfdep_fs _sfdep_net _sfdep_ipc _sfdep_lib _sfdep_grsecurity _sfdep_crypto _sfdep_arch/i386/kernel _sfdep_arch/i386/mm _sfdep_arch/i386/lib _FASTDEP_ALL_SUB_DIRS="kernel drivers mm fs net ipc lib grsecurity crypto arch/i386/kernel arch/i386/mm arch/i386/lib"
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r6'
make -C kernel fastdep
make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r6/kernel'
make[2]: *** No rule to make target `/usr/src/linux-2.4.20-gentoo-r6/include/linux/autoconf.h', needed by `/usr/src/linux-2.4.20-gentoo-r6/include/linux/modules/signal.ver'. Stop.
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/kernel'
make[1]: *** [_sfdep_kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6'
make: *** [dep-files] Error 2 |
What am I doing wrong and how do I fix it?
Thanks for your help.
Last edited by The Mountain Man on Sun Sep 07, 2003 11:53 pm; edited 1 time in total |
|
Back to top |
|
|
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Sun Sep 07, 2003 11:58 pm Post subject: |
|
|
If you're copying in a .config from somewhere else, you need to "make oldconfig" first. |
|
Back to top |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Mon Sep 08, 2003 12:01 am Post subject: |
|
|
Cicero wrote: | If you're copying in a .config from somewhere else, you need to "make oldconfig" first. |
Ah.
Update (not that anybody cares): After wrestling with this thing for a bit, trying different options and doing my best to understand various pieces of documentation scattered throughout the internet, I successfully booted my new Linux kernel, and it actually worked! As you can imagine, I'm quite proud of myself. Everything (surprisingly) went as expected and not a single error or anomoly in dmesg! Ah, the sweet taste of victory. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|