fail to compile qemu-kvm-0.13.0

Bug #680350 reported by liheyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

Problem
During compile with qemu-kvm-0.13.0, can't successfully make through with error:
#make && make install
kvm-all.o: In function `kvm_run':
/home/liheyuan/code/qemu-kvm-0.13.0/qemu-kvm.c:675: undefined reference to `kvm_handle_internal_error'
collect2: ld returned 1 exit status

Cause
The developer using an new ‘macro definition’:KVM_CAP_INTERNAL_ERROR_DATA, but fail to add it to every places it needed.

Solution
modify qemu-kvm.c, line:674,add the ‘macro definition’ before and after the ‘case:’, as follows

#line674~~677 should be replace like this:
#ifdef KVM_CAP_INTERNAL_ERROR_DATA
        case KVM_EXIT_INTERNAL_ERROR:
            kvm_handle_internal_error(env, run);
            r = 1;
            break;
#endif

For more details at, http://www.coder4.com/archives/1174

Revision history for this message
Jes Sorensen (jes-sorensen) wrote :

Your report is incomplete.

Please provide your configure line, and also what system your are compiling on.

In addition, please try building top of tree qemu with this configure line.

Thanks,
Jes

Changed in qemu:
status: New → Incomplete
Revision history for this message
Peter Maydell (pmaydell) wrote :

This is a compilation error for a really old version of qemu-kvm; it has never been a bug in QEMU master (see commit 7c80eef). So I'm closing it as invalid.

Changed in qemu:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.