Unversioned symbols when building kernel package

John Paul Adrian Glaubitz <[email protected]> Wed, 4 Jan 2023 22:15:31 +0100
Newsgroups gmane.linux.debian.ports.alpha
Message-ID <[email protected]>
Hello!

I just tried to build the Debian kernel package for alpha which fails with:

debian/bin/buildcheck.py debian/build/build_alpha_none_alpha-generic alpha none alpha-generic
ABI is not completely versioned!  Refusing to continue.

Unversioned symbols:
strcat                                           module: vmlinux, version: 0x00000000, export: EXPORT_SYMBOL
strcpy                                           module: vmlinux, version: 0x00000000, export: EXPORT_SYMBOL
strncat                                          module: vmlinux, version: 0x00000000, export: EXPORT_SYMBOL
strncpy                                          module: vmlinux, version: 0x00000000, export: EXPORT_SYMBOL
Can't read ABI reference.  ABI not checked!
make[2]: *** [debian/rules.real:218: debian/stamps/build_alpha_none_alpha-generic] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules.gen:426: build-arch_alpha_none_alpha-generic_real] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:39: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2

According to this comment by Ben [1], this is an issue that is trivially fixed by adding the
appropriate header to arch/$ARCH/include/asm-prototypes.h. However, looking at the header
file, "#include <asm/string.h>" is already present so I'm not sure what else we're missing.

Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908161#10