Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel compile error
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
thomasjb
Apprentice
Apprentice


Joined: 26 May 2002
Posts: 176
Location: Beijing

PostPosted: Wed Feb 19, 2003 10:26 am    Post subject: kernel compile error Reply with quote

could someone please be so kind and point me into the right direction? i'm trying to recompile my kernel again (linux-2.4.20-win4lin-r1 - which i had recompiled many times and never had a problem with) but it always stops with the following error message:
Code:
make -C  arch/i386/mm modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-win4lin-r1/arch/i386/mm'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-win4lin-r1/arch/i386/mm'
make -C  arch/i386/lib modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-win4lin-r1/arch/i386/lib'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-win4lin-r1/arch/i386/lib'
make -C  arch/i386/mki modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-win4lin-r1/arch/i386/mki'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-win4lin-r1/arch/i386/mki'
cd /lib/modules/2.4.20-win4lin-r1; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.20-win4lin-r1; fi
depmod: *** Unresolved symbols in /lib/modules/2.4.20-win4lin-r1/misc/lirc_gpio.o
depmod:         bttv_get_gpio_queue_Rd390553f
depmod:         bttv_get_cardinfo_R48320158
depmod:         bttv_write_gpio_R8ecf4acc
depmod:         bttv_read_gpio_Rbcf2d2fb
depmod:         bttv_gpio_enable_R11dc4b6d
depmod: *** Unresolved symbols in /lib/modules/2.4.20-win4lin-r1/misc/lirc_i2c.o
depmod:         i2c_master_recv_Re609f4fa
depmod:         i2c_attach_client_R907d1bef
depmod:         i2c_detach_client_R55410d17
depmod:         i2c_add_driver_Rd0e7daf2
depmod:         i2c_del_driver_Re1de2769
depmod: *** Unresolved symbols in /lib/modules/2.4.20-win4lin-r1/misc/lirc_parallel.o
depmod:         parport_unregister_device_R76e8567d
depmod:         parport_claim_or_block_Rde072c31
depmod:         parport_enumerate_Rb019f67c
depmod:         parport_register_device_Rf6150a17
depmod:         parport_release_Re630d383
depmod:         parport_claim_R91004644

the error seems to happen somewhere towards the end of the compile and have something to do with modules, if i read the error messages correctly. i can't figure out though whats wrong. any ideas? thanks. i have already tried to newly emerge the sources and compile but with the same result.

reason for the recompile is that i am trying to get kde to display chinese characters in filenames, which i haven't been able to do sofar, so now i want to take all the other code pages out of the kernel and only leave gb and uft to see if i can get chinese filenames to display correctly than. this is the only thing i changed in kernel config from my last succesfull compile.
Back to top
View user's profile Send private message
Michoun
n00b
n00b


Joined: 30 Jan 2003
Posts: 34
Location: France

PostPosted: Wed Feb 19, 2003 10:39 am    Post subject: Reply with quote

1 - did you run something like :

Code:
make dep clean bzImage modules modules_install


2 - and did you run

Code:
make mrproper


before

Code:
make menuconfig


tips : you should save your kernel config before cleaning.

Code:
cp .config /root

_________________
ICQ/AIM Java library - http://sourceforge.net/projects/ooimlib/
Back to top
View user's profile Send private message
thomasjb
Apprentice
Apprentice


Joined: 26 May 2002
Posts: 176
Location: Beijing

PostPosted: Wed Feb 19, 2003 11:03 am    Post subject: Reply with quote

ad 1) yes, very similar command. what i always use is
Code:
make dep && make clean bzImage modules modules_install


ad 2) nope, didn't. just doing it now and trying to recompile.

thanks a lot.
Back to top
View user's profile Send private message
thomasjb
Apprentice
Apprentice


Joined: 26 May 2002
Posts: 176
Location: Beijing

PostPosted: Wed Feb 19, 2003 12:22 pm    Post subject: Reply with quote

make mrproper did unfortunately not change anything. still getting the same error message. does anyone have any other ideas, please? thanks.
Back to top
View user's profile Send private message
thomasjb
Apprentice
Apprentice


Joined: 26 May 2002
Posts: 176
Location: Beijing

PostPosted: Wed Feb 19, 2003 5:19 pm    Post subject: Reply with quote

couldn't get it to compile yet, so i went ahead and emerged the gentoo-sources kernel and tried to compile this one. failed again miserably though, at approx. the same area.
Code:
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/grsecurity'
make -C  crypto modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/crypto'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/crypto'
make -C  arch/i386/kernel modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/arch/i386/kernel'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/arch/i386/kernel'
make -C  arch/i386/mm modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/arch/i386/mm'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/arch/i386/mm'
make -C  arch/i386/lib modules_install
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/arch/i386/lib'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/arch/i386/lib'
cd /lib/modules/2.4.20-gentoo-r1; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.20-gentoo-r1; fi
depmod: *** Unresolved symbols in /lib/modules/2.4.20-gentoo-r1/kernel/drivers/char/drm/sis.o
depmod:         sis_free_Rsmp_ced25333
depmod:         sis_malloc_Rsmp_a3329ed5
root@tjb /linux #

could someone please be so kind and help me out on this? thanks.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Feb 19, 2003 6:21 pm    Post subject: Reply with quote

Do you have a multi-CPU machine? If not, turn off Symmetric Multi-processing support.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
twood
n00b
n00b


Joined: 07 Oct 2002
Posts: 2
Location: South Carolina, USA

PostPosted: Tue Mar 04, 2003 6:53 pm    Post subject: I'm having the same problem. Reply with quote

Anyone have any ideas on how to get past this? I've been looking around for an answer to this and I have tried everything I've seen - but to no avail (make mrproper, turn off symmetric multi-processing, etc.).
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Tue Mar 04, 2003 7:11 pm    Post subject: Reply with quote

possibly try it with Parallel Port disabled in the 'menuconfig'. If that works, then maybe enable Parallel Port (printing) as modules instead of in the kernel??

This is just from my experience with Slackware which I had similar errors with. It takes a little bit of messing around, but most of the time kernel compile errors can be fixed by the kernel config. ;) Just play with it a bit, disabling this, enabling that, etc.
Back to top
View user's profile Send private message
Xhosa
n00b
n00b


Joined: 17 Mar 2003
Posts: 25

PostPosted: Mon Mar 17, 2003 4:05 pm    Post subject: Reply with quote

I don't know if this is actually the solution - but I'm sure that somewhere I read that if you have emerged pcmcia-cs, then you should NOT enable pcmcia network support in the kernel. (I'm getting the same error and am currently trying to rebuild without pcmcia support - the help page for pcmcia support in menuconfig says 'if in doubt, select N' so thats what I'm doing... :wink: )

Will post back if this works...
Back to top
View user's profile Send private message
Xhosa
n00b
n00b


Joined: 17 Mar 2003
Posts: 25

PostPosted: Tue Mar 18, 2003 11:11 am    Post subject: Reply with quote

OK - what I just tried didn't work, and nothing else in this post has worked (although is it a good way to clean out your kernel prior to a make...) I suddenly thought that since the problem is with pcmcia, that I'd turn off support for pcmcia elsewhere in menuconfig, and just see if it'll work naturally with pcmcia-cs (the help pages here also seem ambiguous about whether you need it or not). I also seem to recall that this wasn't selected on my first kernel build, and I had pcmcia working at that point.

If that doesn't work, I'll try the following, since it will be quick to do.

https://forums.gentoo.org/viewtopic.php?p=246683

and maybe also unemerge pcmcia-cs (which I had enabled previously).

Will see how it goes.... :roll:
Back to top
View user's profile Send private message
Xhosa
n00b
n00b


Joined: 17 Mar 2003
Posts: 25

PostPosted: Tue Mar 18, 2003 1:24 pm    Post subject: Reply with quote

OK - the post I found about not compiling pcmcia-cs into the kernel is here:

https://forums.gentoo.org/viewtopic.php?t=26716

Basically, I did:

emerge -C pcmcia-cs

Then:

cd /usr/src/linux
cp .config ../
mv /lib/modules/{Your Kernel} /lib/modules/{Your Kernel}.old/
make mrproper
make menuconfig -> Deselect every mention of pcmcia support (2 places I think!)
make dep && make clean bzImage modules modules_install

Then reboot, emerge pcmcia-cs (you may need to boot off the LiveCD since you now have no pcmcia support to load your network driver :)

Tada!

Hope this helps someone...
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16090
Location: Colorado

PostPosted: Tue Mar 18, 2003 3:17 pm    Post subject: Reply with quote

Moved from Desktop Environments
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
chines
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 90
Location: Argentina

PostPosted: Wed Mar 19, 2003 12:54 pm    Post subject: Reply with quote

I having the same problem here with gentoo-sources, I'm not using pcmcia, I was using vanilla-sources without problems, I want to switch to gentoo sources and can't finish compile, I having the same error of the first post
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