--=-R/E/sykBfwqMv/zoijbp
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Wed, 2023-01-04 at 22:15 +0100, John Paul Adrian Glaubitz wrote:
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.
[...]
From the Debian build logs, this regressed between 5.18 and 5.19. I
have bisected this to:
commit f292d875d0dc700b3af0bef04c5abc1dc7b3b62c
Author: Masahiro Yamada <
[email protected]>
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.
Ben.
--
Ben Hutchings
Never attribute to conspiracy what can adequately be explained
by stupidity.
--=-R/E/sykBfwqMv/zoijbp
Content-Disposition: attachment;
filename*0 01-alpha-Fix-missing-symbol-versions-for-str-n-cat-cpy.patc;
filename*1=h
Content-Transfer-Encoding: base64
Content-Type: text/x-patch;
name="0001-alpha-Fix-missing-symbol-versions-for-str-n-cat-cpy.patch";
charset="UTF-8"
RnJvbSAzYzJhMjZiMzIxZDViYTMwNTM5ODZhNTM5NDA0MzQwMTQwNTlhY2E3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW4gSHV0Y2hpbmdzIDxiZW5AZGVjYWRlbnQub3JnLnVrPgpE YXRlOiBUaHUsIDUgSmFuIDIwMjMgMTc6MDQ6NDAgKzAxMDAKU3ViamVjdDogW1BBVENIXSBhbHBo YTogRml4IG1pc3Npbmcgc3ltYm9sIHZlcnNpb25zIGZvciBzdHJ7LG59e2NhdCxjcHl9CgpOb3cg dGhhdCBtb2Rwb3N0IGV4dHJhY3RzIHN5bWJvbCB2ZXJzaW9ucyBmcm9tICouY21kIGZpbGVzLCBp dCBjYW4ndApmaW5kIHRoZSB2ZXJzaW9ucyBmb3IgdGhlc2UgNCBzeW1ib2xzLiAgVGhpcyBpcyBk dWUgdG8gdGhlIHdheSB3ZSBsaW5rCnRoZWlyIG9iamVjdHMgdG9nZXRoZXIgYWhlYWQgb2YgdGhl IGZ1bGwgdm1saW51eCBsaW5rLiAgZ2Vua3N5bXMgcHV0cwp0aGVpciBzeW1ib2wgQ1JDcyB