Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-2008, 08:44 PM
Alan Secker
 
Posts: n/a
Recompiling 2009.0 kernel

I needed to ensure a match between the current gcc and the running kernel
(as Mandriva managed to release a mismatch (?)). My solution was to attempt
a recompilation.

I downloaded the source, header and matching kernel devel files and started.

make xconfig and make menuconfig both exited with a 'nothing to do' message.
just executing 'make' returned:

make[1]: *** No rule to make target `init/main.o', needed by
`init/built-in.o'.

Googling throws up identical messages from Fedora, Red Hat and Ubuntu users
but no solutions.

Any ideas anybody?


Reply With Quote
  #2 (permalink)  
Old 10-12-2008, 09:21 PM
Eric
 
Posts: n/a
Re: Recompiling 2009.0 kernel

Alan Secker wrote:

> I needed to ensure a match between the current gcc and the running kernel
> (as Mandriva managed to release a mismatch (?)). My solution was to
> attempt a recompilation.
>
> I downloaded the source, header and matching kernel devel files and
> started.
>
> make xconfig and make menuconfig both exited with a 'nothing to do'
> message. just executing 'make' returned:
>
> make[1]: *** No rule to make target `init/main.o', needed by
> `init/built-in.o'.
>
> Googling throws up identical messages from Fedora, Red Hat and Ubuntu
> users but no solutions.
>
> Any ideas anybody?


you have the "development" version installed, what you need is
the "kernel-source" version, its there in mcc.
Eric
Reply With Quote
  #3 (permalink)  
Old 10-12-2008, 09:51 PM
David W. Hodgins
 
Posts: n/a
Re: Recompiling 2009.0 kernel

On Sun, 12 Oct 2008 15:44:12 -0400, Alan Secker <alan@asandco.co.uk> wrote:

> I downloaded the source, header and matching kernel devel files and started.
> make xconfig and make menuconfig both exited with a 'nothing to do' message.
> just executing 'make' returned:


Here's what I do ...

As root, I use mc to copy /usr/src/linux-2.6.27-0.rc8.2mnb/ to
/usr/src/linux-2.6.27-0.rc8.2mnbcustom/, then use chown to make the
new directory (and all of it's files) owned by my regular userid.

I then use my regular userid to cd to the new directory, and then
proceed with the make xconfig, etc.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Reply With Quote
  #4 (permalink)  
Old 10-12-2008, 10:57 PM
Alan Secker
 
Posts: n/a
Re: Recompiling 2009.0 kernel

Eric wrote:

> Alan Secker wrote:
>
>> I needed to ensure a match between the current gcc and the running kernel
>> (as Mandriva managed to release a mismatch (?)). My solution was to
>> attempt a recompilation.
>>
>> I downloaded the source, header and matching kernel devel files and
>> started.
>>
>> make xconfig and make menuconfig both exited with a 'nothing to do'
>> message. just executing 'make' returned:
>>
>> make[1]: *** No rule to make target `init/main.o', needed by
>> `init/built-in.o'.
>>
>> Googling throws up identical messages from Fedora, Red Hat and Ubuntu
>> users but no solutions.
>>
>> Any ideas anybody?

>
> you have the "development" version installed, what you need is
> the "kernel-source" version, its there in mcc.
> Eric


There is only one kernel source file on the repository. Can you clarify what
you meant by "development" version?

Alan

Reply With Quote
  #5 (permalink)  
Old 10-12-2008, 11:05 PM
Alan Secker
 
Posts: n/a
Re: Recompiling 2009.0 kernel

David W. Hodgins wrote:

> On Sun, 12 Oct 2008 15:44:12 -0400, Alan Secker <alan@asandco.co.uk>
> wrote:
>
>> I downloaded the source, header and matching kernel devel files and
>> started. make xconfig and make menuconfig both exited with a 'nothing to
>> do' message. just executing 'make' returned:

>
> Here's what I do ...
>
> As root, I use mc to copy /usr/src/linux-2.6.27-0.rc8.2mnb/ to
> /usr/src/linux-2.6.27-0.rc8.2mnbcustom/, then use chown to make the
> new directory (and all of it's files) owned by my regular userid.
>
> I then use my regular userid to cd to the new directory, and then
> proceed with the make xconfig, etc.
>
> Regards, Dave Hodgins
>


I just used cp to do it and then chown and chgrp to the full contents of
the 'custom' directory. I still get the same result.

I have been upgrading from beta(x), rc1, rc2 etc. I assumed that the system
was updating on each urpmi update request. Is it possible that that was
less than reliable and a clean install might be required?

I hope the answer is no. Configuring the applications takes ages! <G?

Regards, Alan

Reply With Quote
  #6 (permalink)  
Old 10-12-2008, 11:10 PM
Eric
 
Posts: n/a
Re: Recompiling 2009.0 kernel

Alan Secker wrote:

> Eric wrote:
>
>> Alan Secker wrote:
>>
>>> I needed to ensure a match between the current gcc and the running
>>> kernel (as Mandriva managed to release a mismatch (?)). My solution was
>>> to attempt a recompilation.
>>>
>>> I downloaded the source, header and matching kernel devel files and
>>> started.
>>>
>>> make xconfig and make menuconfig both exited with a 'nothing to do'
>>> message. just executing 'make' returned:
>>>
>>> make[1]: *** No rule to make target `init/main.o', needed by
>>> `init/built-in.o'.
>>>
>>> Googling throws up identical messages from Fedora, Red Hat and Ubuntu
>>> users but no solutions.
>>>
>>> Any ideas anybody?

>>
>> you have the "development" version installed, what you need is
>> the "kernel-source" version, its there in mcc.
>> Eric

>
> There is only one kernel source file on the repository. Can you clarify
> what you meant by "development" version?
>
> Alan

What you want is kernel-source (use the mcc search feature), but there is a
kernel-desktop-devel which you dont want.
For example, if i installed 'kernel-desktop-development-latest' it will
install what looks like kernel source but its not complete. But if you
select 'kernel-source-latest' you'll get the full sources which you can
compile. Tip: make sure mcc software management page has "all" & "all"
selected (near top of window) when you search.
Eric


Reply With Quote
  #7 (permalink)  
Old 10-12-2008, 11:15 PM
Alan Secker
 
Posts: n/a
Re: Recompiling 2009.0 kernel

Eric wrote:

> Alan Secker wrote:
>
>> Eric wrote:
>>
>>> Alan Secker wrote:
>>>
>>>> I needed to ensure a match between the current gcc and the running
>>>> kernel (as Mandriva managed to release a mismatch (?)). My solution was
>>>> to attempt a recompilation.
>>>>
>>>> I downloaded the source, header and matching kernel devel files and
>>>> started.
>>>>
>>>> make xconfig and make menuconfig both exited with a 'nothing to do'
>>>> message. just executing 'make' returned:
>>>>
>>>> make[1]: *** No rule to make target `init/main.o', needed by
>>>> `init/built-in.o'.
>>>>
>>>> Googling throws up identical messages from Fedora, Red Hat and Ubuntu
>>>> users but no solutions.
>>>>
>>>> Any ideas anybody?
>>>
>>> you have the "development" version installed, what you need is
>>> the "kernel-source" version, its there in mcc.
>>> Eric

>>
>> There is only one kernel source file on the repository. Can you clarify
>> what you meant by "development" version?
>>
>> Alan

> What you want is kernel-source (use the mcc search feature), but there is
> a kernel-desktop-devel which you dont want.
> For example, if i installed 'kernel-desktop-development-latest' it will
> install what looks like kernel source but its not complete. But if you
> select 'kernel-source-latest' you'll get the full sources which you can
> compile. Tip: make sure mcc software management page has "all" & "all"
> selected (near top of window) when you search.
> Eric


I had already done everything you've suggested before posting here! (and the
devel file, just in case)!

Alan


Reply With Quote
  #8 (permalink)  
Old 10-13-2008, 12:15 AM
David W. Hodgins
 
Posts: n/a
Re: Recompiling 2009.0 kernel

On Sun, 12 Oct 2008 18:05:48 -0400, Alan Secker <alan@asandco.co.uk> wrote:

> I just used cp to do it and then chown and chgrp to the full contents of
> the 'custom' directory. I still get the same result.


I'd try uninstalling the kernel source, deleting the directories to get
rid of any old stuff, and then reinstalling the kernel source, and starting
with the copy again. Don't forget to save a copy of the old .config, if
you want it.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Reply With Quote
  #9 (permalink)  
Old 10-13-2008, 03:32 AM
Jim Beard
 
Posts: n/a
Re: Recompiling 2009.0 kernel

Please excuse the bluntness of the following, but I am alternately
puzzled and baffled by the problems you are having. Shouldn't happen.

Alan Secker wrote:
> I downloaded the source, header and matching kernel devel files and started.


Whoa. If you want to compile a kernel, you download the kernel
source package and only the source package. The kernel devel file is
only for use in compiling third-party applications tht need the
kernel headers. And what did you get that provides the "header"
files separately?
>
> make xconfig and make menuconfig both exited with a 'nothing to do' message.
> just executing 'make' returned:


This cannot be, if you have the proper package of source code for the
kernel. In fact, you MUST do a make xconfig or something (there are
choices -- listed in the README in the top directory of the installed
source code). I recommend using all three (or four) config methods,
and consulting the help files for each value set as you go through
the exercise. One help file will sometimes give critical info needed
that the others do not.

Oh, yes. You do have to be in the top directory of the source code
when you run the make menu commands.
>
> make[1]: *** No rule to make target `init/main.o', needed by
> `init/built-in.o'.


I have seen error messages like this when the packager failed
to provide full path names in some cases. Before compiling,
cd to the top directory of the source code and do
CDPATH=$CDPATH:.:
That will give you automatic access to one level below the
top directory, and that usually takes care of the problem.

> Googling throws up identical messages from Fedora, Red Hat and Ubuntu users
> but no solutions.


Remaining possibility: Somebody boo-boo-ed in provision of the Linux
kernel, and nobody is correcting it. But my guess is that people are
making the same mistake.

> Any ideas anybody?


Go into the top directory of the source code installed and read the
README. If you do not have one, you have the wrong package.

Or, are you compiling from the GUI? If so, and your gui is not
configured to position correctly in the directory for the source,
that could be a problem.

Cheers!

jim b.

--
UNIX is not user unfriendly; it merely
expects users to be computer-friendly.
Reply With Quote
  #10 (permalink)  
Old 10-14-2008, 10:06 AM
Alan Secker
 
Posts: n/a
Re: Recompiling 2009.0 kernel

David W. Hodgins wrote:

> On Sun, 12 Oct 2008 18:05:48 -0400, Alan Secker <alan@asandco.co.uk>
> wrote:
>
>> I just used cp to do it and then chown and chgrp to the full contents of
>> the 'custom' directory. I still get the same result.

>
> I'd try uninstalling the kernel source, deleting the directories to get
> rid of any old stuff, and then reinstalling the kernel source, and
> starting
> with the copy again. Don't forget to save a copy of the old .config, if
> you want it.
>
> Regards, Dave Hodgins
>


Attempts to follow your advice were thwarted by missing bits and bobs. A
check on the download messages revealed they were still coming
from 'cooker' repositories. Easy Urpmi indicated they would be switched to
the final release once it occurred That hadn't happened.

I tried changing all the options in the mcc (or is it mc). One or two
resisted being changed(!). The overall effect was that little had changed
on attempting urpmi updates. I am now resigned to undertaking a clean
install (except for /home).

Thanks for your help, David, Eric et al


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:24 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Advertising | Facebook Proxy | Home Loan | Debt Help



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114