Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compilation troubles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Sun Sep 07, 2003 11:10 pm    Post subject: Kernel compilation troubles Reply with quote

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:
Code:
> make dep

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
View user's profile Send private message
Cicero
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 220

PostPosted: Sun Sep 07, 2003 11:58 pm    Post subject: Reply with quote

If you're copying in a .config from somewhere else, you need to "make oldconfig" first.
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Mon Sep 08, 2003 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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