<html><body  bgcolor="#ffffff"><pre>>On Thu, Jun 6, 2013 at 5:27 PM, jinho hwang <<a href="http://dpdk.org/ml/listinfo/dev">hwang.jinho at gmail.com</a>> wrote:
>
>><i> Hi,
</i>>><i>
</i>>><i> I am having trouble to compile the dpdk in a virtual machine. I am using
</i>>><i> KVM as a hypervisor, and guest os is ubuntu 12.10, kernel 3.5.0, x86_64. I
</i>>><i> have been using dpdk for a week and run the examples in a native platform.
</i>>><i> But when I try to move it to virtual machine, it gives me the following
</i>>><i> error:
</i>>><i>
</i>>><i> /home/guest/dpdk-1.2.3r1/lib/librte_eal/linuxapp/eal/eal.c:1:0: error: CPU
</i>>><i> you selected does not support x86-64 instruction set
</i>>><i>
</i>>><i> I am sure that I have installed 64 bit version as it shows in "uname -a".
</i>><i> Also, /proc/cpuinfo shows "model name: QEMU Virtual CPU version
</i>><i> >(cpu64-rhe16)".
</i>>><i>
</i>><i>> Do you have any idea?
</i>>><i>
</i>><i>> Thank you,
</i>>><i>
</i>><i>> Jinho
</i>>><i>
</i>>
>I figured out just now. It was because gcc version. I used to use 4.4, but
>in the guest virtual machine, I used 4.7 which may have additional
>functions to check strictly. - Jinho
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: <<a href="http://dpdk.org/ml/archives/dev/attachments/20130606/0a77b188/attachment.html">http://dpdk.org/ml/archives/dev/attachments/20130606/0a77b188/attachment.html</a>><br><br><br>This error can also be cause by the VM's CPU definition not being defined.   The following xml snippet of code is from my DPDK VM's definition.<br>
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.WordSection1
</style>

</pre><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier"><span style="mso-spacerun:yes">  </span><cpu mode='host-passthrough'></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier"><span style="mso-spacerun:yes">    </span><topology sockets='1' cores='6'
threads='2'/></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier"><span style="mso-spacerun:yes">  </span></cpu></span></p>





<pre><br><br></pre><div><font face="Verdana" size="2"></font></div>
</body></html>