* kernel 2.4.20, 2.4.21, 2.4.22 , ... does not compile with gcc-3.4.X
@ 2005-07-22 7:53 Drosos Kourounis
2005-07-22 8:10 ` Paolo Ornati
0 siblings, 1 reply; 3+ messages in thread
From: Drosos Kourounis @ 2005-07-22 7:53 UTC (permalink / raw)
To: linux-kernel
Dear Developers,
This might be a known issue but it is not known to me!
I tried to compile kernel 2.4.22 under Crux Linux,
and the compilation stopped in sched.c. I do not have
to say much to you because it seems a compiler
problem!
I guess that it would compile nicely with gcc-3.3.X.
The problem is in the following piece of code:
#define FASTCALL(x) x __attribute__((regparm(3)))
for instance in the following piece of code:
// file inc.h
//------------
#ifndef inc_h
#define inc_h
#define FASTCALL(x) x __attribute__((regparm(3)))
extern int FASTCALL(wake_up(double a));
#endif
// file inc.c
//------------
#include "inc.h"
inline int wake_up(double a)
{
return (int) a;
}
root@archon# gcc-3.4.4 inc.c -c
inc.c:3: error: conflicting types for 'wake_up'
inc.h:5: error: previous declaration of 'wake_up' was
here
inc.c:3: error: conflicting types for 'wake_up'
inc.h:5: error: previous declaration of 'wake_up' was
here
root@archon# gcc-3.3.1 inc.c -c
root@archon#
so it is indeed a compiler problem!
The question is how do I compile a 2.4.X kernel with
gcc-3.4.X?
Thanks in advance!
Best Wishes!
Drosos,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: kernel 2.4.20, 2.4.21, 2.4.22 , ... does not compile with gcc-3.4.X
2005-07-22 7:53 kernel 2.4.20, 2.4.21, 2.4.22 , ... does not compile with gcc-3.4.X Drosos Kourounis
@ 2005-07-22 8:10 ` Paolo Ornati
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Ornati @ 2005-07-22 8:10 UTC (permalink / raw)
To: Drosos Kourounis; +Cc: linux-kernel
On Fri, 22 Jul 2005 00:53:07 -0700 (PDT)
Drosos Kourounis <drososkourounis@yahoo.gr> wrote:
> Dear Developers,
> This might be a known issue but it is not known to me!
> I tried to compile kernel 2.4.22 under Crux Linux,
> and the compilation stopped in sched.c. I do not have
> to say much to you because it seems a compiler
> problem!
Linux 2.4.22 is quite old: 25-Aug-2003...
Have you tried with 2.4.31?
--
Paolo Ornati
Linux 2.6.13-rc3 on x86_64
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel 2.4.20, 2.4.21, 2.4.22 , ... does not compile with gcc-3.4.X
@ 2005-07-22 9:35 Mikael Pettersson
0 siblings, 0 replies; 3+ messages in thread
From: Mikael Pettersson @ 2005-07-22 9:35 UTC (permalink / raw)
To: drososkourounis, linux-kernel
Drosos Kourounis wrote:
> This might be a known issue but it is not known to me!
> I tried to compile kernel 2.4.22 under Crux Linux,
> and the compilation stopped in sched.c. I do not have
> to say much to you because it seems a compiler
> problem!
> I guess that it would compile nicely with gcc-3.3.X.
...
> The question is how do I compile a 2.4.X kernel with
> gcc-3.4.X?
Support for gcc-3.4 was added in 2.4.29. So use a newer
kernel or an older compiler.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-22 9:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22 7:53 kernel 2.4.20, 2.4.21, 2.4.22 , ... does not compile with gcc-3.4.X Drosos Kourounis
2005-07-22 8:10 ` Paolo Ornati
-- strict thread matches above, loose matches on Subject: below --
2005-07-22 9:35 Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox