Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling a custom kernel.
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
Trespasser
n00b
n00b


Joined: 12 Aug 2003
Posts: 14

PostPosted: Sat Aug 16, 2003 1:04 pm    Post subject: Compiling a custom kernel. Reply with quote

Hey there

I wanted to compile my own kernel for my new gentoo install. But after have selected what parts I want in the kernel and genkernel starts to do its stuff i get this error in make bzImage:
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r5/net'
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r5/net'
ld -m elf_i386 -T /usr/src/linux-2.4.20-gentoo-r5/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/i2c/i2c.o \
net/network.o \
grsecurity/grsec.o \
crypto/crypto.o \
/usr/src/linux-2.4.20-gentoo-r5/arch/i386/lib/lib.a /usr/src/linux-2.4.20-gentoo-r5/lib/lib.a /usr/src/linux-2.4.20-gentoo-r5/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/net/net.o(.data+0x594): undefined reference to `local symbols in discarded section .text.exit'
make: *** [vmlinux] Error 1

What does that mean and is there anything I can do about it at all ?
I'm trying to compile the kernel I got but running emerge gentoo-source and it gave me:
linux-2.4.20-gentoo-r5
I have tried with the r6, but I get the same error.

I would really apreciate any help and if you need any extra information I will get it for you.

/Brian
Back to top
View user's profile Send private message
bonsaikitten
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 213
Location: Shanghai, China

PostPosted: Sat Aug 16, 2003 4:25 pm    Post subject: Reply with quote

Gentoo-sources are highly optimized ... too high for some combinations. Try vanilla-sources (unless you really depend on some patches)

If the error occurs with vanilla-sources you might have hardware problems (overclocked? too hot?)
Back to top
View user's profile Send private message
Trespasser
n00b
n00b


Joined: 12 Aug 2003
Posts: 14

PostPosted: Sat Aug 16, 2003 4:51 pm    Post subject: Reply with quote

I didn't know the Gentoo sources was so optimized.

I don't really depend on any patches from the gentoo-sources. But I wouldn't mind some optimization's. :)

I compiled the gentoo-source default config when I installed Gentoo 1.4, so I just wonder why it won't work with a non-default .config.

My machine isn't overclocked since I would not get any real performance increase going from 2.4 ghz to 3.2 ghz (loose comparison with 5 block's of SETI-data).
The machine is watercooled and running at 40 degres celcious full load for a few days.
Back to top
View user's profile Send private message
cleber
n00b
n00b


Joined: 05 Aug 2003
Posts: 74
Location: São Paulo - Brazil

PostPosted: Mon Aug 18, 2003 6:11 am    Post subject: Reply with quote

I really don't think that this is a gentoo-sources optimization issue. It seems like you CPU is too hot or something...
But if it's water cooled, then it can be something else.

Try to make your kernel by hand, not using genkernel. (Post again if U need help, or take a look on other posts).

See ya! :)
_________________
Saru mo ki kara ochiru - Japanese proverb.
Cleber Mori Home Page: http://www.2ks.com.br
Back to top
View user's profile Send private message
t1deman
n00b
n00b


Joined: 10 May 2003
Posts: 65
Location: california

PostPosted: Wed Aug 20, 2003 9:00 pm    Post subject: Reply with quote

I'm with cleber, do it the old fashion way. You're running gentoo for god sake.

Code:
make deps && make clean bzImage modules modules_install


And I agree with the watercooling :lol:
_________________
t1deman
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