kernel build of 2.5.50 fails on Alpha:
gcc -Wp,-MD,init/.do_mounts.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-protot
ypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointe
r -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6 -nostdinc -iwithprefix
include -DKBUILD_BASENAME=do_mounts -DKBUILD_MODNAME=do_mounts -c -o
init/do_mounts.o init/do_mounts.c
In file included from include/linux/raid/md.h:27,
from init/do_mounts.c:25:
include/linux/module.h:135: field `arch' has incomplete type
make[1]: *** [init/do_mounts.o] Error 1
make: *** [init] Error 2
Folkert van Heusden wrote:
>kernel build of 2.5.50 fails on Alpha:
>
>
>
>gcc -Wp,-MD,init/.do_mounts.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-protot
>ypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointe
>r -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6 -nostdinc -iwithprefix
>include -DKBUILD_BASENAME=do_mounts -DKBUILD_MODNAME=do_mounts -c -o
>init/do_mounts.o init/do_mounts.c
>In file included from include/linux/raid/md.h:27,
> from init/do_mounts.c:25:
>include/linux/module.h:135: field `arch' has incomplete type
>make[1]: *** [init/do_mounts.o] Error 1
>make: *** [init] Error 2
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
2.5 on alpha appears to be quite incomplete right now. The module
load/unload code appears to be completely out of sync with the other
archs though some parts that suggest implementation is currently
underway can be found . Still include/asm-alpha/module.h is empty thus
struct mod_arch_specific does not exist and you encounter the above
mentioned error.
Ive been working on implementing some missing bits but what Id like to
know is who is "officially" doing development for alpha on 2.5.
On Sun, Dec 01, 2002 at 05:47:53PM +0100, Bjoern Brauel wrote:
> Ive been working on implementing some missing bits but what Id like to
> know is who is "officially" doing development for alpha on 2.5.
See
http://ftp.kernel.org/pub/linux/kernel/people/rusty/patches/Module/rth-shared-modules.patch.gz
which I hope will make it into the kernel relatively soon.
r~
> Ive been working on implementing some missing bits but what Id like to
> know is who is "officially" doing development for alpha on 2.5.
RH> See
RH>
http://ftp.kernel.org/pub/linux/kernel/people/rusty/patches/Module/rth-share
d-modules.patch.gz
RH> which I hope will make it into the kernel relatively soon.
I'm afraid that one won't compile:
arch/alpha/kernel/pci.c: In function `pcibios_fixup_final':
arch/alpha/kernel/pci.c:128: `ALPHA_ALCOR_MAX_DMA_ISA_ADDRESS' undeclared
(first use in this function)
arch/alpha/kernel/pci.c:128: (Each undeclared identifier is reported only
once
arch/alpha/kernel/pci.c:128: for each function it appears in.)
make[1]: *** [arch/alpha/kernel/pci.o] Error 1
make: *** [arch/alpha/kernel] Error 2
The only reference I could find was in asm-alpha/dma.h:
define MAX_ISA_DMA_ADDRESS ALPHA_ALCOR_MAX_DMA_ISA_ADDRESS
but no definition.
Folkert van Heusden
http://www.vanheusden.com/Linux/kernel_patches.php3
On Mon, Dec 02, 2002 at 08:55:59PM +0100, Folkert van Heusden wrote:
> I'm afraid that one won't compile:
>
> arch/alpha/kernel/pci.c: In function `pcibios_fixup_final':
> arch/alpha/kernel/pci.c:128: `ALPHA_ALCOR_MAX_DMA_ISA_ADDRESS' undeclared
My fault. Please try this.
Ivan.
--- 2.5.50/include/asm-alpha/dma.h Wed Nov 6 01:44:33 2002
+++ linux/include/asm-alpha/dma.h Mon Dec 2 23:07:29 2002
@@ -112,9 +112,9 @@
# elif defined(CONFIG_ALPHA_RUFFIAN)
# define MAX_ISA_DMA_ADDRESS ALPHA_RUFFIAN_MAX_ISA_DMA_ADDRESS
# elif defined(CONFIG_ALPHA_SABLE)
-# define MAX_ISA_DMA_ADDRESS ALPHA_SABLE_MAX_DMA_ISA_ADDRESS
+# define MAX_ISA_DMA_ADDRESS ALPHA_SABLE_MAX_ISA_DMA_ADDRESS
# elif defined(CONFIG_ALPHA_ALCOR)
-# define MAX_ISA_DMA_ADDRESS ALPHA_ALCOR_MAX_DMA_ISA_ADDRESS
+# define MAX_ISA_DMA_ADDRESS ALPHA_ALCOR_MAX_ISA_DMA_ADDRESS
# else
# define MAX_ISA_DMA_ADDRESS ALPHA_MAX_ISA_DMA_ADDRESS
# endif
> arch/alpha/kernel/pci.c: In function `pcibios_fixup_final':
> arch/alpha/kernel/pci.c:128: `ALPHA_ALCOR_MAX_DMA_ISA_ADDRESS' undeclared
I> My fault. Please try this.
To no avail:
drivers/built-in.o: In function `kd_nosound':
drivers/built-in.o(.text+0x21354): undefined reference to `input_event'
drivers/built-in.o(.text+0x21358): undefined reference to `input_event'
drivers/built-in.o(.text+0x21384): undefined reference to `input_event'
drivers/built-in.o(.text+0x21388): undefined reference to `input_event'
drivers/built-in.o: In function `kd_mksound':
drivers/built-in.o(.text+0x214cc): undefined reference to `input_event'
drivers/built-in.o(.text+0x214d0): more undefined references to
`input_event' follow
drivers/built-in.o: In function `kbd_connect':
drivers/built-in.o(.text+0x236b4): undefined reference to
`input_open_device'
drivers/built-in.o(.text+0x236b8): undefined reference to
`input_open_device'
drivers/built-in.o: In function `kbd_disconnect':
drivers/built-in.o(.text+0x23718): undefined reference to
`input_close_device'
drivers/built-in.o(.text+0x2371c): undefined reference to
`input_close_device'
drivers/built-in.o: In function `kbd_init':
drivers/built-in.o(.init.text+0x4e8c): undefined reference to
`input_register_handler'
drivers/built-in.o(.init.text+0x4e90): undefined reference to
`input_register_handler'
net/built-in.o: In function `ip_conntrack_helper_register':
net/built-in.o(.text+0x69040): undefined reference to `__this_module'
net/built-in.o(.text+0x69080): undefined reference to `__this_module'
net/built-in.o: In function `ip_conntrack_helper_unregister':
net/built-in.o(.text+0x6916c): undefined reference to `__this_module'
net/built-in.o: In function `ip_nat_helper_register':
net/built-in.o(.text+0x6d314): undefined reference to `__this_module'
net/built-in.o(.text+0x6d350): undefined reference to `__this_module'
net/built-in.o(.text+0x6d640): more undefined references to `__this_module'
follow
make: *** [vmlinux] Error 1
> arch/alpha/kernel/pci.c: In function `pcibios_fixup_final':
> arch/alpha/kernel/pci.c:128: `ALPHA_ALCOR_MAX_DMA_ISA_ADDRESS' undeclared
I> My fault. Please try this.
Still problems:
ld -static -N -T arch/alpha/vmlinux.lds.s arch/alpha/kernel/head.o
init/built-in.o --start-group usr/built-in.o arch/alpha/kernel/built-in.o
arch/alpha/mm/built-in.o arch/alpha/math-emu/built-in.o kernel/built-in.o
mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o
crypto/built-in.o lib/lib.a arch/alpha/lib/lib.a drivers/built-in.o
sound/built-in.o net/built-in.o --end-group -o vmlinux
net/built-in.o: In function `ip_conntrack_helper_register':
net/built-in.o(.text+0x69040): undefined reference to `__this_module'
net/built-in.o(.text+0x69080): undefined reference to `__this_module'
net/built-in.o: In function `ip_conntrack_helper_unregister':
net/built-in.o(.text+0x6916c): undefined reference to `__this_module'
net/built-in.o: In function `ip_nat_helper_register':
net/built-in.o(.text+0x6d314): undefined reference to `__this_module'
net/built-in.o(.text+0x6d350): undefined reference to `__this_module'
net/built-in.o(.text+0x6d640): more undefined references to `__this_module'
follow
make: *** [vmlinux] Error 1
Also strange: I had to switch on the input-stuff (keyboard/events/etc.),
otherwhise I would get even more errors.
Folkert van Heusden
http://www.vanheusden.com/Linux/kernel_patches.php3