2.4.10

Joe Bielli jbielli at netsos.com
Fri Sep 28 17:03:17 EDT 2001


Actually, 'make dep' and 'make clean' generally work in either order. To
correct Clay, Make clean will not clear out any .depend files though.
You would have to do a 'make mrproper' or 'make distclean' if you wanted
to remove the .depend's.. (which you wouldn't, they just get
overwritten)
If you want to be correct about the situation the proper thing to do is
a 'make dep' followed by 'make clean' when building a fresh kernel.

Also, just a tip for those of you who are looking to save some time (I'm
sure many of you have probably done this);

- If you want to simply 'add' or 'remove' a driver for a piece of
hardware to your previously-compiled kernel, you can do a 'make
menuconfig' and add it, or remove it, exit out and do a 'make dep'. Then
continue on with a make zImage or make bzImage as normal. This way you
will not need to rebuild all of the objects that have already been built
(provided you don't do a make clean), and your kernel will compile fast
as shnaz. However, I wouldn't recommend doing this to hard code
something in that you've already compiled as a module, because it
generally does not re-create object files that already exist, and you
could experience some strange results ;)


Joe Bielli
Computer SOS, inc. / NetSOS, inc.

-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
Robert Dege
Sent: Friday, September 28, 2001 4:06 PM
To: nflug at nflug.org
Subject: Re: 2.4.10



>>From the Kernel-HOWTO:

So, do the `make dep'. This insures that all of the dependencies, such
the
include files, are in place. It does not take long, unless your computer
is fairly slow to begin with. For older versions of the kernel, when
finished, you should do a `make clean'. This removes all of the object
files and some other things that an old version leaves behind. In any
case, do not forget this step before attempting to recompile a kernel.

</snip>

I couldn't wait to search for a solution.  So I installed the 2.2.19
kernel & it compiled just fine.  Thanks for the help though

-Rob

> I'm not a kernel guru, but I believe "make clean"
> should come before "make dep".  Make clean will delete
> any object files created, which is something make dep
> will generate.
>
> Maybe barking up the wrong tree, but a suggestion...
>
> ~Clay
> --- Robert Dege <rdege at cse.Buffalo.EDU> wrote:
> >
> > make dep; make clean; make vmlinux
> >
> > dep & clean did not abnormally quit.  And the error
> > codes are not as
> > verbose as the 2.2.x series.  Makes it difficult to
> > debug.
> >
> > -Rob
> >
> > > Not sure if this will help but did you do a "make
> > dep"?
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > Robert Dege <rdege at cse.Buffalo.EDU> on 26 Sep 2001
> > 10:02
> > >
> > > Please respond to nflug at nflug.org
> > >
> > >
> > >
> > > To:   nflug at nflug.org
> > >
> > >
> > > cc:
> > >       (bcc: David Parfitt/HBUS/HSBC)
> > > Subject:  2.4.10
> > >
> > >
> > >
> > >
> >
>
************************************************************************
****
> > >  This message originated from the Internet.  Its
> > originator may or
> > >  may not be who they claim to be and the
> > information contained in
> > >  the message and any attachments may or may not be
> > accurate.
> > >
> >
>
************************************************************************
****
> > >
> > >
> > > Does anybody know of any outstanding problems with
> > kernel 2.4.10 compiling
> > > on a Sparc system?  I'm trying to compile it, &
> > keep getting the following
> > > error when I `make vmlinux`:
> > >
> > >
> > > drivers/block/block.o: In function `fd_ioctl':
> > > drivers/block/block.o(.text+0x998c): undefined
> > reference to `__put_user_bad'
> > > drivers/scsi/scsidrv.o: In function `sd_ioctl':
> > > drivers/scsi/scsidrv.o(.text+0xfdec): undefined
> > reference to `__put_user_bad'
> > > make: *** [vmlinux] Error 1
> > >
> > >
> > >
> > > Dege
> > >
> > > Inside some of us is a thin person struggling to
> > get out, but
> > > they can usually be sedated with a few pieces of
> > chocolate cake.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ********************************************************************
> > >  This  message and any attachments are
> > confidential to the ordinary
> > >  user  of the e-mail address to which it was
> > addressed and may also
> > >  be  privileged.   If  you  are not the addressee
> > you may not copy,
> > >  forward,   disclose  or  use  any  part  of  the
> > message  or  its
> > >  attachments and if you have received this message
> > in error, please
> > >  notify  the sender immediately by return e-mail
> > and delete it from
> > >  your system.
> > >
> > >  Internet  communications  cannot  be  guaranteed
> > to  be secure or
> > >  error-free  as  information could be intercepted,
> > corrupted, lost,
> > >  arrive  late or contain viruses.  The sender
> > therefore does not
> > >  accept  liability  for  any  errors or omissions
> > in the context of
> > >  this  message  which  arise  as a result of
> > Internet transmission.
> > >
> > >  Any opinions contained in this message are those
> > of the author and
> > >  are not given or endorsed by the HSBC Group
> > company or office
> > >  through which this message is sent unless
> > otherwise clearly
> > >  indicated in this message and the authority of
> > the author to so
> > >  bind the HSBC entity referred to is duly
> > verified.
> > >
> > >
> >
> ********************************************************************
> > >
> >
> >
> >
> > Dege
> >
> > Inside some of us is a thin person struggling to get
> > out, but
> > they can usually be sedated with a few pieces of
> > chocolate cake.
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com
>



Dege

Inside some of us is a thin person struggling to get out, but
they can usually be sedated with a few pieces of chocolate cake.



More information about the nflug mailing list