6.15's CONFIG_OBJTOOL_WERROR=y incompatiblity

Temporary forum to discuss issues and problems during a VirtualBox Beta or Release Candidate phase.
Post Reply
birdie
Posts: 490
Joined: 2. May 2010, 14:19
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, other Unixes
Location: Artem S. Tashkinov
Contact:

6.15's CONFIG_OBJTOOL_WERROR=y incompatiblity

Post by birdie »

Please fix:

Code: Select all

combined-os-specific.o: error: objtool: rtThreadCtxHooksLnxSchedOut+0x1a: call to {dynamic}() with UACCESS enabled
combined-os-specific.o: error: objtool: rtThreadCtxHooksLnxSchedIn+0x23: call to {dynamic}() with UACCESS enabled
combined-os-specific.o: error: objtool: VBoxHost_RTR0MemKernelCopyTo+0xa: redundant CLD
combined-os-specific.o: error: objtool: VBoxHost_RTR0MemKernelCopyFrom+0xa: redundant CLD
make[5]: *** [/usr/src/linux-6.15/scripts/Makefile.build:203: combined-os-specific.o] Error 1
make[5]: *** Deleting file 'combined-os-specific.o'
microcris
Posts: 1
Joined: 30. Jun 2025, 13:18

Re: 6.15's CONFIG_OBJTOOL_WERROR=y incompatiblity

Post by microcris »

Hello,

The same for Ubuntu kernels on kernel.ubuntu_dot_com/mainline/daily/

They are compiled with "CONFIG_OBJTOOL_WERROR=y"

6.16.0-061600rc4daily20250630-generic #202506300203 SMP PREEMPT_DYNAMIC Mon Jun 30 02:31:14 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

combined-os-specific.o: error: objtool: rtThreadCtxHooksLnxSchedOut+0x1f: call to {dynamic}() with UACCESS enabled
combined-os-specific.o: error: objtool: rtThreadCtxHooksLnxSchedIn+0x29: call to {dynamic}() with UACCESS enabled
combined-os-specific.o: error: objtool: VBoxHost_RTR0MemKernelCopyTo+0x13: redundant CLD
combined-os-specific.o: error: objtool: VBoxHost_RTR0MemKernelCopyFrom+0x13: redundant CLD
make[3]: *** [/usr/src/linux-headers-6.16.0-061600rc4daily20250630-generic/scripts/Makefile.build:287: combined-os-specific.o] Error 1
This is not specific to this beta, this also happens on previous versions.
Last edited by microcris on 30. Jun 2025, 13:46, edited 1 time in total.
birdie
Posts: 490
Joined: 2. May 2010, 14:19
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, other Unixes
Location: Artem S. Tashkinov
Contact:

Re: 6.15's CONFIG_OBJTOOL_WERROR=y incompatiblity

Post by birdie »

Not fixed in RC1.


Posted to github as well: https://github.com/VirtualBox/virtualbox/issues/116
Post Reply