I'm compiling on and for i386 and get the following message:
gcc -E -C -P -I/mnt/store/src/2.4.25/include -imacros /mnt/store/src/2.4.25/include/linux/config.h -imacros /mnt/store/src/2.4.25/include/asm-i386/segment.h -imacros /mnt/store/src/2.4.25/include/asm-i386/page_offset.h -Ui386 arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
ld -m elf_i386 -T /mnt/store/src/2.4.25/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/net/wan/wan.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/media/media.o drivers/md/mddev.o crypto/crypto.o \
net/network.o \
grsecurity/grsec.o \
/mnt/store/src/2.4.25/arch/i386/lib/lib.a /mnt/store/src/2.4.25/lib/lib.a /mnt/store/src/2.4.25/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
grsecurity/grsec.o(.text+0x16706): In function `gr_acl_handle_psacct':
: undefined reference to `__udivdi3'
make[1]: *** [vmlinux] Error 1
make[1]: Leaving directory `/mnt/store/src/2.4.25'
make: *** [stamp-build] Error 2
This is 2.4.25-pre4 + grsec-2.0-rc4 + xfs, UML, iptables patch-o-matic and a couple of other small patches.
I tried with gcc-3.3 and 2.95..
I grepped the kernel source for 'udivdi3', and it's only found in some architectures; i386 is not among them. gr_acl_handle_psacct doesn't explicitly mention it, so it must probably come from a macro or something.
Any ideas welcome....