<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9892</bug_id>
          
          <creation_ts>2016-07-07 10:08:39 +0000</creation_ts>
          <short_desc>v86d fails to build on arm64 host</short_desc>
          <delta_ts>2017-02-23 16:53:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>fathi.boudra</cc>
    
    <cc>koen</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ndec13</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63712</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-07 10:08:39 +0000</bug_when>
    <thetext>When building v86d with MACHINE=qemux86 on aarch64:

 In file included from v86_lrmi.c:3:0:
| v86.h:8:20: fatal error: config.h: No such file or directory
|  #include &quot;config.h&quot;

It probably is assuming that its being built on x86 and failing somewhere in configure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63713</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-07 11:58:17 +0000</bug_when>
    <thetext>This is the v86d do_configure log:

DEBUG: Executing shell function do_configure
It looks like your architecture &apos;aarch64&apos; isn&apos;t supported by this version of v86d.
Unrecognized setting x86emu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63933</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Dechesne">ndec13</who>
    <bug_when>2016-07-13 17:01:08 +0000</bug_when>
    <thetext>looking at the configure script for v86d, it uses &apos;uname -m&apos; to check for the target arch.. in other words, it doesn&apos;t cope very well with cross compilation.. 

in fact, it looks like even today building on x86 or x86-64 will yield to different results.. independently of the x86 MACHINE we are building for..  

e.g.

copt_x86emu_test()
{
	local m=`uname -m`
	if [ &quot;$m&quot; = &quot;i686&quot; -o &quot;$m&quot; = &quot;i586&quot; -o &quot;$m&quot; = &quot;i486&quot; -o &quot;$m&quot; = &quot;i386&quot; ]; then
		echo &quot;n&quot;;
	elif [ &quot;$m&quot; = &quot;x86_64&quot; ]; then
		echo &quot;y&quot;;
	else
		echo &quot;It looks like your architecture &apos;$m&apos; isn&apos;t supported by this version of v86d.&quot; &gt;&amp;2
		exit 1
	fi
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63944</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-13 19:14:51 +0000</bug_when>
    <thetext>Yes, v86d&apos;s default behaviour and cross compiling is terrible and is a clear example of why autotools are great.

Luckily we bypass the autodetection logic and force-enable x86emu, so this autodetection logic just has to execute without aborting and nothing else.

Khem has already sent a patch for this, changing state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70916</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-02-23 16:53:42 +0000</bug_when>
    <thetext>Merged in oe-core 709c603dec19690bcf21034867b815b5679b921a.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>