All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.16.19 + gcc-4.1.1
@ 2006-06-14  2:23 Russell Whitaker
  2006-06-14  3:49 ` Avuton Olrich
  2006-06-14  5:24 ` Tino Keitel
  0 siblings, 2 replies; 10+ messages in thread
From: Russell Whitaker @ 2006-06-14  2:23 UTC (permalink / raw)
  To: linux-kernel

hi

First, I did this:
   made kernel with cpu=486, gcc-3.3.6
   worked fine.

Next, changed cpu to k6, all else same.
   worked fine.

Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
   compiles ok, installs ok. But, when attempting to load a module, get
   the following message:  version magic '2.6.16.19via K6 gcc-4.1',
   should be '2.6.16.19via 486 gcc-3.3'

How should I fix it?
Please cc personally.

   Thanks,
     russ

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  2:23 2.6.16.19 + gcc-4.1.1 Russell Whitaker
@ 2006-06-14  3:49 ` Avuton Olrich
  2006-06-14  4:10   ` Brice Goglin
  2006-06-14  5:24 ` Tino Keitel
  1 sibling, 1 reply; 10+ messages in thread
From: Avuton Olrich @ 2006-06-14  3:49 UTC (permalink / raw)
  To: Russell Whitaker; +Cc: linux-kernel

On 6/13/06, Russell Whitaker <russ@ashlandhome.net> wrote:
> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
>    compiles ok, installs ok. But, when attempting to load a module, get
>    the following message:  version magic '2.6.16.19via K6 gcc-4.1',
>    should be '2.6.16.19via 486 gcc-3.3'

You may have forgotten to "make modules modules_install"
-- 
avuton
--
 Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  3:49 ` Avuton Olrich
@ 2006-06-14  4:10   ` Brice Goglin
  2006-06-14  4:20     ` Willy Tarreau
  2006-06-14  9:33     ` Jan Engelhardt
  0 siblings, 2 replies; 10+ messages in thread
From: Brice Goglin @ 2006-06-14  4:10 UTC (permalink / raw)
  To: Avuton Olrich; +Cc: Russell Whitaker, linux-kernel

Avuton Olrich wrote:
> On 6/13/06, Russell Whitaker <russ@ashlandhome.net> wrote:
>> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
>>    compiles ok, installs ok. But, when attempting to load a module, get
>>    the following message:  version magic '2.6.16.19via K6 gcc-4.1',
>>    should be '2.6.16.19via 486 gcc-3.3'
>
> You may have forgotten to "make modules modules_install"

Actually, "make modules" does not exist anymore with 2.6. Both built-in
and modular stuff are built at the same time.
Only "make modules_install" is still required.

Brice


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  4:10   ` Brice Goglin
@ 2006-06-14  4:20     ` Willy Tarreau
  2006-06-14  4:27       ` Brice Goglin
  2006-06-14  5:09       ` Russell Whitaker
  2006-06-14  9:33     ` Jan Engelhardt
  1 sibling, 2 replies; 10+ messages in thread
From: Willy Tarreau @ 2006-06-14  4:20 UTC (permalink / raw)
  To: Brice Goglin; +Cc: Avuton Olrich, Russell Whitaker, linux-kernel

On Wed, Jun 14, 2006 at 12:10:59AM -0400, Brice Goglin wrote:
> Avuton Olrich wrote:
> > On 6/13/06, Russell Whitaker <russ@ashlandhome.net> wrote:
> >> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
> >>    compiles ok, installs ok. But, when attempting to load a module, get
> >>    the following message:  version magic '2.6.16.19via K6 gcc-4.1',
> >>    should be '2.6.16.19via 486 gcc-3.3'
> >
> > You may have forgotten to "make modules modules_install"
> 
> Actually, "make modules" does not exist anymore with 2.6. Both built-in
> and modular stuff are built at the same time.
> Only "make modules_install" is still required.

What's this bullshit ?

$ grep ^modules: Makefile
modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux)
modules: $(module-dirs)

Avuton is right, you *have* forgotten to make modules.

> Brice

Willy


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  4:20     ` Willy Tarreau
@ 2006-06-14  4:27       ` Brice Goglin
  2006-06-16 19:43         ` Russell Whitaker
  2006-06-14  5:09       ` Russell Whitaker
  1 sibling, 1 reply; 10+ messages in thread
From: Brice Goglin @ 2006-06-14  4:27 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: Avuton Olrich, Russell Whitaker, linux-kernel

Willy Tarreau wrote:
> On Wed, Jun 14, 2006 at 12:10:59AM -0400, Brice Goglin wrote:
>   
>> Avuton Olrich wrote:
>>     
>>> On 6/13/06, Russell Whitaker <russ@ashlandhome.net> wrote:
>>>       
>>>> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
>>>>    compiles ok, installs ok. But, when attempting to load a module, get
>>>>    the following message:  version magic '2.6.16.19via K6 gcc-4.1',
>>>>    should be '2.6.16.19via 486 gcc-3.3'
>>>>         
>>> You may have forgotten to "make modules modules_install"
>>>       
>> Actually, "make modules" does not exist anymore with 2.6. Both built-in
>> and modular stuff are built at the same time.
>> Only "make modules_install" is still required.
>>     
>
> What's this bullshit ?
>
> $ grep ^modules: Makefile
> modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux)
> modules: $(module-dirs)
>   

Sorry, my mistake. Didn't know the target still existed. Anyway, "make"
now implies "make modules" so the latter is not required anymore as long
as you fully rebuild your kernel using the former (which I assume
Russell did since he changed his compiler).

Brice


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  4:20     ` Willy Tarreau
  2006-06-14  4:27       ` Brice Goglin
@ 2006-06-14  5:09       ` Russell Whitaker
  1 sibling, 0 replies; 10+ messages in thread
From: Russell Whitaker @ 2006-06-14  5:09 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: Brice Goglin, Avuton Olrich, linux-kernel



On Wed, 14 Jun 2006, Willy Tarreau wrote:

> On Wed, Jun 14, 2006 at 12:10:59AM -0400, Brice Goglin wrote:
>> Avuton Olrich wrote:
>>> On 6/13/06, Russell Whitaker <russ@ashlandhome.net> wrote:
>>>> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
>>>>    compiles ok, installs ok. But, when attempting to load a module, get
>>>>    the following message:  version magic '2.6.16.19via K6 gcc-4.1',
>>>>    should be '2.6.16.19via 486 gcc-3.3'
>>>
>>> You may have forgotten to "make modules modules_install"
>>
>> Actually, "make modules" does not exist anymore with 2.6. Both built-in
>> and modular stuff are built at the same time.
>> Only "make modules_install" is still required.
>
> What's this bullshit ?
>
> $ grep ^modules: Makefile
> modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux)
> modules: $(module-dirs)
>
> Avuton is right, you *have* forgotten to make modules.
>
>> Brice
>
> Willy
>
After found the above problem, did it all again to be sure:

   make mrproper
   rm -r /lib/modules/*
   cp ../config-2.6.16.19 .config
   make menuconfig    ( made sure it's same config, then saved without
                        changes )
   make
   make modules
   make modules_install
   make bzlilo

Same result.
   russ

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  2:23 2.6.16.19 + gcc-4.1.1 Russell Whitaker
  2006-06-14  3:49 ` Avuton Olrich
@ 2006-06-14  5:24 ` Tino Keitel
  1 sibling, 0 replies; 10+ messages in thread
From: Tino Keitel @ 2006-06-14  5:24 UTC (permalink / raw)
  To: linux-kernel

On Tue, Jun 13, 2006 at 19:23:30 -0700, Russell Whitaker wrote:
> hi
> 
> First, I did this:
>   made kernel with cpu=486, gcc-3.3.6
>   worked fine.
> 
> Next, changed cpu to k6, all else same.
>   worked fine.
> 
> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
>   compiles ok, installs ok. But, when attempting to load a module, get
>   the following message:  version magic '2.6.16.19via K6 gcc-4.1',
>   should be '2.6.16.19via 486 gcc-3.3'

Did you reboot with the kernel built with gcc 4.1.1? The gcc version in
/proc/version has to match the gcc version of the module you want to
load..

Regards,
Tino

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  4:10   ` Brice Goglin
  2006-06-14  4:20     ` Willy Tarreau
@ 2006-06-14  9:33     ` Jan Engelhardt
  2006-06-14 17:06       ` Alistair John Strachan
  1 sibling, 1 reply; 10+ messages in thread
From: Jan Engelhardt @ 2006-06-14  9:33 UTC (permalink / raw)
  To: Brice Goglin; +Cc: Avuton Olrich, Russell Whitaker, linux-kernel


>Actually, "make modules" does not exist anymore with 2.6. Both built-in
>and modular stuff are built at the same time.
>Only "make modules_install" is still required.
>
You can _still_ build bzImage and modules separately.

The _default_ kernel Makefile target though reads (sth. like)

all: bzImage modules


Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  9:33     ` Jan Engelhardt
@ 2006-06-14 17:06       ` Alistair John Strachan
  0 siblings, 0 replies; 10+ messages in thread
From: Alistair John Strachan @ 2006-06-14 17:06 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Brice Goglin, Avuton Olrich, Russell Whitaker, linux-kernel

On Wednesday 14 June 2006 10:33, Jan Engelhardt wrote:
> >Actually, "make modules" does not exist anymore with 2.6. Both built-in
> >and modular stuff are built at the same time.
> >Only "make modules_install" is still required.
>
> You can _still_ build bzImage and modules separately.
>
> The _default_ kernel Makefile target though reads (sth. like)
>
> all: bzImage modules

Maybe for consistency with other packages, the default "make install" should 
imply modules_install too.

I know you can hack around this with /sbin/installkernel (on at least x86 and 
x86_64), but it's counterintuitive. I guess the reason is that 'install' has 
always meant "just the bzImage please", and sometimes it's valid to install 
only a bzImage without reinstalling modules. However, it just leads to 
problems such at the original poster's.

-- 
Cheers,
Alistair.

Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.6.16.19 + gcc-4.1.1
  2006-06-14  4:27       ` Brice Goglin
@ 2006-06-16 19:43         ` Russell Whitaker
  0 siblings, 0 replies; 10+ messages in thread
From: Russell Whitaker @ 2006-06-16 19:43 UTC (permalink / raw)
  To: Brice Goglin; +Cc: Willy Tarreau, Avuton Olrich, Horst von Brand, linux-kernel



On Wed, 14 Jun 2006, Brice Goglin wrote:

> Willy Tarreau wrote:
>> On Wed, Jun 14, 2006 at 12:10:59AM -0400, Brice Goglin wrote:
>>
>>> Avuton Olrich wrote:
>>>
>>>> On 6/13/06, Russell Whitaker <russ@ashlandhome.net> wrote:
>>>>
>>>>> Then, after mrproper, rebuilt with gcc-4.1.1, no other changes.
>>>>>    compiles ok, installs ok. But, when attempting to load a module, get
>>>>>    the following message:  version magic '2.6.16.19via K6 gcc-4.1',
>>>>>    should be '2.6.16.19via 486 gcc-3.3'
>>>>>
>>>> You may have forgotten to "make modules modules_install"
>>>>
Problem solved:

The original installation, Slackware, uses "/vmlinuz". The kernel build
uses "/boot/vmlinuz" and the original lilo.config without checking to see
if there is a "/boot/vmlinuz" in it. Thus on reboot the system is trying 
to match the old kernel with the new modules.

A warning message would have been nice.

Thanks, all, for the help.
   russ

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-06-16 19:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14  2:23 2.6.16.19 + gcc-4.1.1 Russell Whitaker
2006-06-14  3:49 ` Avuton Olrich
2006-06-14  4:10   ` Brice Goglin
2006-06-14  4:20     ` Willy Tarreau
2006-06-14  4:27       ` Brice Goglin
2006-06-16 19:43         ` Russell Whitaker
2006-06-14  5:09       ` Russell Whitaker
2006-06-14  9:33     ` Jan Engelhardt
2006-06-14 17:06       ` Alistair John Strachan
2006-06-14  5:24 ` Tino Keitel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.