2001-04-02 11:41:09

by Andrejs Dubovskis

[permalink] [raw]
Subject: 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.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:
/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=y
CONFIG_ISA=y
CONFIG_EISA=y
CONFIG_PCI=y
CONFIG_ALPHA_BROKEN_IRQ_MASK=y
CONFIG_PCI_NAMES=y
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y

CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_LOOP=y

CONFIG_MD=y
CONFIG_BLK_DEV_LVM=y

CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_SYN_COOKIES=y

CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
CONFIG_CHR_DEV_ST=y
CONFIG_BLK_DEV_SR=y
CONFIG_SR_EXTRA_DEVS=2
CONFIG_SCSI_CONSTANTS=y

CONFIG_SCSI_NCR53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20

CONFIG_NETDEVICES=y

CONFIG_NET_ETHERNET=y
CONFIG_NET_PCI=y
CONFIG_DE4X5=y

CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=128

CONFIG_RTC=y

CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y

CONFIG_OSF_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_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


2001-04-02 13:04:33

by Gustavo Niemeyer

[permalink] [raw]
Subject: Re: can not compile 2.4.3 on alpha

Hello Andrejs!!

> [linux] make dep;make clean;make boot
[...]
> /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
[...]

This is happening on ia64 as well. The interface seems to have changed
but some architectures were forgotten.

--
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]

2001-04-02 17:15:50

by Andrea Arcangeli

[permalink] [raw]
Subject: Re: can not compile 2.4.3 on alpha

On Mon, Apr 02, 2001 at 02:40:01PM +0300, Andrejs Dubovskis wrote:
> [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.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:
> /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

can you try this patch?

ftp://ftp.kernel.org/pub/linux/kernel/people/andrea/patches/v2.4/2.4.3/alpha-numa-2

Andrea

2001-04-03 00:30:11

by Jeff Garzik

[permalink] [raw]
Subject: Re: can not compile 2.4.3 on alpha

Gustavo Niemeyer wrote:
> Hello Andrejs!!
> > /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.

--
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.