<?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>9579</bug_id>
          
          <creation_ts>2016-05-03 17:26:14 +0000</creation_ts>
          <short_desc>[jethro] perf build failure with linux-yocto_3.19</short_desc>
          <delta_ts>2016-05-26 14:58:58 +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>kernel</component>
          <version>2.0.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frederico Cadete">frederico.cadete</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>tom.zanussi</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>61905</commentid>
    <comment_count>0</comment_count>
    <who name="Frederico Cadete">frederico.cadete</who>
    <bug_when>2016-05-03 17:26:14 +0000</bug_when>
    <thetext>On poky, jethro tip (6dba9abd)
  source oe-init-build-env
  cd build
  echo &apos;PREFERRED_VERSION_linux-yocto_qemux86 = &quot;3.19%&quot;&apos; &gt;&gt; conf/local.conf
  bitbake perf
  
Will fail with:
...
|   LINK     /home/extra/git/poky/build/tmp/work/qemux86-poky-linux/perf/1.0-r9/perf-1.0/perf
| /home/extra/git/poky/build/tmp/work/qemux86-poky-linux/perf/1.0-r9/perf-1.0/tests/builtin-test.o:(.data+0xac): undefined reference to `test__perf_time_to_tsc&apos;
| collect2: error: ld returned 1 exit status
| make[1]: *** [/home/extra/git/poky/build/tmp/work/qemux86-poky-linux/perf/1.0-r9/perf-1.0/perf] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [all] Error 2
| make: Leaving directory `/home/extra/git/poky/build/tmp/work-shared/qemux86/kernel-source/tools/perf&apos;
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/extra/git/poky/build/tmp/work/qemux86-poky-linux/perf/1.0-r9/temp/log.do_compile.26584)
ERROR: Task 6 (/home/extra/git/poky/meta/recipes-kernel/perf/perf.bb, do_compile) failed with exit code &apos;1&apos;
..

It works OK with linux-yocto 4.1 (the default).
It worked OK on yocto-2.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62055</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2016-05-09 21:57:37 +0000</bug_when>
    <thetext>The reason this is failing is because the perf build is seeing ARCH=i386 and doesn&apos;t know what to do with that (it should be ARCH=x86).

The reason it&apos;s seeing ARCH=i386 is because of 

commit a6f52930a68d8462e23486d51cdda715072dd752
Author: Jianxun Zhang &lt;jianxun.zhang@linux.intel.com&gt;
Date:   Tue Jan 12 13:53:56 2016 -0800

    kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH

This commit was reverted in krogoth and master; it also needs to be reverted from jethro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62080</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2016-05-10 21:51:25 +0000</bug_when>
    <thetext>Patch submitted to oe-core</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62476</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2016-05-26 14:58:58 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=jethro&amp;id=00b016b010298c4f83f16afa8e3b49889b4eb24e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>