* No-IDE kernel compile link errors
@ 1999-03-09 4:12 Hollis R Blanchard
1999-03-09 10:23 ` Martin Costabel
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Hollis R Blanchard @ 1999-03-09 4:12 UTC (permalink / raw)
To: linuxppc-dev
I've been having this problem recently with 2.2.2 source from kernel.org and
now the NMT vger snapshot:
So I 'make menuconfig'. And since I have a PowerCenter (with no IDE anything),
I turn off all IDE support, in General and Block Devices.
I get the following link error:
arch/ppc/kernel/kernel.o: In function `find_ide_boot':
arch/ppc/kernel/kernel.o(.text.init+0x1ca6): undefined reference to
`pmac_ide_count'
arch/ppc/kernel/kernel.o(.text.init+0x1caa): undefined reference to
`pmac_ide_count'
arch/ppc/kernel/kernel.o(.text.init+0x1cc2): undefined reference to
`pmac_ide_node'
arch/ppc/kernel/kernel.o(.text.init+0x1cc6): undefined reference to
`pmac_ide_node'
arch/ppc/kernel/kernel.o(.text.init+0x1cce): undefined reference to
`pmac_ide_count'
arch/ppc/kernel/kernel.o(.text.init+0x1d06): undefined reference to
`pmac_ide_count'
Awesome. Of course it can't find those symbols - I haven't compiled (and don't
want) any IDE stuff.
When I rerun 'make menuconfig', I find that the IDE stuff has been re-enabled
on me. My other changes were saved, though. Examining the .config file, I find
that CONFIG_BLK_DEV_IDE_PMAC and CONFIG_PARIDE_PARPORT are both set to y.
On a related note, I've always wondered who maintains the Makefiles for the
kernel. Is it communal, and if so, are patches to the Makefiles submitted just
like source patches?
-Hollis
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-09 4:12 No-IDE kernel compile link errors Hollis R Blanchard
@ 1999-03-09 10:23 ` Martin Costabel
1999-03-09 14:05 ` Tom Rini
1999-03-09 16:38 ` Charles E. Leiserson, Jr.
2 siblings, 0 replies; 9+ messages in thread
From: Martin Costabel @ 1999-03-09 10:23 UTC (permalink / raw)
To: Hollis R Blanchard; +Cc: linuxppc-dev
Satadru Pramanik had the same error recently:
http://lists.linuxppc.org/listarcs/linuxppc-dev/199902/msg00373.html
There was no solution posted on the list. Maybe he has one?
I suspect that you have CONFIG_PARPORT=y and this doesn't work without
some of the IDE stuff. It's certainly a bug in the config files, like so
many others.
Hollis R Blanchard wrote:
>
> I've been having this problem recently with 2.2.2 source from kernel.org and
> now the NMT vger snapshot:
>
> So I 'make menuconfig'. And since I have a PowerCenter (with no IDE anything),
> I turn off all IDE support, in General and Block Devices.
>
> I get the following link error:
> arch/ppc/kernel/kernel.o: In function `find_ide_boot':
> arch/ppc/kernel/kernel.o(.text.init+0x1ca6): undefined reference to
> `pmac_ide_count'
> arch/ppc/kernel/kernel.o(.text.init+0x1caa): undefined reference to
> `pmac_ide_count'
> arch/ppc/kernel/kernel.o(.text.init+0x1cc2): undefined reference to
> `pmac_ide_node'
> arch/ppc/kernel/kernel.o(.text.init+0x1cc6): undefined reference to
> `pmac_ide_node'
> arch/ppc/kernel/kernel.o(.text.init+0x1cce): undefined reference to
> `pmac_ide_count'
> arch/ppc/kernel/kernel.o(.text.init+0x1d06): undefined reference to
> `pmac_ide_count'
>
> Awesome. Of course it can't find those symbols - I haven't compiled (and don't
> want) any IDE stuff.
>
> When I rerun 'make menuconfig', I find that the IDE stuff has been re-enabled
> on me. My other changes were saved, though. Examining the .config file, I find
> that CONFIG_BLK_DEV_IDE_PMAC and CONFIG_PARIDE_PARPORT are both set to y.
>
> On a related note, I've always wondered who maintains the Makefiles for the
> kernel. Is it communal, and if so, are patches to the Makefiles submitted just
> like source patches?
I think this is a problem of some defconfig or config.in file, and these
are changed whenever a driver is introduced. It looks to me that nobody
takes them very seriously. It took years to fix the xconfig stuff. I
tried to understand it once, but it is a horrible mess of self-modifying
spaghetti code.
A quote from drivers/block/Config.in which may be relevant to your
problem:
# Paride Doesn'T Need Parport, But If Parport Is Configured As A Module,
# Paride Must Also Be A Module. The Bogus Config_Paride_Parport Option
# Controls The Choices Given To The User ...
--
Martin
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-09 4:12 No-IDE kernel compile link errors Hollis R Blanchard
1999-03-09 10:23 ` Martin Costabel
@ 1999-03-09 14:05 ` Tom Rini
1999-03-09 14:36 ` Hollis R Blanchard
1999-03-09 16:38 ` Charles E. Leiserson, Jr.
2 siblings, 1 reply; 9+ messages in thread
From: Tom Rini @ 1999-03-09 14:05 UTC (permalink / raw)
To: Hollis R Blanchard; +Cc: linuxppc-dev
On Mon, 8 Mar 1999, Hollis R Blanchard wrote:
> When I rerun 'make menuconfig', I find that the IDE stuff has been re-enabled
> on me. My other changes were saved, though. Examining the .config file, I find
> that CONFIG_BLK_DEV_IDE_PMAC and CONFIG_PARIDE_PARPORT are both set to y.
The CONFIG_PARIDE_PARPORT is just a "test" variable, it doesn't turn
on/off anything in the code, just when the config stuff is going on. From
what I remember of drivers/block/Config.in, that's prolly a good thing
that it's set.
> On a related note, I've always wondered who maintains the Makefiles for the
> kernel. Is it communal, and if so, are patches to the Makefiles submitted just
> like source patches?
It sounds like you accidently set the CONFIG_BLK_DEV_IDE to Y in the
arch-spec area (where early BootX Text and TotalImpact card support is).
This ugliiness is fixed by one of the ide patches in the patches dfir on
nmt.
--
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-09 14:05 ` Tom Rini
@ 1999-03-09 14:36 ` Hollis R Blanchard
1999-03-09 15:05 ` Tom Rini
0 siblings, 1 reply; 9+ messages in thread
From: Hollis R Blanchard @ 1999-03-09 14:36 UTC (permalink / raw)
To: Tom Rini; +Cc: G. [iso-8859-1] Laurs, linuxppc-dev
On Tue, 9 Mar 1999, Tom Rini wrote:
> On Mon, 8 Mar 1999, Hollis R Blanchard wrote:
>
> > When I rerun 'make menuconfig', I find that the IDE stuff has been
> > re-enabled on me. My other changes were saved, though. Examining the
> > .config file, I find that CONFIG_BLK_DEV_IDE_PMAC and
> > CONFIG_PARIDE_PARPORT are both set to y.
>
> The CONFIG_PARIDE_PARPORT is just a "test" variable, it doesn't turn
> on/off anything in the code, just when the config stuff is going on. From
> what I remember of drivers/block/Config.in, that's prolly a good thing
> that it's set.
>
> > On a related note, I've always wondered who maintains the Makefiles for the
> > kernel. Is it communal, and if so, are patches to the Makefiles submitted
> > just like source patches?
>
> It sounds like you accidently set the CONFIG_BLK_DEV_IDE to Y in the
> arch-spec area (where early BootX Text and TotalImpact card support is).
> This ugliiness is fixed by one of the ide patches in the patches dfir on
> nmt.
I disabled all IDE everythings (I swear), including "Support for PowerMac IDE
devices (must also enable IDE)" in General setup. Note that when I disable
this and re-run menuconfig, it has been enabled again.
Also, even when I comment out all Makefile options that include the string
"IDE", I still get that link error. I (perhaps naively) assumed there's kernel
code that should be behind a #ifdef IDE but isn't.
I eventually gave in and just enabled the damn IDE stuff. Compiles on my
PowerCenter 132 take a lot longer then I'd like, and to have them fail every
time is very frustrating. This is not the machine to test this on.
However, since I really don't want anything to do with IDE in my kernel, I'll
hope this gets taken care of - or do the NMT patches mentioned fix it? FWIW, I
got my sources from NMT (the 3/7 vger snapshot).
-Hollis
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-09 14:36 ` Hollis R Blanchard
@ 1999-03-09 15:05 ` Tom Rini
0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 1999-03-09 15:05 UTC (permalink / raw)
To: Hollis R Blanchard; +Cc: G. [iso-8859-1] Laurs, linuxppc-dev
On Tue, 9 Mar 1999, Hollis R Blanchard wrote:
However, since I really don't want anything to do with IDE in my
kernel, I'll
> hope this gets taken care of - or do the NMT patches mentioned fix it? FWIW, I
> got my sources from NMT (the 3/7 vger snapshot).
The NMT snapshots are just what's in vger. This patch is not. Goto the
patch/pmac-ide-module or ide-module dir, grab that and try again. I
think this is the same thing I ran into when I was running the iMac w/
nfsroot and had ide modularized for fun.
--
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-09 4:12 No-IDE kernel compile link errors Hollis R Blanchard
1999-03-09 10:23 ` Martin Costabel
1999-03-09 14:05 ` Tom Rini
@ 1999-03-09 16:38 ` Charles E. Leiserson, Jr.
1999-03-09 21:31 ` Tom Rini
2 siblings, 1 reply; 9+ messages in thread
From: Charles E. Leiserson, Jr. @ 1999-03-09 16:38 UTC (permalink / raw)
To: Hollis R Blanchard; +Cc: linuxppc-dev
-----BEGIN PGP SIGNED MESSAGE-----
> Awesome. Of course it can't find those symbols - I haven't compiled (and don't
> want) any IDE stuff.
I seem to recall having read something about the 2.2 kernels not compiling if
IDE isn't set. I had the same problem, so I just compiled in IDE support,
even though I have no IDE devices or bus.
Feel free to correct me if I'm wrong.
- Ricky
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBNuVOk/o7QJfqAx6RAQHquQQAt4t0gsatGCnvVpwvLJQZh7a7Vj2rISNP
I+pYrvhDN9SyIAr4rTZNnrObB9zM8JntGAxmq8fQQOULcymNJTE+33ll9kLvbJFg
OdHIfQFgn5phshEPKoo1S5P16Ss76fzGTqhJIbF/NQk+jHJpjU9k8q21yBXJJ1Zs
73wqg6a++To=
=TBjn
-----END PGP SIGNATURE-----
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-09 16:38 ` Charles E. Leiserson, Jr.
@ 1999-03-09 21:31 ` Tom Rini
0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 1999-03-09 21:31 UTC (permalink / raw)
To: Charles E. Leiserson, Jr.; +Cc: Hollis R Blanchard, linuxppc-dev
On Tue, 9 Mar 1999, Charles E. Leiserson, Jr. wrote:
> I seem to recall having read something about the 2.2 kernels not compiling if
> IDE isn't set. I had the same problem, so I just compiled in IDE support,
> even though I have no IDE devices or bus.
>
> Feel free to correct me if I'm wrong.
Please try
ftp://linuxppc.cs.nmt.edu/pub/linuxppc/patches/non-pmac-ide/ide.diff
Then rm your .config and try again. If this works I'll bug Cort <g>
---
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
@ 1999-03-11 2:41 Steven Sartorius
1999-03-11 4:00 ` Paul Mackerras
0 siblings, 1 reply; 9+ messages in thread
From: Steven Sartorius @ 1999-03-11 2:41 UTC (permalink / raw)
To: hollis+, linuxppc-dev
>
>When I rerun 'make menuconfig', I find that the IDE stuff has been re-enabled
>on me. My other changes were saved, though. Examining the .config file, I find
>that CONFIG_BLK_DEV_IDE_PMAC and CONFIG_PARIDE_PARPORT are both set to y.
I've had the same problem. The only way I could get rid of all traces of IDE was to run 'make config' and tediously step through each kernel option. A pain but it worked.
Steve
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No-IDE kernel compile link errors
1999-03-11 2:41 Steven Sartorius
@ 1999-03-11 4:00 ` Paul Mackerras
0 siblings, 0 replies; 9+ messages in thread
From: Paul Mackerras @ 1999-03-11 4:00 UTC (permalink / raw)
To: ssartor; +Cc: linuxppc-dev
Steven Sartorius <ssartor@eclipse.net> wrote:
> I've had the same problem. The only way I could get rid of all
> traces of IDE was to run 'make config' and tediously step through
> each kernel option. A pain but it worked.
A useful trick if you just want to change one kernel option is to edit
your .config to delete that particular line, then say `make oldconfig'.
It will run through and just ask you about the option you deleted.
(Don't just change the line to what you want, because make config does
several other things like setting up autoconf.h and include/config.)
Paul.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-03-11 4:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-09 4:12 No-IDE kernel compile link errors Hollis R Blanchard
1999-03-09 10:23 ` Martin Costabel
1999-03-09 14:05 ` Tom Rini
1999-03-09 14:36 ` Hollis R Blanchard
1999-03-09 15:05 ` Tom Rini
1999-03-09 16:38 ` Charles E. Leiserson, Jr.
1999-03-09 21:31 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
1999-03-11 2:41 Steven Sartorius
1999-03-11 4:00 ` Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).