Skip to contentSkip to conversation

Build failure with Linux 4.13+: ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!

DISCUSSION Paul Menzel 2 participants 3 messages Sep 9, 2017 – Sep 10, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

Dear Linux folks,

Building the latest master branch from Linus, commit 0e271fd59fe9 (Merge tag 'platform-drivers-x86-v4.14-1' of
git://git.infradead.org/linux-platform-drivers-x86) fails with the error below. The same development environment worked up to the release of Linux 4.13.

```
[…]
  XZKERN  arch/x86/boot/compressed/vmlinux.bin.xz
  CC      arch/x86/boot/compressed/misc.o
ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 1
Makefile:1216: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
make[2]: *** Waiting for unfinished jobs....
  MKPIGGY arch/x86/boot/compressed/piggy.S
  AS      arch/x86/boot/compressed/piggy.o
  DATAREL arch/x86/boot/compressed/vmlinux
  LD      arch/x86/boot/compressed/vmlinux
  ZOFFSET arch/x86/boot/zoffset.h
  OBJCOPY arch/x86/boot/vmlinux.bin
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Setup is 17340 bytes (padded to 17408 bytes).
System is 3817 kB
CRC dcf6a07b
Kernel: arch/x86/boot/bzImage is ready  (#124)
scripts/package/Makefile:91: recipe for target 'deb-pkg' failed
make[1]: *** [deb-pkg] Error 2
Makefile:1349: recipe for target 'deb-pkg' failed
make: *** [deb-pkg] Error 2

real    8m28.838s
user    209m25.359s
sys     17m19.136s
```

The same error is mentioned in the review of a patch in September 2016 [1], and, indeed, I am build *for* a 32-bit system, CONFIG_X86_32=y, *on* a 64-bit system.

Kind regards,

Paul

[1] https://patchwork.ozlabs.org/patch/674586/

#1 lore raw
Quoted 9 lines · Paul Menzel

Dear Linux folks,

Building the latest master branch from Linus, commit 0e271fd59fe9 (Merge tag 'platform-drivers-x86-v4.14-1' of
git://git.infradead.org/linux-platform-drivers-x86) fails with the error below. The same development environment worked up to the release of Linux 4.13.

Quoted 5 lines

```
[…]
XZKERN arch/x86/boot/compressed/vmlinux.bin.xz
CC arch/x86/boot/compressed/misc.o
ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!

https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git/commit/?id=90c4ae4e2c1da9f1eaf846136861af43d4c1ff34

This patch is already in David S. Miller's net tree, so it should hit upstream soon.

Let me now if you still experience problems after it, thanks.

#2 lore raw

Dear Pablo,

Quoted 14 lines · Pablo Neira Ayuso
Quoted 11 lines · Paul Menzel

Building the latest master branch from Linus, commit 0e271fd59fe9 (Merge tag 'platform-drivers-x86-v4.14-1' of
git://git.infradead.org/linux-platform-drivers-x86) fails with the error below. The same development environment worked up to the release of Linux 4.13.

```
[…]
XZKERN arch/x86/boot/compressed/vmlinux.bin.xz
CC arch/x86/boot/compressed/misc.o
ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!

Quoted 6 lines

https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git/commit/?id=90c4ae4e2c1da9f1eaf846136861af43d4c1ff34

This patch is already in David S. Miller's net tree, so it should hit upstream soon.

Let me now if you still experience problems after it, thanks.

Thank you for your quick reply. When I read it, Linus had already pulled this fix in, and the build error is gone now.

Kind regards,

Paul