2.6-test9 compile problem - undefined reference to `ide_hwifs'
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
2.6-test9 compile problem - undefined reference to `ide_hwifs'
I tried to compile the linux-2.6.0-test9 kernel on a Red Hat 9 system. The compile gave an error. I am posting the error message below. Any help would be very welcome.
Code:
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o(.text+0x384c2): In function `ide_match_hwif':
drivers/ide/setup-pci.c:59: undefined reference to `ide_hwifs'
drivers/built-in.o(.text+0x384c8):drivers/ide/setup-pci.c:59: undefined reference to `ide_hwifs'
drivers/built-in.o(.text+0x384f0):drivers/ide/setup-pci.c:71: undefined reference to `ide_hwifs'
---- REMOVED A LOT OF ERROR MESSAGES __
drivers/built-in.o(.text+0x399b0): In function `__ide_dma_off_quietly':
drivers/ide/ide-dma.c:507: undefined reference to `ide_toggle_bounce'
drivers/built-in.o(.text+0x39a70): In function `__ide_dma_on':
drivers/ide/ide-dma.c:568: undefined reference to `ide_toggle_bounce'
drivers/built-in.o(.text+0x39bc7): In function `__ide_dma_read':
drivers/ide/ide-dma.c:659: undefined reference to `ide_execute_command'
drivers/built-in.o(.text+0x39c67): In function `__ide_dma_write':
drivers/ide/ide-dma.c:690: undefined reference to `ide_execute_command'
drivers/built-in.o(.text+0x39ed2): In function `__ide_dma_verbose':
drivers/ide/ide-dma.c:825: undefined reference to `eighty_ninty_three'
make: *** [.tmp_vmlinux1] Error 1
Hi there.
First, what version of gcc do you have. Seing that you use RH 9, which is an modern distro, gcc should be fine.
Another thing could be that your ram is not good any more. memtest86 is an utility that test's your ram. I would recomend you try it.
Thanks for your hints. however, the compile itself fails. I cannot build bzImage itself, so I think I am not setting some of the options correctly.
My gcc is gcc (GCC) 3.2.2 20030222
Yes I got that. Generally, when an kernel compilation fails, it can be an indication that the ram is bad, because the kernel compilation process makes extensive use of the ram.
The thing is, the kernel guy's make absolutely sure the code is alright. Under no circumstances should a kernel compilation fail. If it does, there is something seriously wrong.
And as I thought, your gcc version is very new. I really think you should suspect your ram.
I think I had made some mistakes in making my selections. I took the original config file of my RedHat from "/boot/config-2.4.20-8" and copied it to the source directory as .config. Then I ran make oldconfig. It asked a few question and then when I recompiled it, everything went smoothly.
So, I guess I made some wrong choices somewhere. The modules are still being compiled, hopefully I should not get any errors. Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.