public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* regarding kernel compilation
@ 2005-09-20  6:22 Gireesh Kumar
  2005-09-20  7:11 ` Fawad Lateef
  2005-09-20  9:38 ` Mikael Pettersson
  0 siblings, 2 replies; 8+ messages in thread
From: Gireesh Kumar @ 2005-09-20  6:22 UTC (permalink / raw)
  To: linux-kernel

Hi,
I'd like to compile 2.4.20-6 kernel while running in 2.6 kernel. I tried
to do so but there are redeclaration errors with /kernel/sched.c and
/include/linux/sched.h. One it is FASTCALL and the other it is not.
Can anyone help me to fix this?
Thankyou,
Gireesh.


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

* Re: regarding kernel compilation
  2005-09-20  6:22 Gireesh Kumar
@ 2005-09-20  7:11 ` Fawad Lateef
  2005-09-20  8:12   ` Denis Vlasenko
  2005-09-20  9:38 ` Mikael Pettersson
  1 sibling, 1 reply; 8+ messages in thread
From: Fawad Lateef @ 2005-09-20  7:11 UTC (permalink / raw)
  To: Gireesh Kumar; +Cc: linux-kernel

On 9/20/05, Gireesh Kumar <gireesh.kumar@einfochips.com> wrote:
> Hi,
> I'd like to compile 2.4.20-6 kernel while running in 2.6 kernel. I tried
> to do so but there are redeclaration errors with /kernel/sched.c and
> /include/linux/sched.h. One it is FASTCALL and the other it is not.
> Can anyone help me to fix this?

I don't think you will be able to compile 2.4 kernel on to the 2.6
kernel based distro .... as in 2.6 based distro, mod-utils and other
packages are updated and will only support 2.6 based kernel .... So
its better to get 2.4 kernel based distribution .... (and can keep/run
both 2.6 and 2.4 based distributions simultanously on the same system,
so that you can boot in any of them as per your requirement of 2.4 or
2.6 kernel)

-- 
Fawad Lateef

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

* Re: regarding kernel compilation
  2005-09-20  7:11 ` Fawad Lateef
@ 2005-09-20  8:12   ` Denis Vlasenko
  2005-09-20  8:37     ` Fawad Lateef
  0 siblings, 1 reply; 8+ messages in thread
From: Denis Vlasenko @ 2005-09-20  8:12 UTC (permalink / raw)
  To: fawadlateef; +Cc: Gireesh Kumar, linux-kernel

On Tuesday 20 September 2005 10:11, Fawad Lateef wrote:
> On 9/20/05, Gireesh Kumar <gireesh.kumar@einfochips.com> wrote:
> > Hi,
> > I'd like to compile 2.4.20-6 kernel while running in 2.6 kernel. I tried
> > to do so but there are redeclaration errors with /kernel/sched.c and
> > /include/linux/sched.h. One it is FASTCALL and the other it is not.
> > Can anyone help me to fix this?

Kernel conpile should never use system includes, let alone
includes from _another_ kernel tree. (Using stdarg.h from gcc is ok)

> I don't think you will be able to compile 2.4 kernel on to the 2.6
> kernel based distro .... as in 2.6 based distro, mod-utils and other

2.6 modutils (module-init-tools to be exact) fall back to <toolname>.old
(by just exec'ing it) if those exist.

> packages are updated and will only support 2.6 based kernel .... So

Not true. I compiled 2.4 kernels on 2.6 machine without any problems.

> its better to get 2.4 kernel based distribution .... (and can keep/run
> both 2.6 and 2.4 based distributions simultanously on the same system,
> so that you can boot in any of them as per your requirement of 2.4 or
> 2.6 kernel)
--
vda

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

* Re: regarding kernel compilation
  2005-09-20  8:12   ` Denis Vlasenko
@ 2005-09-20  8:37     ` Fawad Lateef
  2005-09-20  8:56       ` Denis Vlasenko
  2005-09-20 12:27       ` Jesper Juhl
  0 siblings, 2 replies; 8+ messages in thread
From: Fawad Lateef @ 2005-09-20  8:37 UTC (permalink / raw)
  To: Denis Vlasenko; +Cc: Gireesh Kumar, linux-kernel

On 9/20/05, Denis Vlasenko <vda@ilport.com.ua> wrote:
> On Tuesday 20 September 2005 10:11, Fawad Lateef wrote:
> > I don't think you will be able to compile 2.4 kernel on to the 2.6
> > kernel based distro .... as in 2.6 based distro, mod-utils and other
> 
> 2.6 modutils (module-init-tools to be exact) fall back to <toolname>.old
> (by just exec'ing it) if those exist.
> 

you are right, but if they exists .... but what IIRC I havn't found
them on FC4/RH EL4 distributions .....

> > packages are updated and will only support 2.6 based kernel .... So
> 
> Not true. I compiled 2.4 kernels on 2.6 machine without any problems.
> 
On which distribution 2.6 based you compiled and succesfully run 2.4
kernel ??? b/c its not working on FC3/FC4/AS4 .........

-- 
Fawad Lateef

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

* Re: regarding kernel compilation
  2005-09-20  8:37     ` Fawad Lateef
@ 2005-09-20  8:56       ` Denis Vlasenko
  2005-09-20 12:27       ` Jesper Juhl
  1 sibling, 0 replies; 8+ messages in thread
From: Denis Vlasenko @ 2005-09-20  8:56 UTC (permalink / raw)
  To: fawadlateef; +Cc: Gireesh Kumar, linux-kernel

> you are right, but if they exists .... but what IIRC I havn't found
> them on FC4/RH EL4 distributions .....

Then build them from source. Big deal.
 
> > > packages are updated and will only support 2.6 based kernel .... So
> > 
> > Not true. I compiled 2.4 kernels on 2.6 machine without any problems.
> > 
> On which distribution 2.6 based you compiled and succesfully run 2.4
> kernel ??? b/c its not working on FC3/FC4/AS4 .........

I used distro for installing my Linux box exactly once in my life when
I installed Slackware (IIRC it was Slack 7). It got heavily modified
over time...
--
vda

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

* Re: regarding kernel compilation
  2005-09-20  6:22 Gireesh Kumar
  2005-09-20  7:11 ` Fawad Lateef
@ 2005-09-20  9:38 ` Mikael Pettersson
  1 sibling, 0 replies; 8+ messages in thread
From: Mikael Pettersson @ 2005-09-20  9:38 UTC (permalink / raw)
  To: Gireesh Kumar; +Cc: linux-kernel

Gireesh Kumar writes:
 > Hi,
 > I'd like to compile 2.4.20-6 kernel while running in 2.6 kernel. I tried
 > to do so but there are redeclaration errors with /kernel/sched.c and
 > /include/linux/sched.h. One it is FASTCALL and the other it is not.
 > Can anyone help me to fix this?

Looks like you're trying to compile an ancient 2.4 kernel with gcc-3.4
or newer. That has zero chance of working.

Since that looks like a RH 2.4.20 kernel, you should probably use
gcc-3.2.3 to compile it. Alternatively you can use gcc-3.4 with the
current 2.4.31 kernel.

Some 2.6-based distributions do have problems running 2.4 kernels:
FC3 needs some minor tweaks (replace udev and module-init-tools with
dev and modutils from FC2) but FC4 is a lost cause due to NPTL.

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

* Re: regarding kernel compilation
  2005-09-20  8:37     ` Fawad Lateef
  2005-09-20  8:56       ` Denis Vlasenko
@ 2005-09-20 12:27       ` Jesper Juhl
  1 sibling, 0 replies; 8+ messages in thread
From: Jesper Juhl @ 2005-09-20 12:27 UTC (permalink / raw)
  To: fawadlateef; +Cc: Denis Vlasenko, Gireesh Kumar, linux-kernel

On 9/20/05, Fawad Lateef <fawadlateef@gmail.com> wrote:
> On 9/20/05, Denis Vlasenko <vda@ilport.com.ua> wrote:
> > On Tuesday 20 September 2005 10:11, Fawad Lateef wrote:
> > > I don't think you will be able to compile 2.4 kernel on to the 2.6
> > > kernel based distro .... as in 2.6 based distro, mod-utils and other
> >
> > 2.6 modutils (module-init-tools to be exact) fall back to <toolname>.old
> > (by just exec'ing it) if those exist.
> >
> 
> you are right, but if they exists .... but what IIRC I havn't found
> them on FC4/RH EL4 distributions .....
> 
Slackware 10.0, 10.1 and 10.2 run just fine with 2.4.x and 2.6.x
kernels and you can build, install and run both just fine - no
problems at all there (even Slackware 9.1 will work with a few small
changes).

> > > packages are updated and will only support 2.6 based kernel .... So
> >
> > Not true. I compiled 2.4 kernels on 2.6 machine without any problems.
> >
> On which distribution 2.6 based you compiled and succesfully run 2.4
> kernel ??? b/c its not working on FC3/FC4/AS4 .........
> 
Those are just a small subset of available distributions. Just because
it won't work there doesn't mean much.

-- 
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

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

* Re: regarding kernel compilation
       [not found] <4OJNI-Rt-1@gated-at.bofh.it>
@ 2005-09-21  0:08 ` Robert Hancock
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Hancock @ 2005-09-21  0:08 UTC (permalink / raw)
  To: linux-kernel

Gireesh Kumar wrote:
> Hi,
> I'd like to compile 2.4.20-6 kernel while running in 2.6 kernel. I tried
> to do so but there are redeclaration errors with /kernel/sched.c and
> /include/linux/sched.h. One it is FASTCALL and the other it is not.
> Can anyone help me to fix this?
> Thankyou,
> Gireesh.

What compiler? You probably need an older version of gcc to compile that 
kernel. gcc4 definitely will not work, 3.4 may have issues as well.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


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

end of thread, other threads:[~2005-09-21  0:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4OJNI-Rt-1@gated-at.bofh.it>
2005-09-21  0:08 ` regarding kernel compilation Robert Hancock
2005-09-20  6:22 Gireesh Kumar
2005-09-20  7:11 ` Fawad Lateef
2005-09-20  8:12   ` Denis Vlasenko
2005-09-20  8:37     ` Fawad Lateef
2005-09-20  8:56       ` Denis Vlasenko
2005-09-20 12:27       ` Jesper Juhl
2005-09-20  9:38 ` Mikael Pettersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox