Build failure with Linux 4.13+: ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!
Dear Linux folks,
Building the latest master branch from Linus, commit 0e271fd59fe9 (Merge tag 'platform-drivers-x86-v4.14-1' ofgit://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
Pablo Neira Ayuso
maintainerQuoted 9 lines · Paul Menzel
Dear Linux folks,
Building the latest master branch from Linus, commit
0e271fd59fe9(Merge tag 'platform-drivers-x86-v4.14-1' ofgit://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
```
[…]
XZKERNarch/x86/boot/compressed/vmlinux.bin.xz
CCarch/x86/boot/compressed/misc.o
ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!
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.
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' ofgit://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.```
[…]
XZKERNarch/x86/boot/compressed/vmlinux.bin.xz
CCarch/x86/boot/compressed/misc.o
ERROR: "__udivdi3" [net/netfilter/xt_hashlimit.ko] undefined!
Quoted 6 lines
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