2022-05-28 19:52:22

by Paul Menzel

[permalink] [raw]
Subject: ./include/crypto/poly1305.h:56:46: error: 'CONFIG_CRYPTO_LIB_POLY1305_RSIZE' undeclared here

Dear Linux folks,


Fetching the commits from Linus’ tree, and doing `make olddefconfig`,
the build failed:

```
$ git log --no-decorate --oneline -1 origin/master
9d004b2f4fea Merge tag 'cxl-for-5.19' of
git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl
$ rm *deb ; make olddefconfig; make bindeb-pkg -j32 && mv ../*deb .
[…]
CC [M] lib/crypto/poly1305-donna64.o
CC [M] drivers/media/usb/em28xx/em28xx-vbi.o
CC arch/x86/kernel/uprobes.o
CC kernel/time/itimer.o
CC drivers/usb/core/phy.o
CC [M] drivers/scsi/sg.o
CC lib/iomap_copy.o
CC [M] fs/nfs_common/nfsacl.o
CC [M] fs/nfs_common/grace.o
CC kernel/time/clockevents.o
In file included from ./include/crypto/internal/poly1305.h:11,
from lib/crypto/poly1305-donna64.c:11:
./include/crypto/poly1305.h:56:46: error:
'CONFIG_CRYPTO_LIB_POLY1305_RSIZE' undeclared here (not in a function);
did you mean 'CONFIG_CRYPTO_POLY1305_MODULE'?
56 | struct poly1305_key
opaque_r[CONFIG_CRYPTO_LIB_POLY1305_RSIZE];
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
CONFIG_CRYPTO_POLY1305_MODULE
make[5]: *** [scripts/Makefile.build:271: lib/crypto/poly1305-donna64.o]
Error 1
$ grep POLY .config
CONFIG_CRYPTO_CHACHA20POLY1305=m
# CONFIG_CRYPTO_NHPOLY1305_SSE2 is not set
# CONFIG_CRYPTO_NHPOLY1305_AVX2 is not set
CONFIG_CRYPTO_POLY1305=m
CONFIG_CRYPTO_POLY1305_X86_64=m
CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
CONFIG_CRYPTO_LIB_POLY1305_GENERIC=m
# CONFIG_CRYPTO_LIB_POLY1305 is not set
# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not set
```

Please find the full problematic config file attached.

Selecting `CONFIG_CRYPTO_LIB_POLY1305=m` works around the issue.

$ grep POLY .config
CONFIG_CRYPTO_CHACHA20POLY1305=m
# CONFIG_CRYPTO_NHPOLY1305_SSE2 is not set
# CONFIG_CRYPTO_NHPOLY1305_AVX2 is not set
CONFIG_CRYPTO_POLY1305=m
CONFIG_CRYPTO_POLY1305_X86_64=m
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
CONFIG_CRYPTO_LIB_POLY1305_GENERIC=m
CONFIG_CRYPTO_LIB_POLY1305=m
# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not set

I didn’t bisect, but commit 8bdc2a190105 (crypto: poly1305 - cleanup
stray CRYPTO_LIB_POLY1305_RSIZE) jumps out for example.


Kind regards,

Paul


Attachments:
20220528-linux-crypto-build-bug.config (145.75 kB)