mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Drosos Kourounis <drososkourounis@yahoo.gr>
To: linux-kernel@vger.kernel.org
Subject: kernel 2.4.20, 2.4.21, 2.4.22 , ... does not compile with gcc-3.4.X
Date: Fri, 22 Jul 2005 00:53:07 -0700 (PDT)	[thread overview]
Message-ID: <20050722075307.46321.qmail@web25806.mail.ukl.yahoo.com> (raw)

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 

             reply	other threads:[~2005-07-22  7:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22  7:53 Drosos Kourounis [this message]
2005-07-22  8:10 ` Paolo Ornati
2005-07-22  9:35 Mikael Pettersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050722075307.46321.qmail@web25806.mail.ukl.yahoo.com \
    --to=drososkourounis@yahoo.gr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®