Bug 15476 - linux-yocto-dev build error: modpost: vmlinux: local symbol 'security_path_rmdir' was exported
Summary: linux-yocto-dev build error: modpost: vmlinux: local symbol 'security_path_rm...
Status: RESOLVED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 5.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.0.21
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-05-01 13:32 UTC by Ross Burton
Modified: 2026-10-27 22:16 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2024-05-01 13:32:54 UTC
Right now the reproducer is poky scarthgap, meta-arm master (or scarthgap if it exists when you read this), MACHINE=sbsa-ref, linux-yocto-dev:

|   MODPOST vmlinux.symvers
| ERROR: modpost: vmlinux: local symbol 'security_path_rmdir' was exported
| make[2]: *** [/work/ross/build/tmp/work-shared/sbsa-ref/kernel-source/scripts/Makefile.modpost:145: vmlinux.symvers] Error 1
| make[1]: *** [/work/ross/build/tmp/work-shared/sbsa-ref/kernel-source/Makefile:1871: modpost] Error 2
| make: *** [/work/ross/build/tmp/work-shared/sbsa-ref/kernel-source/Makefile:240: __sub-make] Error 2
| ERROR: oe_runmake failed
Comment 1 Ross Burton 2024-05-01 15:24:42 UTC
Interestingly sbsa-ref is a qemu-based machine using the defconfig kernel, but if I add this then it doesn't fail:

KBUILD_DEFCONFIG:qemuarm46 = "defconfig"
KCONFIG_MODE:qemuarm46 = "--alldefconfig"


Why that is remains a mystery.
Comment 2 Randy MacLeod 2024-10-17 19:04:14 UTC
Bulk move of medium importance bugs from 5.1 to 5.2 on behalf of Bruce.
Comment 3 Ross Burton 2026-03-05 16:17:18 UTC
I can still replicate this with scarthgap and linux-yocto-dev.
Comment 4 Richard Purdie 2026-07-23 15:12:33 UTC
What is qemuarm46?
Comment 5 Randy MacLeod 2026-07-23 15:13:09 UTC
Ross to retest with a 64 bit system, rather than the mystery 46 bit system.
Comment 6 Ross Burton 2026-07-23 16:06:27 UTC
Our CI still replicates this with sbsa-ref/alldefconfig/linux-yocto-dev on scarthgap, but not wrynose or master.

Testing qemuarm64 now...
Comment 7 Bruce Ashfield 2026-10-27 22:16:36 UTC
This only reproduces with linux-yocto-dev on scarthgap; Ross confirmed it does not reproduce on wrynose or master. linux-yocto-dev tracks master and isn't a supported combination on the scarthgap release branch, so I'm closing this out. If it shows up with linux-yocto-dev on master, please reopen.