On Tue, Nov 28, 2023 at 08:22:22PM +0100, François Valenduc wrote: > Build fails on my baremetal server on scaleway: > > In file included from arch/x86/kvm/vmx/vmx.c:54: > arch/x86/kvm/vmx/evmcs.h:215:20: note: previous definition of > ‘evmptr_is_valid’ with type ‘bool(u64)’ {aka ‘_Bool(long long unsigned > int)’} > 215 | static inline bool evmptr_is_valid(u64 evmptr) > | ^~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:55: > arch/x86/kvm/vmx/hyperv.h:184:6: error: redeclaration of ‘enum > nested_evmptrld_status’ > 184 | enum nested_evmptrld_status { > | ^~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:54: > arch/x86/kvm/vmx/evmcs.h:220:6: note: originally defined here > 220 | enum nested_evmptrld_status { > | ^~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:55: > arch/x86/kvm/vmx/hyperv.h:185:9: error: redeclaration of enumerator > ‘EVMPTRLD_DISABLED’ > 185 | EVMPTRLD_DISABLED, > | ^~~~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:54: > arch/x86/kvm/vmx/evmcs.h:221:9: note: previous definition of > ‘EVMPTRLD_DISABLED’ with type ‘enum nested_evmptrld_status’ > 221 | EVMPTRLD_DISABLED, > | ^~~~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:55: > arch/x86/kvm/vmx/hyperv.h:186:9: error: redeclaration of enumerator > ‘EVMPTRLD_SUCCEEDED’ > 186 | EVMPTRLD_SUCCEEDED, > | ^~~~~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:54: > arch/x86/kvm/vmx/evmcs.h:222:9: note: previous definition of > ‘EVMPTRLD_SUCCEEDED’ with type ‘enum nested_evmptrld_status’ > 222 | EVMPTRLD_SUCCEEDED, > | ^~~~~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:55: > arch/x86/kvm/vmx/hyperv.h:187:9: error: redeclaration of enumerator > ‘EVMPTRLD_VMFAIL’ > 187 | EVMPTRLD_VMFAIL, > | ^~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:54: > arch/x86/kvm/vmx/evmcs.h:223:9: note: previous definition of > ‘EVMPTRLD_VMFAIL’ with type ‘enum nested_evmptrld_status’ > 223 | EVMPTRLD_VMFAIL, > | ^~~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:55: > arch/x86/kvm/vmx/hyperv.h:188:9: error: redeclaration of enumerator > ‘EVMPTRLD_ERROR’ > 188 | EVMPTRLD_ERROR, > | ^~~~~~~~~~~~~~ > In file included from arch/x86/kvm/vmx/vmx.c:54: > arch/x86/kvm/vmx/evmcs.h:224:9: note: previous definition of > ‘EVMPTRLD_ERROR’ with type ‘enum nested_evmptrld_status’ > 224 | EVMPTRLD_ERROR, > | ^~~~~~~~~~~~~~ > make[3]: *** [scripts/Makefile.build:250: arch/x86/kvm/vmx/vmx.o] Error 1 > make[2]: *** [scripts/Makefile.build:500: arch/x86/kvm] Error 2 > make[1]: *** [scripts/Makefile.build:500: arch/x86] Error 2 > > The configuration file is attached. Kernel 6.1.62 compiled fine. > Does somebody have an idea about this ? I just tried your .config file here and it builds just fine for 6.1.64, what version of gcc are you using that causes failures? I tried gcc-12 successfully. thanks, greg k-h