| 1 | Building the main Guest Additions 6.1.16 module for kernel 4.18.0-257.el8.x86_64.
|
|---|
| 2 | Building the shared folder support module.
|
|---|
| 3 | Error building the module. Build output follows.
|
|---|
| 4 | make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/4.18.0-257.el8.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
|
|---|
| 5 | make[1]: warning: -jN forced in submake: disabling jobserver mode.
|
|---|
| 6 | test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
|
|---|
| 7 | echo >&2; \
|
|---|
| 8 | echo >&2 " ERROR: Kernel configuration is invalid."; \
|
|---|
| 9 | echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
|
|---|
| 10 | echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
|
|---|
| 11 | echo >&2 ; \
|
|---|
| 12 | /bin/false)
|
|---|
| 13 | mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
|
|---|
| 14 | make -f ./scripts/Makefile.build obj=/tmp/vbox.0
|
|---|
| 15 | (cat /dev/null; echo kernel//tmp/vbox.0/vboxsf.ko;) > /tmp/vbox.0/modules.order
|
|---|
| 16 | gcc -Wp,-MD,/tmp/vbox.0/.vfsmod.o.d -nostdinc -isystem /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -DCONFIG_TPAUSE=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0//include/VBox/VBoxGuestMangling.h -fshort-wchar -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"vfsmod"' -DKBUILD_MODNAME='"vboxsf"' -c -o /tmp/vbox.0/.tmp_vfsmod.o /tmp/vbox.0/vfsmod.c
|
|---|
| 17 | gcc -Wp,-MD,/tmp/vbox.0/.dirops.o.d -nostdinc -isystem /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -DCONFIG_TPAUSE=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0//include/VBox/VBoxGuestMangling.h -fshort-wchar -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"dirops"' -DKBUILD_MODNAME='"vboxsf"' -c -o /tmp/vbox.0/.tmp_dirops.o /tmp/vbox.0/dirops.c
|
|---|
| 18 | /tmp/vbox.0/vfsmod.c: In function ‘vbsf_read_super_aux’:
|
|---|
| 19 | /tmp/vbox.0/vfsmod.c:568:17: error: ‘MS_REMOUNT’ undeclared (first use in this function)
|
|---|
| 20 | 568 | if (flags & MS_REMOUNT) {
|
|---|
| 21 | | ^~~~~~~~~~
|
|---|
| 22 | /tmp/vbox.0/vfsmod.c:568:17: note: each undeclared identifier is reported only once for each function it appears in
|
|---|
| 23 | In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:92,
|
|---|
| 24 | from /tmp/vbox.0/vfsmod.h:43,
|
|---|
| 25 | from /tmp/vbox.0/vfsmod.c:44:
|
|---|
| 26 | /tmp/vbox.0/vfsmod.c: At top level:
|
|---|
| 27 | ./include/linux/module.h:130:6: warning: ‘init_module’ specifies less restrictive attribute than its target ‘init’: ‘cold’ [-Wmissing-attributes]
|
|---|
| 28 | 130 | int init_module(void) __attribute__((alias(#initfn)));
|
|---|
| 29 | | ^~~~~~~~~~~
|
|---|
| 30 | /tmp/vbox.0/vfsmod.c:1066:1: note: in expansion of macro ‘module_init’
|
|---|
| 31 | 1066 | module_init(init);
|
|---|
| 32 | | ^~~~~~~~~~~
|
|---|
| 33 | /tmp/vbox.0/vfsmod.c:944:19: note: ‘init_module’ target declared here
|
|---|
| 34 | 944 | static int __init init(void)
|
|---|
| 35 | | ^~~~
|
|---|
| 36 | In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:92,
|
|---|
| 37 | from /tmp/vbox.0/vfsmod.h:43,
|
|---|
| 38 | from /tmp/vbox.0/vfsmod.c:44:
|
|---|
| 39 | ./include/linux/module.h:136:7: warning: ‘cleanup_module’ specifies less restrictive attribute than its target ‘fini’: ‘cold’ [-Wmissing-attributes]
|
|---|
| 40 | 136 | void cleanup_module(void) __attribute__((alias(#exitfn)));
|
|---|
| 41 | | ^~~~~~~~~~~~~~
|
|---|
| 42 | /tmp/vbox.0/vfsmod.c:1067:1: note: in expansion of macro ‘module_exit’
|
|---|
| 43 | 1067 | module_exit(fini);
|
|---|
| 44 | | ^~~~~~~~~~~
|
|---|
| 45 | /tmp/vbox.0/vfsmod.c:1043:20: note: ‘cleanup_module’ target declared here
|
|---|
| 46 | 1043 | static void __exit fini(void)
|
|---|
| 47 | | ^~~~
|
|---|
| 48 | make[2]: *** [scripts/Makefile.build:315: /tmp/vbox.0/vfsmod.o] Error 1
|
|---|
| 49 | make[2]: *** Waiting for unfinished jobs....
|
|---|
| 50 | ./tools/objtool/objtool orc generate --module --no-fp --retpoline "/tmp/vbox.0/.tmp_dirops.o";
|
|---|
| 51 | /tmp/vbox.0/.tmp_dirops.o: warning: objtool: vbsf_dir_emit_nls()+0x61: sibling call from callable instruction with modified stack frame
|
|---|
| 52 | make[1]: *** [Makefile:1545: _module_/tmp/vbox.0] Error 2
|
|---|
| 53 | make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxsf] Error 2
|
|---|