Error kernel configuration is invalid

What I did: install a minimal debian/testing (no GUI, no standard utilities) install build-essential, dkms, linux-headers-$(uname -r) click Devices -> Insert guest additions CD ran m-a prepare m...

What I did:

  1. install a minimal debian/testing (no GUI, no standard utilities)
  2. install build-essential, dkms, linux-headers-$(uname -r)
  3. click Devices -> Insert guest additions CD
  4. ran m-a prepare
  5. mount /dev/sr0 somewhere, cd there and ./VBoxLinuxAdditions.run

What I got:

...
Building the modules for kernel 5.4.0-4-amd64.
Look at /var/log/vboxadd-setup.log to find out what went wrong.
modprobe vboxsf failed
...

What is in the log:

...
test -e include/generated/autoconf.h -a -e include/config

/auto.conf || (                
    echo >&2;                                                       
    echo >&2 "  ERROR: Kernel configuration is invalid.";           
    echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";
    echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      
    echo >&2 ;                                                      
    /bin/false)
    ...

What I investigated:

    $modprobe vboxsf
    modprobe: FATAL: Module vboxsf not found in directory /lib/modules/5.4.0-4-amd
    $lsmod | grep vboxsf
    <no output>
    $find /usr/src/linux-headers-5.4.0-4-amd64/ -name autoconf.h
    /usr/src/linux-headers-5.4.0-4-amd64/include/generated/autoconf.h

The host OS is Ubuntu 18.

EDIT: after installing openbox to get an X server, this is how the log looks like:

# less /var/log/vboxadd-setup.log
Building the main Guest Additions module for kernel 5.4.0-4-amd64.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/5.4.0-4-amd64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
make -C /usr/src/linux-headers-5.4.0-4-amd64 -f /usr/src/linux-headers-5.4.0-4-common/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        
echo >&2;                           
echo >&2 "  ERROR: Kernel configuration is invalid.";       
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  
echo >&2 ;                          
/bin/false)
make -f /usr/src/linux-headers-5.4.0-4-common/scripts/Makefile.build obj=/tmp/vbox.0 single-build= need-builtin=1 need-modorder=1
   gcc-9 -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.4.0-4-common/include -I./include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.4.0-4-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.4.0-4-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -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-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-5.4.0-4-common/= -fcf-protection=none -Wno-packed-not-aligned -Wno-declaration-after-statement -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/usr/src/linux-headers-5.4.0-4-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"VBoxGuest_linux"' -DKBUILD_MODNAME='"vboxguest"' -c -o /tmp/vbox.0/VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/VBoxGuest-linux.o
  if objdump -h /tmp/vbox.0/VBoxGuest-linux.o | grep -q __ksymtab; then  gcc-9 -E -D__GENKSYMS__ -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.4.0-4-common/include -I./include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.4.0-4-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.4.0-4-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -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-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-5.4.0-4-common/= -fcf-protection=none -Wno-packed-not-aligned -Wno-declaration-after-statement -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/usr/src/linux-headers-5.4.0-4-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"VBoxGuest_linux"' -DKBUILD_MODNAME='"vboxguest"' /tmp/vbox.0/VBoxGuest-linux.c | scripts/genksyms/genksyms    -r /dev/null > /tmp/vbox.0/.tmp_VBoxGuest-linux.ver; ld -m elf_x86_64  -z max-page-size=0x200000 -r -o /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.o -T /tmp/vbox.0/.tmp_VBoxGuest-linux.ver; mv -f /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.o; rm -f /tmp/vbox.0/.tmp_VBoxGuest-linux.ver; fi
   gcc-9 -Wp,-MD,/tmp/vbox.0/.VBoxGuest.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.4.0-4-common/include -I./include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.4.0-4-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.4.0-4-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -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-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-5.4.0-4-common/= -fcf-protection=none -Wno-packed-not-aligned -Wno-declaration-after-statement -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/usr/src/linux-headers-5.4.0-4-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"VBoxGuest"' -DKBUILD_MODNAME='"vboxguest"' -c -o /tmp/vbox.0/VBoxGuest.o /tmp/vbox.0/VBoxGuest.c
/tmp/vbox.0/VBoxGuest.c: In function ‘vgdrvCheckIfVmmReqIsAllowed’:
/tmp/vbox.0/VBoxGuest.c:2060:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2060 |             if (pSession->fUserSession)
      |                ^
/tmp/vbox.0/VBoxGuest.c:2062:9: note: here
 2062 |         case kLevel_AllUsers:
      |         ^~~~
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/VBoxGuest.o
  if objdump -h /tmp/vbox.0/VBoxGuest.o | grep -q __ksymtab; then  gcc-9 <compile flags deleted to fit in 30 000 characters>fi
   gcc-9 -Wp,-MD,/tmp/vbox.0/.VBoxGuestR0LibGenericRequest.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.4.0-4-common/include -I./include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.4.0-4-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.4.0-4-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -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-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-5.4.0-4-common/= -fcf-protection=none -Wno-packed-not-aligned -Wno-declaration-after-statement -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/usr/src/linux-headers-5.4.0-4-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"VBoxGuestR0LibGenericRequest"' -DKBUILD_MODNAME='"vboxguest"' -c -o /tmp/vbox.0/VBoxGuestR0LibGenericRequest.o /tmp/vbox.0/VBoxGuestR0LibGenericRequest.c
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/VBoxGuestR0LibGenericRequest.o
  if objdump -h /tmp/vbox.0/VBoxGuestR0LibGenericRequest.o | grep -q __ksymtab; then  gcc-9 -E -D__GENKSYMS__ -Wp,-MD,/tmp/vbox.0/.VBoxGuestR0LibGenericRequest.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.4.0-4-common/include -I./include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.4.0-4-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.4.0-4-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-<some flags removed to fit into 30 000 char> -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"VBoxGuestR0LibGenericRequest"' -DKBUILD_MODNAME='"vboxguest"' /tmp/vbox.0/VBoxGuestR0LibGenericRequest.c | scripts/genksyms/genksyms    -r /dev/null > /tmp/vbox.0/.tmp_VBoxGuestR0LibGenericRequest.ver; ld -m elf_x86_64  -z max-page-size=0x200000 -r -o /tmp/vbox.0/.tmp_VBoxGuestR0LibGenericRequest.o /tmp/vbox.0/VBoxGuestR0LibGenericRequest.o -T /tmp/vbox.0/.tmp_VBoxGuestR0LibGenericRequest.ver; mv -f /tmp/vbox.0/.tmp_VBoxGuestR0LibGenericRequest.o /tmp/vbox.0/VBoxGuestR0LibGenericRequest.o; rm -f /tmp/vbox.0/.tmp_VBoxGuestR0LibGenericRequest.ver; fi
   gcc-9 -Wp,-MD,/tmp/vbox.0/.VBoxGuestR0LibHGCMInternal.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.4.0-4-common/include -I./include -I/usr/src/linux-headers-5.4.0-4-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.4.0-4-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.4.0-4-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -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-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-5.4.0-4-common/= -fcf-protection=none -Wno-packed-not-aligned -Wno-declaration-after-statement -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/usr/src/linux-headers-5.4.0-4-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"VBoxGuestR0LibHGCMInternal"' -DKBUILD_MODNAME='"vboxguest"' -c -o /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.o /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c
In file included from /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h:59,
                 from <command-line>:
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c: In function ‘vbglR0HGCMInternalPreprocessCall’:
/usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_attributes.h:200:41: error: expected ‘)’ before ‘__attribute__’
  200 | # define fallthrough                    __attribute__((__fallthrough__))
      |                                         ^~~~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1116:48: note: in expansion of macro ‘fallthrough’
 1116 | # define RT_FALL_THROUGH()      __attribute__((fallthrough))
      |                                                ^~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1123 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:271:17: note: in expansion of macro ‘RT_FALL_THRU’
  271 |                 RT_FALL_THRU();
      |                 ^~~~~~~~~~~~
In file included from /tmp/vbox.0/include/iprt/types.h:29,
                 from /tmp/vbox.0/VBoxGuestR0LibInternal.h:33,
                 from /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:33:
/tmp/vbox.0/include/iprt/cdefs.h:1116:60: error: expected identifier or ‘(’ before ‘)’ token
 1116 | # define RT_FALL_THROUGH()      __attribute__((fallthrough))
      |                                                            ^
/tmp/vbox.0/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1123 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:271:17: note: in expansion of macro ‘RT_FALL_THRU’
  271 |                 RT_FALL_THRU();
      |                 ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h:59,
                 from <command-line>:
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c: In function ‘vbglR0HGCMInternalInitCall’:
/usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_attributes.h:200:41: error: expected ‘)’ before ‘__attribute__’
  200 | # define fallthrough                    __attribute__((__fallthrough__))
      |                                         ^~~~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1116:48: note: in expansion of macro ‘fallthrough’
 1116 | # define RT_FALL_THROUGH()      __attribute__((fallthrough))
      |                                                ^~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1123 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:545:17: note: in expansion of macro ‘RT_FALL_THRU’
  545 |                 RT_FALL_THRU();
      |                 ^~~~~~~~~~~~
In file included from /tmp/vbox.0/include/iprt/types.h:29,
                 from /tmp/vbox.0/VBoxGuestR0LibInternal.h:33,
                 from /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:33:
/tmp/vbox.0/include/iprt/cdefs.h:1116:60: error: expected identifier or ‘(’ before ‘)’ token
 1116 | # define RT_FALL_THROUGH()      __attribute__((fallthrough))
      |                                                            ^
/tmp/vbox.0/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1123 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:545:17: note: in expansion of macro ‘RT_FALL_THRU’
  545 |                 RT_FALL_THRU();
      |                 ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_types.h:59,
                 from <command-line>:
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c: In function ‘vbglR0HGCMInternalCopyBackResult’:
/usr/src/linux-headers-5.4.0-4-common/include/linux/compiler_attributes.h:200:41: error: expected ‘)’ before ‘__attribute__’
  200 | # define fallthrough                    __attribute__((__fallthrough__))
      |                                         ^~~~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1116:48: note: in expansion of macro ‘fallthrough’
 1116 | # define RT_FALL_THROUGH()      __attribute__((fallthrough))
      |                                                ^~~~~~~~~~~
/tmp/vbox.0/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1123 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:812:17: note: in expansion of macro ‘RT_FALL_THRU’
  812 |                 RT_FALL_THRU();
      |                 ^~~~~~~~~~~~
In file included from /tmp/vbox.0/include/iprt/types.h:29,
                 from /tmp/vbox.0/VBoxGuestR0LibInternal.h:33,
                 from /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:33:
/tmp/vbox.0/include/iprt/cdefs.h:1116:60: error: expected identifier or ‘(’ before ‘)’ token
 1116 | # define RT_FALL_THROUGH()      __attribute__((fallthrough))
      |                                                            ^
/tmp/vbox.0/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’
 1123 | #define RT_FALL_THRU()          RT_FALL_THROUGH()
      |                                 ^~~~~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:812:17: note: in expansion of macro ‘RT_FALL_THRU’
  812 |                 RT_FALL_THRU();
      |                 ^~~~~~~~~~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c: In function ‘vbglR0HGCMInternalPreprocessCall’:
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:259:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  259 |                 if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST(/*a_fLocked =*/ true))
      |                    ^
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:273:13: note: here
  273 |             case VMMDevHGCMParmType_LinAddr_In:
      |             ^~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c: In function ‘vbglR0HGCMInternalInitCall’:
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:539:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  539 |                 if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST(/*a_fLocked =*/ true))
      |                    ^
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:547:13: note: here
  547 |             case VMMDevHGCMParmType_LinAddr_In:
      |             ^~~~
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c: In function ‘vbglR0HGCMInternalCopyBackResult’:
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:807:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  807 |                 if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST(/*a_fLocked =*/ true))
      |                    ^
/tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:814:13: note: here
  814 |             case VMMDevHGCMParmType_LinAddr_Out:
      |             ^~~~
make[3]: *** [/usr/src/linux-headers-5.4.0-4-common/scripts/Makefile.build:271: /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.4.0-4-common/Makefile:1665: /tmp/vbox.0] Error 2
make[1]: *** [/usr/src/linux-headers-5.4.0-4-common/Makefile:179: sub-make] Error 2
make: *** [/tmp/vbox.0/Makefile.include.footer:100: vboxguest] Error 2

My compiler is:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 9.2.1-30' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
gcc version 9.2.1 20200224 (Debian 9.2.1-30)

Содержание

  1. Проблема с сборкой модуля.
  2. virtualbox guest additions: ERROR: Kernel configuration is invalid
  3. 3 Answers 3
  4. Kernel configuration is invalid error while trying to install paragon ufsd professional drivers for HFS+
  5. short question:
  6. Disclaimer:
  7. Context for my question:
  8. ROSAForum
  9. [РЕШЕНО] Установка VirtualBOX
  10. [РЕШЕНО] Установка VirtualBOX
  11. Не собирается альса.(Ошибка в заголовках ядра) [как бы РЕШЕНО]

Проблема с сборкой модуля.

Добрый день. Пытаюсь скомпилить модуль для ядра 2,6,30 для дистра Mandriva. При попытке компиляции make -C /usr/src/kernel-linus-`uname -r` SUBDIRS=$PWD
Выдаётся данная ошибка:

Перемещено JB из Development

У тебя ядро сконфигурено или ты просто сорцы распаковал?

make -C /usr/src/kernel-linux-`uname -r` SUBDIRS=$PWD должно помочь

> Run ‘make oldconfig && make prepare’ on kernel src to fix it.

тебе же английским по-черному пишут, что сделать надо

Pavval — просто сорцы рапаковал )
ananas — зашёл в папку с исходниками, там сделал make oldconfig && make prepare и теперь компиляция вроде как запускается нормально.
Если можно, поясните мне смысл этой команды и что от неё изменяется, что происходит вообще?

Ты установил Linux =)

Кстати, есть вероятность, очень сильно отличающаяся от 0, что модуль твой скомпилируется, но не запустится. Ты где сорцы ядра взял и что у тебя за дистрибутив?

Дистр Mandriva 2009 , исходиники через их установщик пакетов скачал.
Сейчас повнимательней вывод компиляции посмотрел, вот какая ошибка.

Что можно с этим сделать и как?

Проблема решена) мне просто тупить не надо было. Сорцы для компиляции были в папке kernel-linus-devel-2.6.30-2mdv а не kernel-linus-2.6.30-2mdv

Источник

virtualbox guest additions: ERROR: Kernel configuration is invalid

  1. install a minimal debian/testing (no GUI, no standard utilities)
  2. install build-essential, dkms, linux-headers-$(uname -r)
  3. click Devices -> Insert guest additions CD
  4. ran m-a prepare
  5. mount /dev/sr0 somewhere, cd there and ./VBoxLinuxAdditions.run

What is in the log:

What I investigated:

The host OS is Ubuntu 18.

EDIT: after installing openbox to get an X server, this is how the log looks like:

3 Answers 3

The problem seems to be with the guest additions iso that come with the virtualbox installation. The best option is to download the guest additions from the repository.

  1. Run sudo apt install virtualbox-guest-additions-iso to get the latest repositories
  2. The guest iso will be downloaded inside /usr/share/virtualbox/VBoxGuestAdditions.iso
  3. Create a mount point and mount iso: sudo mkdir -p /mnt/cdrom && sudo mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt/cdrom
  4. Navigate to iso and install: cd /mnt/cdrom && sudo sh ./VBoxLinuxAdditions.run —nox11

There seems to be a conflict between the macros related to the gcc fallthrough attribute in the virtual box guest addition drivers and the Linux kernel headers.

Specifically, the virtual box drivers define several such macros as:

But in the Linux kernel at include/linux/compiler_attributes.h, there’s something like this:

Now, if I understand your build log correctly, I think those RT_FALL_THROUGH s would actually end up as __attribute__((__attribute__((__fallthrough__)))) , messing up the code.

Could you try going in your /usr/src/vboxguest-x.y.z dir and replace all the __attribute__((fallthrough)) (they’re only 3 of those on my setup) to __attribute__((__fallthrough__)) ? (Plain falthrough should also work, I guess) .

Then rebuild all that by ./build_in_tmp .

Update: I see there were some complains some time ago on this topic here. And it seems to have already been fixed via this ticket.

Источник

Kernel configuration is invalid error while trying to install paragon ufsd professional drivers for HFS+

short question:

While running the install.sh Skript for Paragon UFSD drivers I get the Error message:

How can I run «make oldconfig && make prepare» and does that make sense?

Disclaimer:

I know this question was asked in context of NVIDIA driver, but it was answered by suggesting other ways to install NVIDIA not telling how to run the make command (Installing NVIDIA Driver: Error Run ‘make oldconfig && make prepare’ on kernel src to fix it.»). In another question the problem was solved but the person who asked can not remember how («ERROR: Kernel configuration is invalid»).

Context for my question:

I am trying now for several days to install the Paragon-147-PRE_NTFS_Linux_9.4_Pro UFSD drivers for full read&write NTFS and HFS+ filesystem support. The drivers officially support Ubuntu 16.04LTS. After crunching my old Linux installation I use a fresh install of Ubuntu 16.04.2LTS (downloaded from the UBUNTU website) with nothing but the standard installation, though I run it on a triple boot system (Windows7, elementary, Ubuntu) if that matters.

I installed the build-essentials, dkms and linux-headers:

As far as I know I match all requirements (hardware and installed software) listed in the paragon manual (http://download.paragon-software.com/doc/ntfs_hfs_linux_9_4_user_manual.pdf):

I unpacked the Paragon driver package and started the install.sh skript (note on the «out of range» warning: I previously tried it on 4.4. kernel without that warning but the same final error message):

In the make.log I found this error message:

when looking for the source-code files and the config-file as suggested in the Paragon Manual troubleshooting it seems to me, that I have everything needed:

I do not know how to proceed. I would be greatful for any help or hint where I can get more information.

Источник

ROSAForum

Forum about ROSA Linux Distros

  • Темы без ответов
  • Активные темы
  • Поиск
  • Наша команда

[РЕШЕНО] Установка VirtualBOX

[РЕШЕНО] Установка VirtualBOX

Сообщение asupstudent » 08 июн 2012, 09:39

Возникла необходимость установить VirtualBOX (необходимо запустить Microsoft Visual Studio)
Установил из репозитария — возникли ошибки
1 Когда виртуальная машина уже создана, при нажатии на Свойства вылетает окно

Failed to access the USB subsystem.

Could not load the Host USB Proxy Service
(VERR_FILE_NOT_FOUND). The service might not be
installed on the host computer.

2 Версия старая

Вкачал rpm пакет с новой версией VirtualBox-4.1-4.1.16_78094_mdv2011.0-1.x86_64.rpm

Пакет устанавливается, но при конфигурировании (/etc/init.d/vboxdrv setup) вылетают ошибки

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

установил пакеты для разработки + исходники ядра

kernel-desktop-devel-latest
kernel-desktop-latest
kernel-headers
kernel-source
kernel-source-latest
kdebase4-devel
kdebase4-runtime-devel
kdebase4-workspace-devel
autoconf2.1-2.13
autoconf-2.68

Дал команду в директории с исходниками ядра:

[root@asupstudent linux]# make oldconfig && make prepare
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf —oldconfig Kconfig
#
# using defaults found in /boot/config-3.0.28-nrj-desktop-2rosa.lts
#
#
# configuration written to .config
#
scripts/kconfig/conf —silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh

После этого в папке /usr/src/linux/include/generated/ повляется файлик autoconf.h

Далее очень ВАЖНО сделать симлинк

ln -s /usr/src/linux/include/generated/autoconf.h /usr/src/linux/include/linux/autoconf.h

После всех проведенных дейстивий VIrtualBox установился номально

[root@asupstudent Загрузки]# rpm -ihv VirtualBox-4.1-4.1.16_78094_mdv2011.0-1.x86_64.rpm
warning: VirtualBox-4.1-4.1.16_78094_mdv2011.0-1.x86_64.rpm: Заголовок V4 DSA подпись: NOKEY, key ID 98ab5139
Подготовка. ########################################### [100%]
1:VirtualBox-4.1 ########################################### [100%]

Creating group ‘vboxusers’. VM users must be member of that group!

No precompiled module for this kernel found — trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS [ OK ]
Starting VirtualBox kernel modules [ OK ]
[root@asupstudent Загрузки]#

Если какие есть какие нибудь замечания, с удовльствием выслушаю
Спасибо

Источник

Не собирается альса.(Ошибка в заголовках ядра) [как бы РЕШЕНО]

Проблему как бы решил. Вернул Альсу, установив pulseaudio
sudo apt-get install pulseaudio

Но проверять-собирать альсу из исходников не стал.

Он же сказал на чистом англицком языке в чём косяк. Сорци, или заголовки ядра (что там у вас) не подходят. Нужно поправить и всё скомпилится. А вообче зачем компилить если можно пакетами поставить? Вообще make / make install не православно в deb системе. Лучше собрать дебки с помощью checkinstall.

1. А а где эти пакеты взять? То что в репах мне не подходит (там нет alsaconf).
2. «Сорци, или заголовки ядра (что там у вас) не подходят. Нужно поправить и всё скомпилится.» А как это подправить?

1. Что такое alsaconf и зачем оно надо?
Если не подходит то, что лежит в стандартной репе, то пропиши testing репы (хотя, я больше чем уверен, что у тебя и так самая последняя версия в репах лежит).
2. Run ‘make oldconfig && make prepare’ on kernel src to fix it.
$ sudo su
# cd /usr/src/linux-headers-2.6.32-27/
# make oldconfig && make prepare
Должно помоч

«Run ‘make oldconfig && make prepare’ on kernel src to fix it.» это я видел. И догадался сделать, но делал не от рута. И он мне ответил, что то вроде: не заданы задачи. Как то так.

Источник

I had the same issue — suddenly today my Vagrant box stopped mounting my shared folders, and kept failing to update the Virtual Guest Additions every time it started:

==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 6.1.18
Going on, assuming VBoxService is correct...
[default] GuestAdditions seems to be installed (6.1.18) correctly, but not running.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 6.1.18
Going on, assuming VBoxService is correct...
Job for vboxadd-service.service failed because the control process exited with error code. See "systemctl status vboxadd-service.service" and "journalctl -xe" for details.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 6.1.18
Going on, assuming VBoxService is correct...
update-initramfs: Generating /boot/initrd.img-4.4.0-209-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.4.0-209-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what 
went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 6.1.18
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 6.1.18
Going on, assuming VBoxService is correct...
Restarting VM to apply changes...
==> default: Attempting graceful shutdown of VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...

The log was no help, it just said this:

vagrant@ubuntu-xenial:~$ cat /var/log/vboxadd-setup.log
Could not find the X.Org or XFree86 Window System, skipping.

After messing around for ages and reading several StackOverflow answers from a few years ago (none of which helped) I upgraded my kernel:

vagrant@ubuntu-xenial:~$ wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
ubuntu-mainline-kernel.sh -c
sudo ubuntu-mainline-kernel.sh -i v5.11.15

And then restarted with vagrant halt and vagrant up, and the VB Guest Additions got themselves all sorted out.

So if you’ve got an old box, it looks like the latest VirtualBox Guest Additions do not play nice and you need to update your kernel.

Hi everyone, hi @orangepi-xunlong @BuddyZhang1 ,

I am compiling a driver for WiPi which is based on RaLink rt5370. Driver obtainable here. Nice since, it is directly from the vendor.

Anyhow, I downloaded this SDK, since I am using OrangePi PC2 (therefore H5 Allwinner) and I found that the driver is using a link (which was broken in OrangePi Ubuntu out-of-the-box):

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/YOUR-LINUX-SRC/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/YOUR-LINUX-SRC/kernel/drivers/net/wireless/
CROSS_COMPILE = 
endif

so I modified accordingly:

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/3.10.65/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/3.10.65/kernel/drivers/net/wireless/
CROSS_COMPILE = 
endif

and put this SDK at this path /lib/modules/3.10.65/build.

Anyhow, I am getting following error:

orangepi@Orangepi:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022$ make
make -C tools
make[1]: Entering directory '/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/3.10.65/build SUBDIRS=/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make[1]: Entering directory '/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_md5.o
In file included from <command-line>:0:0:
/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
scripts/Makefile.build:308: recipe for target '/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_md5.o' failed
make[2]: *** [/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_md5.o] Error 1
Makefile:1226: recipe for target '_module_/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux' failed
make[1]: *** [_module_/home/orangepi/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
make[1]: Leaving directory '/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
orangepi@Orangepi:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022$ 

and proposed fix:

Run 'make oldconfig && make prepare' on kernel src to fix it.

is giving:

orangepi@Orangepi:/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel$ make oldconfig
scripts/kconfig/conf --oldconfig Kconfig

*** Error during writing of the configuration.

/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel/scripts/kconfig/Makefile:33: recipe for target 'oldconfig' failed
make[1]: *** [oldconfig] Error 1
Makefile:503: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 2
orangepi@Orangepi:/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel$ make oldconfig && make prepare
scripts/kconfig/conf --oldconfig Kconfig

*** Error during writing of the configuration.

/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel/scripts/kconfig/Makefile:33: recipe for target 'oldconfig' failed
make[1]: *** [oldconfig] Error 1
Makefile:503: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 2
orangepi@Orangepi:/home/orange/OPEN_SOURCE/OrangePi_H5SDK/kernel$ 

Apparently, autoconf.h and auto.conf as, or any oldconfig is missing, therefore pls provide solution.

Thanks
Dj

  • #1

Hi, everyone,
what can I do if the following error occurs:

Code:

root@pve:~# cat /var/lib/dkms/pivccu/1.0.70/build/make.log
DKMS make.log for pivccu-1.0.70 for kernel 5.13.19-2-pve (x86_64)
Sun 26 Dec 2021 10:21:50 AM CET
make -C /lib/modules/5.13.19-2-pve/build M=/var/lib/dkms/pivccu/1.0.70/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.13.19-2-pve'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: *** [Makefile:753: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-5.13.19-2-pve'
make: *** [Makefile:30: all] Error 2

It seems that the Proxmox Kernel Headers are packaged defective?!

Thanks,

Gernot

mira

mira

Proxmox Staff Member


  • #2

Was this part of an update that included a newer kernel version?
Or did you update the kernel without rebooting before trying to build that module?

  • #3

Its was a reinstallation:

Code:

root@pve:~# apt reinstall pivccu-modules-dkms debmatic-lxc-host
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils cpp-8 libasan5 libbison-dev libisl19 libmpx2 libzpool4linux pve-headers-5.13.19-1-pve pve-headers-5.4 pve-headers-5.4.143-1-pve pve-kernel-5.4.140-1-pve
  python-ceph-argparse
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 43.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://www.debmatic.de/debmatic stable/main amd64 pivccu-modules-dkms all 1.0.70 [41.3 kB]
Get:2 https://www.debmatic.de/debmatic stable/main amd64 debmatic-lxc-host all 1.0.5 [1,872 B]
Fetched 43.2 kB in 0s (198 kB/s)             
Preconfiguring packages ...
(Reading database ... 215632 files and directories currently installed.)
Preparing to unpack .../pivccu-modules-dkms_1.0.70_all.deb ...
Removed /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service.
Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.
Removed /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service.

------------------------------
Deleting module version: 1.0.70
completely from the DKMS tree.
------------------------------
Done.
Unpacking pivccu-modules-dkms (1.0.70) over (1.0.70) ...
Preparing to unpack .../debmatic-lxc-host_1.0.5_all.deb ...
Unpacking debmatic-lxc-host (1.0.5) over (1.0.5) ...
Setting up pivccu-modules-dkms (1.0.70) ...
Error! The module/version combo: pivccu-1.0.70
is not located in the DKMS tree.

Creating symlink /var/lib/dkms/pivccu/1.0.70/source ->
                 /usr/src/pivccu-1.0.70

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.13.19-2-pve ARCH=x86 all...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.13.19-2-pve (x86_64)
Consult /var/lib/dkms/pivccu/1.0.70/build/make.log for more information.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Setting up debmatic-lxc-host (1.0.5) ...
root@pve:~#

mira

mira

Proxmox Staff Member


  • #4

What’s the output of pveversion -v?
The latest pve-headers package is installed?

  • #5

Code:

root@pve:~# pveversion -v
proxmox-ve: 7.1-1 (running kernel: 5.13.19-2-pve)
pve-manager: 7.1-8 (running version: 7.1-8/5b267f33)
pve-kernel-helper: 7.1-6
pve-kernel-5.13: 7.1-5
pve-kernel-5.4: 6.4-7
pve-kernel-5.3: 6.1-6
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-5.13.19-1-pve: 5.13.19-3
pve-kernel-5.4.143-1-pve: 5.4.143-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.18-2-pve: 5.3.18-2
ceph-fuse: 16.2.7
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-5
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-14
libpve-guest-common-perl: 4.0-3
libpve-http-server-perl: 4.0-4
libpve-storage-perl: 7.0-15
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.11-1
lxcfs: 4.0.11-pve1
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.1.2-1
proxmox-backup-file-restore: 2.1.2-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.4-4
pve-cluster: 7.1-2
pve-container: 4.1-3
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.3-3
pve-ha-manager: 3.3-1
pve-i18n: 2.6-2
pve-qemu-kvm: 6.1.0-3
pve-xtermjs: 4.12.0-1
qemu-server: 7.1-4
smartmontools: 7.2-pve2
spiceterm: 3.2-2
swtpm: 0.7.0~rc1+2
vncterm: 1.7-1
zfsutils-linux: 2.1.1-pve3

Code:

root@pve:~# apt install pve-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pve-headers is already the newest version (7.1-1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

mira

mira

Proxmox Staff Member


  • #6

Please provide the output of apt-cache policy pve-headers-5.13.19-2-pve.

  • #7

Thank you for your patience, Mira.

Code:

root@pve:~# apt-cache policy pve-headers-5.13.19-2-pve
pve-headers-5.13.19-2-pve:
  Installed: 5.13.19-4
  Candidate: 5.13.19-4
  Version table:
 *** 5.13.19-4 500
        500 http://download.proxmox.com/debian/pve bullseye/pve-no-subscription amd64 Packages
        100 /var/lib/dpkg/status

Best regards,

Gernot

mira

mira

Proxmox Staff Member


  • #8

Last edited: Dec 27, 2021

  • #9

Code:

apt reinstall pve-headers-uname -r pve-headers

That works!

thank you, Mira,

Gernot

mira

mira

Proxmox Staff Member


  • #10

Great that it worked. :)

View previous topic :: View next topic  
Author Message
Windmill
Tux’s lil’ helper
Tux's lil' helper

Joined: 21 Feb 2014
Posts: 105

PostPosted: Fri Apr 06, 2018 2:30 pm    Post subject: nvidia kernel configuration is invalid Reply with quote

I have this error when trying to install nvidia driver

Code:
echo >&2 »  ERROR: Kernel configuration is invalid.»;      

echo >&2 »         include/generated/autoconf.h or include/config/auto.conf are missing.»;

echo >&2 »         Run ‘make oldconfig && make prepare’ on kernel src to fix it.»;   



The compilation continues after this, but I opened a thread because I do’t know if it’s a real problem or not. I found a thread talking about the same error, but it was from 2017 so I find it strange that it hasn’t been fixed in a year

Back to top

View user's profile Send private message

Tony0945
Watchman
Watchman

Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Apr 06, 2018 2:54 pm    Post subject: Reply with quote

Try doing what the error suggests?

«make oldconfig» is a tip off that some config item is completely missing from your config file, not just turned off.

ALWAYS run make oldconfig when upgrading versions other than minor revisions. i.e. 4.8 to 4.9, minor revisions being 4.8.10 to 4.8.20

I have a script that always runs make oldconfig. it takes a few seconds and never finds anything on the minor revisions. But I don’t mind waiting ten seconds or so, the build is going to take much longer.

Back to top

View user's profile Send private message

fedeliallalinea
Administrator
Administrator

Joined: 08 Mar 2003
Posts: 29429
Location: here

PostPosted: Fri Apr 06, 2018 2:57 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-6457443.html#6457443

cach0rr0 wrote:
Code:
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (     

   echo;                       

   echo »  ERROR: Kernel configuration is invalid.»;     

   echo »         include/generated/autoconf.h or include/config/auto.conf are missing.»;

   echo »         Run ‘make oldconfig && make prepare’ on kernel src to fix it.»;   

   echo;     

That’s just saying it will echo that if those files are missing


_________________
Questions are guaranteed in life; Answers aren’t.

Back to top

View user's profile Send private message

gerard27
Advocate
Advocate

Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Apr 06, 2018 3:19 pm    Post subject: Reply with quote

My experience is that this error message will be printed ALWAYS.

I think the nvidia source has an «if/then» missing.

I have installed nvidia-drivers many times,always this message even though X works fine.

Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.

The same disk can be used for 32 and 64 bit installs.

You can follow the Handbook verbatim.

http://www.sysresccd.org/Download
Back to top

View user's profile Send private message

fedeliallalinea
Administrator
Administrator

Joined: 08 Mar 2003
Posts: 29429
Location: here

PostPosted: Fri Apr 06, 2018 3:28 pm    Post subject: Reply with quote

gerard27 wrote:
My experience is that this error message will be printed ALWAYS.

I think the nvidia source has an «if/then» missing.

I have installed nvidia-drivers many times,always this message even though X works fine.

Gerard.



No the error message isn’t printed, but all test command is printed.

If error occur (when include/generated/autoconf.h or include/config/auto.conf are missing) you see error message without echo
_________________
Questions are guaranteed in life; Answers aren’t.

Back to top

View user's profile Send private message

Windmill
Tux’s lil’ helper
Tux's lil' helper

Joined: 21 Feb 2014
Posts: 105

PostPosted: Sat Apr 07, 2018 7:25 am    Post subject: Reply with quote

It seems that the driver is working correctly.
Back to top

View user's profile Send private message

Display posts from previous:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Понравилась статья? Поделить с друзьями:
  • Error jusched exe
  • Error juris транскрипция
  • Error juris перевод
  • Error junk at end of line first unrecognized character is
  • Error jump to case label fpermissive