Skip to content

Commit bda6c82

Browse files
Ma27alyssais
authored andcommitted
linux_testing: disable NFS_LOCALIO on aarch64-linux
This breaks the build like this: /nix/store/f3k0rdhcd2cx57phx755c2xixgifw5m5-binutils-2.42/bin/ld: Unexpected GOT/PLT entries detected! /nix/store/f3k0rdhcd2cx57phx755c2xixgifw5m5-binutils-2.42/bin/ld: Unexpected run-time procedure linkages detected! /nix/store/f3k0rdhcd2cx57phx755c2xixgifw5m5-binutils-2.42/bin/ld: fs/nfs/localio.o: in function `nfs_local_iocb_alloc': /build/source/build/../fs/nfs/localio.c:290:(.text+0x324): undefined reference to `nfs_to' [...] Reported as https://lore.kernel.org/all/[email protected]/
1 parent 3bf9c88 commit bda6c82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/os-specific/linux/kernel/common-config.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,10 @@ let
639639
NFS_V4_1 = yes; # NFSv4.1 client support
640640
NFS_V4_2 = yes;
641641
NFS_V4_SECURITY_LABEL = yes;
642-
NFS_LOCALIO = whenAtLeast "6.12" yes;
642+
643+
# Fails with
644+
# `fs/nfs/localio.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `nfs_to' which may bind externally can not be used when making a shared object; recompile with -fPIC`
645+
NFS_LOCALIO = lib.mkIf (!stdenv.hostPlatform.isAarch64) (whenAtLeast "6.12" yes);
643646

644647
CIFS_XATTR = yes;
645648
CIFS_POSIX = option yes;

0 commit comments

Comments
 (0)