From: Randolph Chung <randolph@tausq.org>
To: parisc-linux@parisc-linux.org
Subject: [parisc-linux] compiling kernels with gcc-3.1
Date: Fri, 12 Jul 2002 00:36:28 -0700 [thread overview]
Message-ID: <20020712073628.GB8838@tausq.org> (raw)
I seem to recall some reports that you cannot build a working kernel
with gcc-3.1....
Well, maybe they've changed things upstream, but I just tried with
gcc-3.1.1 (3.1.1 20020708 snapshot) and it seems to work well, at least
with my limited testing... this is with the debian default 64-bit smp
.config.
I did have to hack up a bunch of code... it seems like gcc-3.1.1 doesn't
like this construct:
typedef struct {
volatile unsigned int __attribute__((aligned(16))) lock;
} spinlock_t;
typedef struct {
spinlock_t lock;
volatile unsigned int count;
} rwlock_t;
rwlock_t foo = (rwlock_t) { (spinlock_t) { 1 }, 0 };
it complains that the initializer is not constant in this case.
removing the (rwlock_t) cast fixed that....
also it doesn't like it when you have a variable and you initialize it
after declaration with the { (spinlock_t) { 1 }, 0 } stuff...
(e.g.
rwlock_t foo;
foo = { (spinlock_t) { 1 }, 0 };
gives a "parse error at {" message)
after working through these problems i got a working kernel...
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
next reply other threads:[~2002-07-12 7:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-12 7:36 Randolph Chung [this message]
2002-07-12 9:49 ` [parisc-linux] compiling kernels with gcc-3.1 joel.soete
2002-07-12 15:01 ` Randolph Chung
2002-07-12 16:23 ` joel.soete
2002-07-15 7:03 ` joel.soete
2002-07-15 7:24 ` joel.soete
2002-07-15 15:06 ` Randolph Chung
2002-07-15 15:56 ` joel.soete
2002-07-15 15:24 ` John David Anglin
2002-07-15 15:52 ` joel.soete
2002-07-15 16:22 ` Randolph Chung
2002-07-15 17:13 ` John David Anglin
2002-07-15 17:27 ` joel.soete
2002-07-13 5:20 ` [parisc-linux] compiling kernels with gcc-3.2 Randolph Chung
2002-07-13 10:24 ` Joel Soete
2002-07-13 18:54 ` Carlos O'Donell
2002-07-13 17:06 ` [parisc-linux] compiling kernels with gcc-3.1 Joel Soete
[not found] <no.id>
2002-07-15 17:21 ` John David Anglin
2002-07-15 17:32 ` Randolph Chung
2002-07-15 17:43 ` Matthew Wilcox
2002-07-15 18:18 ` John David Anglin
2002-07-16 9:02 ` joel.soete
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=20020712073628.GB8838@tausq.org \
--to=randolph@tausq.org \
--cc=parisc-linux@parisc-linux.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