Skip to contentSkip to conversation

can not compile 2.4.3 on alpha

DISCUSSION Andrejs Dubovskis 4 participants 4 messages Apr 2, 2001 – Apr 3, 2001

lore
Share & tools
lore
#0 lore raw

[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

#1 lore raw

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

Signature · 3 lines
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
#2 lore raw
In reply to Andrejs Dubovskis
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 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

#3 lore raw
In reply to Andrejs Dubovskis
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.