View previous topic :: View next topic |
Author |
Message |
ChojinDSL l33t
Joined: 07 Jul 2003 Posts: 784
|
Posted: Tue Jul 08, 2003 9:20 am Post subject: make dep && clean bzImage module modules_install fai |
|
|
Hi, Ive completed the installation process once. I was using the gaming sources then, but upon booting I noticed through an error message that support for devfs was not enabled.
So I've been trying to reinstall the kernel, both from gaming-sources and from gentoo-sources.
make dep and make clean go without a hitch.
but when I make bzImage I get the following error:
---------------------------------------------------------------------------------
drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/pcmcia/pcmcia.o drivers/net/pcmcia/pcmcia_net.o drivers/net/wireless/wireless_net.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/char/drm/drm.o(.text+0x7728): In function `sis_fb_alloc':
: undefined reference to `sis_malloc'
drivers/char/drm/drm.o(.text+0x77d6): In function `sis_fb_alloc':
: undefined reference to `sis_free'
drivers/char/drm/drm.o(.text+0x7849): In function `sis_fb_free':
: undefined reference to `sis_free'
drivers/char/drm/drm.o(.text+0x7c7f): In function `sis_final_context':
: undefined reference to `sis_free'
make: *** [vmlinux] Error 1
---------------------------------------------------------------------------
I have tried to use make mrproper and then repeat the make menuconfig/make dep make clean .....etc. process, but It always stops at the bzImage state and gives me the error above.
Any ideas? Are there perhaps any option I should disable in the make menuconfig? Or maybe I should set a few options to made as modules instead of compiling them into the kernel?
By the way, is there any difference in performance if you make something as a module instead of compiling it directly into the kernel? |
|
Back to top |
|
|
sebo Tux's lil' helper
Joined: 26 Jun 2003 Posts: 114 Location: Aix en Provence, FRANCE
|
Posted: Tue Jul 08, 2003 9:44 am Post subject: |
|
|
Have you done this after the end of the compile process:
Code: | # cp /usr/src/linux/arch/i386/boot/bzImage /boot |
_________________ Sébastien |
|
Back to top |
|
|
ChojinDSL l33t
Joined: 07 Jul 2003 Posts: 784
|
Posted: Tue Jul 08, 2003 10:22 am Post subject: |
|
|
Yeah I have done. But I just get an error stating:
"cp: cannot stat `/usr/src/linux/arch/i386/boot/bzImage': No such file or directory"
Besides, it seems obvious to me from the previous error message that "make bzImage" did not finish sucessfully. |
|
Back to top |
|
|
adrenalin Tux's lil' helper
Joined: 29 Dec 2002 Posts: 129
|
Posted: Tue Jul 08, 2003 10:25 am Post subject: |
|
|
What happens if you omit the 'make clean' part ? |
|
Back to top |
|
|
b1nd3n14l Tux's lil' helper
Joined: 06 Jun 2003 Posts: 80
|
Posted: Tue Jul 08, 2003 10:26 am Post subject: |
|
|
If you dont have the need for SIS in DRM...
make menuconfig
Deselect SIS in the DRM section....
Character devices
-- DRM 4.1 drivers
< > SiS
and try again....
If you do need it... I cant help you....
_________________ Later...Gator...
First ever Gentoo Install: June 5th , 2003
Registered User #12078 at http://counter.li.org |
|
Back to top |
|
|
EzInKy Veteran
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Tue Jul 08, 2003 11:13 am Post subject: |
|
|
I found this searching google:
http://www.ussg.iu.edu/hypermail/linux/kernel/0201.3/0294.html
Quote: |
Hi,
I just got the following:
drivers/char/drm/drm.o: In function `sis_fb_alloc':
drivers/char/drm/drm.o(.text+0x6d26): undefined reference to `sis_malloc'
drivers/char/drm/drm.o(.text+0x6d6d): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_fb_free':
drivers/char/drm/drm.o(.text+0x6eb5): undefined reference to `sis_free'
drivers/char/drm/drm.o: In function `sis_final_context':
drivers/char/drm/drm.o(.text+0x7386): undefined reference to `sis_free'
My .config looks as follows: ....
|
and this was the response:
Quote: |
Hi,
here's the problem!
You need the sis framebuffer (sisfb) compiled as well. sisfb contains
the alloc/free functions the (unresolved) symbols refer to.
|
There were some other links you may want to check out if enabling framebuffer support for sis card under console drivers isn't the problem. |
|
Back to top |
|
|
syph3r2001 n00b
Joined: 01 Jul 2003 Posts: 44
|
Posted: Tue Jul 08, 2003 11:44 am Post subject: |
|
|
also sounds like you didnt mount /boot |
|
Back to top |
|
|
linux_weenie Guru
Joined: 25 Jun 2003 Posts: 365
|
Posted: Tue Jul 08, 2003 11:59 am Post subject: |
|
|
generally i do the following steps when compiling a kernel.
Code: |
make clean
cp .config myconfig # save configuration file
make mrproper # set kernel config to defaults
cp myconfig .config # put your config back
make menuconfig
# do your configuration
make dep
make clean
make bzImage
make modules
make modules_install
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot # copies the boot image
/sbin/lilo # updates lilo
umount /boot
reboot
|
hope this helps you out.
-Will |
|
Back to top |
|
|
ChojinDSL l33t
Joined: 07 Jul 2003 Posts: 784
|
Posted: Sun Jul 13, 2003 2:46 pm Post subject: |
|
|
Thanks for all the help people. Ive fixed it (somehow). Cant quite remember what I had done, since I immediately continued with the rest of the installation.
But thanks people. I sure love this community.
Ive run into this problem before on my first try to install gentoo. Somehow I fixed it back then. After I while I kind of broke my system when trying to update the kernel. Well not really broke it, but you know for a noob, anything that doesnt produce the same results as in the manual is considered a broken system, even if its just the wrong system time.
Anyway, after a while I decided to do a fresh install, and this time stick with the gentoo-sources kernel. I originally wanted to use the gaming-sources, but i figure, I gotta learn to walk before I can fly, so better stick with standard options like it says in the install guide, that way if anything breaks, I know its not because im using the wrong kernel sources.
Well blah blah blah.... anyhow. It seems that whenever the make bzImage part fails, this is always due to some improper selections in make menuconfig. i.e. as in compile into the kernel or as a module. Allthough I wonder why there would be any option to compile something into kernel if it will only work properly if you compile it as a module.
Of course being the ueber-noob that I am, I could be totally wrong here.
Oh well, I should just be happy and thankful that gentoo is up and running on my laptop now.
I know this has probably been said before, but I gotta say, multitasking is amazing in gentoo. I know I cant really compare my laptop (pIII 1.1ghz 512mbRAM) performance with my desktop (pIII 450mhz 768mbRAM) performance. But from what I remember from windows, I'm pretty sure that I wouldnt be able to play music (xmms) and watch a video (mplayer) smoothly, without jerkyness or interruptions in the audio!, while having my cpu at 100% because I am doing an emerge in the background.
Wow, I'm really impressed. Under WinXP even with the possibility of prioritizing tasks, if the cpu goes under full load, you can usually kiss audio and video smoothness goodbye.
This feature alone is what makes all the compiling time worthwile. Besides from what I can remember from Mandrake and Suse, I've never had this execellent multitasking performance. thats in the end why I switched back to Windows, because the performance didnt seem any better.
but wow..
Now, if only I could get 3DstudioMax5.1 to run perfect and stable under linux, then I would never have to switch back to Windows. Oh well, time will come. |
|
Back to top |
|
|
|