2002-02-20 19:36:28

by jurriaan

[permalink] [raw]
Subject: 2.5.5 compile on alpha bombs

I'm not sure if it is meant to work, it being a development kernel and
all, but if anybody is interested:

ALPHA :make boot
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.5.5/include/linux/pagemap.h:16,
from /usr/src/linux-2.5.5/include/linux/blkdev.h:9,
from /usr/src/linux-2.5.5/include/linux/blk.h:4,
from init/main.c:25:
/usr/src/linux-2.5.5/include/linux/highmem.h: In function `memclear_highpage_flush':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: implicit declaration of function `flush_dcache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:113: warning: implicit declaration of function `flush_page_to_ram'
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -DUTS_MACHINE='"alpha"' -DKBUILD_BASENAME=version -c -o init/version
.o init/version.c
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -c -o init/do_mounts.o init/do_mounts.c
In file included from /usr/src/linux-2.5.5/include/linux/pagemap.h:16,
from /usr/src/linux-2.5.5/include/linux/blkdev.h:9,
from /usr/src/linux-2.5.5/include/linux/blk.h:4,
from init/do_mounts.c:9:
/usr/src/linux-2.5.5/include/linux/highmem.h: In function `memclear_highpage_flush':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: implicit declaration of function `flush_dcache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:113: warning: implicit declaration of function `flush_page_to_ram'
init/do_mounts.c: At top level:
init/do_mounts.c:958: warning: `crd_load' defined but not used
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-stric
t-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 " -C kernel
make[1]: Entering directory `/usr/src/linux-2.5.5/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.5.5/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sche
d.c
In file included from sched.c:22:
/usr/src/linux-2.5.5/include/asm/mmu_context.h:32: #error update this function.
sched.c:440: macro `switch_to' used with only 2 args
In file included from sched.c:24:
/usr/src/linux-2.5.5/include/linux/highmem.h: In function `memclear_highpage_flush':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: implicit declaration of function `flush_dcache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:113: warning: implicit declaration of function `flush_page_to_ram'
sched.c: In function `context_switch':
sched.c:440: parse error before `)'
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.5/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.5/kernel'
make: *** [_dir_kernel] Error 2
ALPHA :

Jurriaan
--
Lack of skill dictates economy of style.
Joey Ramone
GNU/Linux 2.4.18-rc1 on Debian/Alpha 988 bogomips 5 users load:0.00 0.09 0.21


2002-02-20 19:48:30

by Jeff Garzik

[permalink] [raw]
Subject: Re: 2.5.5 compile on alpha bombs

Jurriaan on Alpha wrote:
>
> I'm not sure if it is meant to work, it being a development kernel and
> all, but if anybody is interested:

Cool, there are other users too ;-)

Yeah, Richard Henderson, alpha maintainer, is aware of it.. He already
has a fix for switch_to(), I'm not sure about the others...

--
Jeff Garzik | "Why is it that attractive girls like you
Building 1024 | always seem to have a boyfriend?"
MandrakeSoft | "Because I'm a nympho that owns a brewery?"
| - BBC TV show "Coupling"

2002-02-20 20:00:22

by Holzrichter, Bruce

[permalink] [raw]
Subject: RE: 2.5.5 compile on alpha bombs

I saw the same error on Sparc, and Ingo pointed out that a quick work around
was to revert switch_to () from two args back to three in sched.c

It looks like this now switch_to (prev, next);
I was able to change it like this switch_to (prev, next, prev); and was able
to get it working again, this is not the correct fix, but a quick work
around, and I don't know if Alpha is the same, but it may be worth a shot.

Bruce H.

-----Original Message-----
From: Jurriaan on Alpha [mailto:[email protected]]
Sent: Wednesday, February 20, 2002 2:36 PM
To: [email protected]
Subject: 2.5.5 compile on alpha bombs


I'm not sure if it is meant to work, it being a development kernel and
all, but if anybody is interested:

ALPHA :make boot
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6
-DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.5.5/include/linux/pagemap.h:16,
from /usr/src/linux-2.5.5/include/linux/blkdev.h:9,
from /usr/src/linux-2.5.5/include/linux/blk.h:4,
from init/main.c:25:
/usr/src/linux-2.5.5/include/linux/highmem.h: In function
`memclear_highpage_flush':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: implicit
declaration of function `flush_dcache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:113: warning: implicit
declaration of function `flush_page_to_ram'
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6
-DUTS_MACHINE='"alpha"' -DKBUILD_BASENAME=version -c -o init/version
.o init/version.c
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -c -o
init/do_mounts.o init/do_mounts.c
In file included from /usr/src/linux-2.5.5/include/linux/pagemap.h:16,
from /usr/src/linux-2.5.5/include/linux/blkdev.h:9,
from /usr/src/linux-2.5.5/include/linux/blk.h:4,
from init/do_mounts.c:9:
/usr/src/linux-2.5.5/include/linux/highmem.h: In function
`memclear_highpage_flush':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: implicit
declaration of function `flush_dcache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:113: warning: implicit
declaration of function `flush_page_to_ram'
init/do_mounts.c: At top level:
init/do_mounts.c:958: warning: `crd_load' defined but not used
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-stric
t-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 "
-C kernel
make[1]: Entering directory `/usr/src/linux-2.5.5/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.5.5/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.5.5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasin
g -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6
-DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sche
d.c
In file included from sched.c:22:
/usr/src/linux-2.5.5/include/asm/mmu_context.h:32: #error update this
function.
sched.c:440: macro `switch_to' used with only 2 args
In file included from sched.c:24:
/usr/src/linux-2.5.5/include/linux/highmem.h: In function
`memclear_highpage_flush':
/usr/src/linux-2.5.5/include/linux/highmem.h:112: warning: implicit
declaration of function `flush_dcache_page'
/usr/src/linux-2.5.5/include/linux/highmem.h:113: warning: implicit
declaration of function `flush_page_to_ram'
sched.c: In function `context_switch':
sched.c:440: parse error before `)'
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.5/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.5/kernel'
make: *** [_dir_kernel] Error 2
ALPHA :

Jurriaan
--
Lack of skill dictates economy of style.
Joey Ramone
GNU/Linux 2.4.18-rc1 on Debian/Alpha 988 bogomips 5 users load:0.00 0.09
0.21