kvm centos cannot compile error

./configure
./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc
yum -y install gcc make

./configure
./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc

yum -y install compat-gcc-*

./configure

Error: Could not find alsa
Make sure to have the alsa libs and headers installed.

yum -y install alsa-lib-devel

./configure
which: no texi2html in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/kvm/kvm-17/qemu
C compiler        /usr/bin/gcc34
Host C compiler   gcc
make              make
install           install
host CPU          x86_64
host big endian   no
target list       x86_64-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       no
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      yes
DSound support    no
FMOD support      no
kqemu support     no
kvm support       yes
Documentation     no
ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU without graphical output configure with --disable-gfx-check
Note that this will disable all output from the virtual graphics card.

yum -y install SDL-devel

./configure
which: no texi2html in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/kvm/kvm-17/qemu
C compiler        /usr/bin/gcc34
Host C compiler   gcc
make              make
install           install
host CPU          x86_64
host big endian   no
target list       x86_64-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      yes
DSound support    no
FMOD support      no
kqemu support     no
kvm support       yes
Documentation     no

make -C kernel
make[1]: Entering directory `/root/kvm/kvm-17/kernel'
make -C /lib/modules/2.6.32-042stab079.6/build M=`pwd` "$@"
make[2]: Entering directory `/usr/src/kernels/2.6.32-042stab079.6'
  LD      /root/kvm/kvm-17/kernel/built-in.o
  CC [M]  /root/kvm/kvm-17/kernel/svm.o
In file included from /root/kvm/kvm-17/kernel/kvm_svm.h:9,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/svm.h:175:1: warning: "MSR_VM_HSAVE_PA" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:431:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/kvm_svm.h:10,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/vmx.h:290:1: warning: "MSR_IA32_VMX_BASIC" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:413:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/kvm_svm.h:10,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/vmx.h:291:1: warning: "MSR_IA32_FEATURE_CONTROL" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:216:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/kvm_svm.h:10,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/vmx.h:292:1: warning: "MSR_IA32_VMX_PINBASED_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:414:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/kvm_svm.h:10,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/vmx.h:293:1: warning: "MSR_IA32_VMX_PROCBASED_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:415:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/kvm_svm.h:10,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/vmx.h:294:1: warning: "MSR_IA32_VMX_EXIT_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:416:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/kvm_svm.h:10,
                 from /root/kvm/kvm-17/kernel/svm.c:24:
/root/kvm/kvm-17/kernel/vmx.h:295:1: warning: "MSR_IA32_VMX_ENTRY_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:417:1: warning: this is the location of the previous definition
/root/kvm/kvm-17/kernel/svm.c:206: warning: ‘inject_db’ defined but not used
  CC [M]  /root/kvm/kvm-17/kernel/vmx.o
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/vmx.c:18:
/root/kvm/kvm-17/kernel/vmx.h:290:1: warning: "MSR_IA32_VMX_BASIC" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:413:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/vmx.c:18:
/root/kvm/kvm-17/kernel/vmx.h:291:1: warning: "MSR_IA32_FEATURE_CONTROL" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:216:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/vmx.c:18:
/root/kvm/kvm-17/kernel/vmx.h:292:1: warning: "MSR_IA32_VMX_PINBASED_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:414:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/vmx.c:18:
/root/kvm/kvm-17/kernel/vmx.h:293:1: warning: "MSR_IA32_VMX_PROCBASED_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:415:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/vmx.c:18:
/root/kvm/kvm-17/kernel/vmx.h:294:1: warning: "MSR_IA32_VMX_EXIT_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:416:1: warning: this is the location of the previous definition
In file included from /root/kvm/kvm-17/kernel/kvm.h:15,
                 from /root/kvm/kvm-17/kernel/vmx.c:18:
/root/kvm/kvm-17/kernel/vmx.h:295:1: warning: "MSR_IA32_VMX_ENTRY_CTLS" redefined
In file included from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr.h:4,
                 from /usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/processor.h:21,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/kobject.h:20,
                 from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from /root/kvm/kvm-17/kernel/external-module-compat.h:13,
                 from <command-line>:0:
/usr/src/kernels/2.6.32-042stab079.6/arch/x86/include/asm/msr-index.h:417:1: warning: this is the location of the previous definition
/root/kvm/kvm-17/kernel/vmx.c: In function ‘vcpu_clear’:
/root/kvm/kvm-17/kernel/vmx.c:131: error: too many arguments to function ‘smp_call_function_single’
/root/kvm/kvm-17/kernel/vmx.c: In function ‘enter_pmode’:
/root/kvm/kvm-17/kernel/vmx.c:644: error: ‘IOPL_MASK’ undeclared (first use in this function)
/root/kvm/kvm-17/kernel/vmx.c:644: error: (Each undeclared identifier is reported only once
/root/kvm/kvm-17/kernel/vmx.c:644: error: for each function it appears in.)
/root/kvm/kvm-17/kernel/vmx.c: In function ‘enter_rmode’:
/root/kvm/kvm-17/kernel/vmx.c:701: error: ‘IOPL_MASK’ undeclared (first use in this function)
/root/kvm/kvm-17/kernel/vmx.c: In function ‘vmx_free_vmcs’:
/root/kvm/kvm-17/kernel/vmx.c:1999: error: too many arguments to function ‘on_each_cpu’
make[3]: *** [/root/kvm/kvm-17/kernel/vmx.o] Error 1
make[2]: *** [_module_/root/kvm/kvm-17/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.32-042stab079.6'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/kvm/kvm-17/kernel'
make: *** [kernel] Error 2

vmx seems to be the issue
 


Tags:

kvm, centos, compile, configure, locate, gcc, install, specify, qemu, cc, yum, compat, alsa, libs, headers, installed, lib, devel, texi, html, usr, sbin, bin, prefix, bios, directory, binary, manual, elf, interp, gnemul, compiler, cpu, _, endian, softmmu, gprof, enabled, profiler, static, sdl, mingw, adlib, coreaudio, dsound, fmod, kqemu, documentation, requires, cocoa, graphical, output, disable, gfx, virtual, graphics, kernel, modules, pwd, quot, src, kernels, ld, svm, included, kvm_svm, msr_vm_hsave_pa, redefined, asm, msr, processor, linux, prefetch, kobject, sysdev, external, module, index, previous, definition, vmx, msr_ia, _vmx_basic, _feature_control, _vmx_pinbased_ctls, _vmx_procbased_ctls, _vmx_exit_ctls, _vmx_entry_ctls, lsquo, inject_db, rsquo, defined, vcpu_clear, arguments, smp_call_function_single, enter_pmode, iopl_mask, undeclared, identifier, reported, enter_rmode, vmx_free_vmcs, on_each_cpu, _module_,

Latest Articles

  • LXC Containers LXD How to Install and Configure Tutorial Ubuntu Debian Mint
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox
  • Ubuntu Mint audio output not working pulseaudio "pulseaudio[13710]: [pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink."
  • How To Shrink Dynamically Allocated VM QEMU KVM VMware Disk Image File
  • How To Enable Linux Swapfile Instead of Partition Ubuntu Mint Debian Centos
  • 404 Not Found [IP: 151.101.194.132 80] apt update Debian 11 Bullseye Solution The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.
  • WARNING: Can't download daily.cvd from db.local.clamav.net freshclam clamav error solution
  • (firefox:9562): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory) Solution
  • Debian Mint Ubuntu Which Package Provides missing top, ps and w Solution
  • Vbox Virtualbox DNS NAT Network Mode NOT working
  • Docker Tutorial HowTo Install Docker, Use and Create Docker Container Images Clustering Swarm Mode Monitoring Service Hosting Provider
  • Zoom Password Error 'That passcode was incorrect' - Solution Wrong Passcode Wrong Meeting Name
  • How To Startup and Open Remote/Local Folder/Directory in Ubuntu Linux Mint automatically upon login
  • How To Reset Windows Server Password 2019, 2022, 7, 8, 10, 11 Recovery and Removal Guide Using Linux Ubuntu Mint Debian
  • How To Create OpenVPN Server for Secure Remote Corporate Access in Linux Debian/Mint/Ubuntu with client public key authentication
  • HongKong VPS Server, Cloud, Dedicated Server, Co-Location, Datacenter The Best Guide on Hong Kong, China Internet IT/Computing
  • ssh-keygen id_rsa private key howto remove the passphrase so no password is required and no encryption is used
  • Package wget is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. E: Package 'wget' has no installation candidate. Solution
  • tag#4 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE tag#4 Sense Key : Illegal Request [current] res 40/00:b4:98:02:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error) solution
  • Wazuh Install and Configuration Howto Tutorial Guide for Monitoring Agents