can not compile 2.4.3 on alpha
[linux] make dep;make clean;make boot
...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6 -c -o init/main.oinit/main.c
In file included from /usr/src/linux-2.4.3/include/linux/highmem.h:6,
from /usr/src/linux-2.4.3/include/linux/pagemap.h:17,
from /usr/src/linux-2.4.3/include/linux/locks.h:9,
from /usr/src/linux-2.4.3/include/linux/raid/md.h:37,
from init/main.c:25:/usr/src/linux-2.4.3/include/asm/pgalloc.h:334: conflicting types for `pte_alloc'/usr/src/linux-2.4.3/include/linux/mm.h:399: previous declaration of pte_alloc' /usr/src/linux-2.4.3/include/asm/pgalloc.h:352: conflicting types for pmd_alloc'/usr/src/linux-2.4.3/include/linux/mm.h:412: previous declaration of `pmd_alloc'
make: *** [init/main.o] Error 1
======================================
[andrejs@smsmail2 linux]$ grep -v ^# .config | uniq CONFIG_ALPHA=y
CONFIG_ALPHA_GENERIC=yCONFIG_ISA=yCONFIG_EISA=yCONFIG_PCI=yCONFIG_ALPHA_BROKEN_IRQ_MASK=yCONFIG_PCI_NAMES=yCONFIG_NET=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_ELF=y
CONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_LOOP=y
CONFIG_MD=yCONFIG_BLK_DEV_LVM=y
CONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_SYN_COOKIES=y
CONFIG_SCSI=yCONFIG_BLK_DEV_SD=yCONFIG_SD_EXTRA_DEVS=40CONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_SR_EXTRA_DEVS=2CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_NCR53C8XX=yCONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32CONFIG_SCSI_NCR53C8XX_SYNC=20
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=yCONFIG_NET_PCI=yCONFIG_DE4X5=y
CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_SERIAL_CONSOLE=yCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=128
CONFIG_RTC=y
CONFIG_FAT_FS=yCONFIG_MSDOS_FS=yCONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_EXT2_FS=y
CONFIG_OSF_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=y
CONFIG_MATHEMU=y
======================================
[linux] sh scripts/ver_linux
If some fields are empty or look unusual you may have an old version. Compare to the current minimal requirements in Documentation/Changes.
Linux smsmail2.td.lmt.lv 2.4.2adu2 #5 Wed Mar 28 09:48:19 UTC 2001 alpha unknown
Gnu C 2.96 Gnu make 3.79.1 binutils 2.10.0.18 util-linux 2.10m modutils found e2fsprogs 1.18 Linux C Library > libc.2.2 Dynamic linker (ldd) 2.2 Procps 2.0.7 Net-tools 1.56 Kbd command Sh-utils 2.0
Modules Loaded
Hello Andrejs!!
Quoted 1 line
[linux] make dep;make clean;make boot
[...]
Quoted 9 lines
/usr/src/linux-2.4.3/include/asm/pgalloc.h:334: conflicting types for `pte_alloc'/usr/src/linux-2.4.3/include/linux/mm.h:399: previous declaration ofpte_alloc' /usr/src/linux-2.4.3/include/asm/pgalloc.h:352: conflicting types forpmd_alloc'/usr/src/linux-2.4.3/include/linux/mm.h:412: previous declaration of `pmd_alloc'
make: *** [init/main.o] Error 1
[...]
This is happening on ia64 as well. The interface seems to have changed but some architectures were forgotten.
Signature · 3 lines
Gustavo Niemeyer [ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
Quoted 11 lines · Andrejs Dubovskis
[linux] make dep;make clean;make boot
...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall(quoted diff) +0
-2-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6 -c -o init/main.o
init/main.c
In file included from/usr/src/linux-2.4.3/include/linux/highmem.h:6,from /usr/src/linux-2.4.3/include/linux/pagemap.h:17, from /usr/src/linux-2.4.3/include/linux/locks.h:9, from /usr/src/linux-2.4.3/include/linux/raid/md.h:37, from init/main.c:25:
Quoted 9 lines
/usr/src/linux-2.4.3/include/asm/pgalloc.h:334: conflicting types for `pte_alloc'/usr/src/linux-2.4.3/include/linux/mm.h:399: previous declaration ofpte_alloc' /usr/src/linux-2.4.3/include/asm/pgalloc.h:352: conflicting types forpmd_alloc'/usr/src/linux-2.4.3/include/linux/mm.h:412: previous declaration of `pmd_alloc'
make: *** [init/main.o] Error 1
can you try this patch?
ftp://ftp.kernel.org/pub/linux/kernel/people/andrea/patches/v2.4/2.4.3/alpha-numa-2
Andrea
Quoted 6 lines · Gustavo Niemeyer
Hello Andrejs!!
Quoted 2 lines
/usr/src/linux-2.4.3/include/asm/pgalloc.h:334: conflicting types for `pte_alloc'This is happening on ia64 as well. The interface seems to have changed but some architectures were forgotten.
The interface changed and other architectures have not caught up yet :) Other archs pretty much always play catch-up to the x86 port.
Signature · 3 lines
Jeff Garzik | May you have warm words on a cold evening, Building 1024 | a full moon on a dark night, MandrakeSoft | and a smooth road all the way to your door.