Armv7l EBPF issues for kernels > 5.10?

I’ve had success compiling kernel 5.10 on armv7l (nixpkgs-unstable). Unfortunately, this is not the case with 5.15/5.16 and I’m stuck with the following errors:

  BTF [M] arch/arm/crypto/chacha-neon.ko
Failed to parse base BTF 'vmlinux': -22
Failed to parse base BTF 'vmlinux': -22
Failed to parse base BTF 'vmlinux': -22
Failed to parse base BTF 'vmlinux': -22
Failed to parse base BTF 'vmlinux': -22
Failed to parse base BTF 'vmlinux': -22
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/aes-arm.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/aes-arm.ko'
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/chacha-neon.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/chacha-neon.ko'
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/aes-arm-bs.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/aes-arm-bs.ko'
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/aes-arm-ce.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/aes-arm-ce.ko'
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/blake2s-arm.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/blake2s-arm.ko'
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/blake2b-neon.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/blake2b-neon.ko'
  BTF [M] arch/arm/crypto/crc32-arm-ce.ko
Failed to parse base BTF 'vmlinux': -22
make[2]: *** [../scripts/Makefile.modfinal:61: arch/arm/crypto/crc32-arm-ce.ko] Error 1
make[2]: *** Deleting file 'arch/arm/crypto/crc32-arm-ce.ko'
make[1]: *** [../scripts/Makefile.modpost:140: __modpost] Error 2
make: *** [../Makefile:1761: modules] Error 2

Is anyone running newer kernels on armv7l?

Not sure if this makes more sense on github since armv7l is not officially supported.

1 Like

I just build v5.16.11 from unstable without problems yesterday.

Are you building natively or cross-compiled?

Either way, open an issue.

@Atemu am compiling natively. Will retest as the commit I used is more than a week old.
@bartsch are you able to share your nixpkgs git hash so I could retry? Will file a bug if the issue persists.
Thanks guys!

Though, I’m cross-compiling …

nix build --file . pkgsCross.armv7l-hf-multiplatform.linux_latest

Worked with (git log --oneline --decorate | head -n1):

  • 0fd9ee1aa36 (HEAD, origin/nixos-21.05, bartsch/nixos-21.05) Merge pull request #154727
  • ad267cc9cf3 (HEAD, origin/nixpkgs-unstable, nixpkgs-unstable) python3Packages.isbnlib: …
  • 7c4314fefc3 (HEAD, origin/master, origin/HEAD, master) Merge pull request #162767

i686-linux has the same issue. Or it did recently. (completely native build)

Fix is in nixos-unstable.

1 Like
Hosted by Flying Circus.