[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908161#10
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.
Indeed, and that file ([1]) wasn't touched in 5 years. I wonder if that then is not an error of the Debian build scripts.
[1]: https://github.com/torvalds/linux/blob/master/arch/alpha/include/asm/string.h
BTW the same error is already present for 5.19.6-1 - the build ran on 2022-09-18. Maybe the
error corresponds with a change in the Debian linux repo ([3]) before that date.
Looking at [4] the message "Can't read ABI reference." could indicate a missing file - filename
is defined in line 51 ([5]) and `/debian/abi/` does not exist in [3].
Looking at [4] the message "Can't read ABI reference." could indicate a missing file - filename
is defined in line 51 ([5]) and `/debian/abi/` does not exist in [3].
I don't think it's a bug in the Debian scripts. Otherwise it wouldn't just affect alpha.
[1] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=6.0.2-1&stamp=1665950645&raw=0
From the Debian build logs, this regressed between 5.18 and 5.19. I
have bisected this to:
commit f292d875d0dc700b3af0bef04c5abc1dc7b3b62c
Author: Masahiro Yamada <masahiroy@kernel.org>
Date: Fri May 13 20:39:21 2022 +0900
modpost: extract symbol versions from *.cmd files
Following this, although the 4 problem symbols have CRCs listed in
their respective cmd files (arch/alpha/.strcat.o.cmd etc.) those don't
end up in Modules.symvers.
I noticed that the object files for these 4 functions are handled
specially at the bottom of arch/alpha/lib/Makefile, and that interacts
badly with this change to modpost. The attached patch fixes this for
me, but please test it to check that the output actually works.
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.
I noticed that the object files for these 4 functions are handled
specially at the bottom of arch/alpha/lib/Makefile, and that interacts
badly with this change to modpost. The attached patch fixes this for
me, but please test it to check that the output actually works.
I'll test the patch and report back as soon as possible!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 355 |
Nodes: | 16 (3 / 13) |
Uptime: | 04:04:59 |
Calls: | 7,656 |
Calls today: | 8 |
Files: | 12,812 |
Messages: | 5,700,746 |