link error while compiling localio.c
Subsystems (2)
Janpieter Sollie added an attachment on Kernel.org Bugzilla:
Created attachment 306999
kernel .config
tried both GCC and clang:
Clang output:
Quoted 6 lines
ld.lld: error: undefined symbol:
nfs_toQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by localio.c:37 (
fs/nfsd/localio.c:37)
vmlinux.o:(init_nfsd)
referenced by localio.c:37 (/usr/src/linux/fs/nfsd/localio.c:37)
vmlinux.o:(nfsd_localio_ops_init)
Quoted 7 lines
ld.lld: error: undefined symbol:
nfs_uuid_invalidate_clientsQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by nfsctl.c:2286 (
/usr/src/linux/fs/nfsd/nfsctl.c:2286)
vmlinux.o:(nfsd_net_pre_exit)ld.lld: error: undefined symbol:
nfs_uuid_is_localQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by localio.c:116 (
/usr/src/linux/fs/nfsd/localio.c:116)
vmlinux.o:(localio_proc_uuid_is_local)
GCC output:
ld: fs/nfsd/nfsctl.o: in function `nfsd_net_pre_exit':
nfsctl.c:(.text+0x122): undefined reference to `nfs_uuid_invalidate_clients'
ld: fs/nfsd/localio.o: in function `localio_proc_uuid_is_local':
/usr/src/linux/fs/nfsd/localio.c:116:(.text+0x56): undefined reference to `nfs_uuid_is_local'
ld: fs/nfsd/localio.o: in function `nfsd_localio_ops_init':
/usr/src/linux/fs/nfsd/localio.c:37:(.text+0x2c9): undefined reference to `nfs_to'
Command:
make -j64 or make LLVM=1 -j64
the config file for GCC will be attached, let me know if the clang version is desired as well
As you might guess, not trimming the unused symbols fixes the issue ...
File: config.txt (text/plain)
Size: 130.19 KiB
---
kernel .config
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Janpieter Sollie writes via Kernel.org Bugzilla:
sorry, turns out I was wrong (had to do a make clean before):
removing the "trim unused exported symbols" option did NOT fix the issue, it simply masked it, turns out it was hidden somewhere else
View: https://bugzilla.kernel.org/show_bug.cgi?id=219370#c1
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Janpieter Sollie writes via Kernel.org Bugzilla:
based on the bisected commit id, I turned off nfs localio option in kernel .config for 6.12-rc2, now it compiles. Guess that's not surprising
View: https://bugzilla.kernel.org/show_bug.cgi?id=219370#c2
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
The Linux kernel's regression tracker (Thorsten Leemhuis) writes via Kernel.org Bugzilla:
FWIW, another report with similar symptoms can be found here:
https://lore.kernel.org/all/[email protected]/T/#u
View: https://bugzilla.kernel.org/show_bug.cgi?id=219370#c3
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
The Linux kernel's regression tracker (Thorsten Leemhuis) writes via Kernel.org Bugzilla:
Was the problem resolved in between?
And can I CC you on a lkml mail? This would expose your email address to the public.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219370#c4
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Quoted 35 lines · Janpieter Sollie via Bugspray Bot
Janpieter Sollie added an attachment on Kernel.org Bugzilla:
Created attachment 306999
kernel .configtried both GCC and clang:
Clang output:Quoted 6 lines
ld.lld: error: undefined symbol:
nfs_toQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by localio.c:37 (
fs/nfsd/localio.c:37)
vmlinux.o:(init_nfsd)
referenced by localio.c:37 (/usr/src/linux/fs/nfsd/localio.c:37)
vmlinux.o:(nfsd_localio_ops_init)Quoted 7 lines
ld.lld: error: undefined symbol:
nfs_uuid_invalidate_clientsQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by nfsctl.c:2286 (
/usr/src/linux/fs/nfsd/nfsctl.c:2286)
vmlinux.o:(nfsd_net_pre_exit)ld.lld: error: undefined symbol:
nfs_uuid_is_localQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by localio.c:116 (
/usr/src/linux/fs/nfsd/localio.c:116)
vmlinux.o:(localio_proc_uuid_is_local)GCC output:
ld:fs/nfsd/nfsctl.o: in function `nfsd_net_pre_exit':
nfsctl.c:(.text+0x122): undefined reference to `nfs_uuid_invalidate_clients'
ld:fs/nfsd/localio.o: in function `localio_proc_uuid_is_local':
/usr/src/linux/fs/nfsd/localio.c:116:(.text+0x56): undefined reference to `nfs_uuid_is_local'
ld:fs/nfsd/localio.o: in function `nfsd_localio_ops_init':
/usr/src/linux/fs/nfsd/localio.c:37:(.text+0x2c9): undefined reference to `nfs_to'Command:
make -j64 or make LLVM=1 -j64the config file for GCC will be attached, let me know if the clang version is desired as well
As you might guess, not trimming the unused symbols fixes the issue ...
Quoted 10 lines
File: config.txt (text/plain)
Size: 130.19 KiB---
kernel .configYou can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
I will report as much via bugzilla.kernel.org but for the benefit of those cc'd:
This was fixed via v6.12-rc3 commit 009b15b57485 ("nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT")
In the provided kernel config:
CONFIG_NFS_FS=mCONFIG_NFSD_V4=yCONFIG_NFS_COMMON=yCONFIG_NFS_COMMON_LOCALIO_SUPPORT=mCONFIG_NFS_LOCALIO=y
My Kconfig fix will result in CONFIG_NFS_LOCALIO=m so that the symbols are available to the nfs.ko kernel module.
But if you have any further issues, certainly let me know.
Thanks,
Mike
Mike Snitzer writes via Kernel.org Bugzilla:
This was fixed via v6.12-rc3 commit 009b15b57485 ("nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT")
In the provided kernel config:
CONFIG_NFS_FS=mCONFIG_NFSD_V4=yCONFIG_NFS_COMMON=yCONFIG_NFS_COMMON_LOCALIO_SUPPORT=mCONFIG_NFS_LOCALIO=y
My Kconfig fix will result in CONFIG_NFS_LOCALIO=m so that the symbols are available to the nfs.ko kernel module.
But if you have any further issues, certainly let me know.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219370#c5
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Mike Snitzer writes via Kernel.org Bugzilla:
(In reply to Mike Snitzer from comment #5)
Quoted 5 lines
This was fixed via v6.12-rc3 commit
009b15b57485("nfs_common: fixKconfigforNFS_COMMON_LOCALIO_SUPPORT")In the provided kernel config:
Quoted 8 lines
CONFIG_NFS_FS=mCONFIG_NFSD_V4=yCONFIG_NFS_COMMON=yCONFIG_NFS_COMMON_LOCALIO_SUPPORT=mCONFIG_NFS_LOCALIO=yMy
Kconfigfix will result inCONFIG_NFS_LOCALIO=mso that the symbols are available to the nfs.ko kernel module.
Sorry, to be clear, the fix results in:
CONFIG_NFS_FS=mCONFIG_NFSD=yCONFIG_NFSD_V4=yCONFIG_NFS_COMMON=yCONFIG_NFS_COMMON_LOCALIO_SUPPORT=yCONFIG_NFS_LOCALIO=y
View: https://bugzilla.kernel.org/show_bug.cgi?id=219370#c6
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)