[parisc-linux] compiling kernels with gcc-3.1
joel.soete@freebel.net
joel.soete@freebel.net
Fri, 12 Jul 2002 11:49:48 +0200 (CEST)
Hi Randolph,
I am on going to build mirroring on my test server.
But I will test it asap (as I already cvs update gcc-3.1.. ) and let you inform.
Thanks a lot for info,
Joel
PS: Can you do a telnet or an ssh connection when this kernel is running? IIRC
as well as gcc-3.1 as gcc-3.2, I always reach well to build and boot kernels
(without kdb) but the system crashes as soon as you try to connect it via the
network.
Quoting Randolph Chung <randolph@tausq.org>:
> 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/
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
>
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)