<?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>11036</bug_id>
          
          <creation_ts>2017-02-09 01:24:54 +0000</creation_ts>
          <short_desc>In certain cases devtool reset will fail, but bitbake -c clean will succeed</short_desc>
          <delta_ts>2017-09-22 04:20:06 +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>devtools / tool chain</component>
          <version>2.3</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.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Unknown (Hard to categorize)</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>70573</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-02-09 01:24:54 +0000</bug_when>
    <thetext>This failure occurs when building openssl-qat (with TCLIBC=musl) from meta-intel 

Steps to reproduce:

1) set up meta-intel and TCLIBC=musl
2) devtool modify openssl-qat
3) devtool build openssl-qat
   - build will fail
4) devtool reset openssl-qat
   - should fail
5) devtool reset -n openssl-qat
6) bitbake -c clean openssl-qat
   - this will clean OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70603</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-02-09 19:33:04 +0000</bug_when>
    <thetext>NOTE: Executing RunQueue Tasks
NOTE: Running task 1 of 2 (/srv/sdb/releases/master/meta-intel/common/recipes-extended/openssl-qat/openssl-qat_0.4.9-009.bb:do_buildclean)
NOTE: recipe openssl-qat-0.4.9-009-r0: task do_buildclean: Started
ERROR: openssl-qat-0.4.9-009-r0 do_buildclean: oe_runmake failed
ERROR: openssl-qat-0.4.9-009-r0 do_buildclean: Function failed: do_buildclean (log file is located at /srv/sdb/releases/master/builds/musl/tmp/work/intel_corei7_64-poky-linux-musl/openssl-qat/0.4.9-009-r0/temp/log.do_buildclean.91309)
ERROR: Logfile of failure stored in: /srv/sdb/releases/master/builds/musl/tmp/work/intel_corei7_64-poky-linux-musl/openssl-qat/0.4.9-009-r0/temp/log.do_buildclean.91309
Log data follows:
| DEBUG: Executing shell function do_buildclean
| NOTE: make -e MAKEFLAGS= clean
| ERROR: oe_runmake failed
| rm -f *.map *.so *.so.* *.dylib *.dll engines/*.so engines/*.dll engines/*.dylib *.a engines/*.a */lib */*/lib
| rm: cannot remove &apos;oe-workdir/recipe-sysroot/lib&apos;: Is a directory
| Makefile:409: recipe for target &apos;libclean&apos; failed
| make: *** [libclean] Error 1
| ERROR: Function failed: do_buildclean (log file is located at /srv/sdb/releases/master/builds/musl/tmp/work/intel_corei7_64-poky-linux-musl/openssl-qat/0.4.9-009-r0/temp/log.do_buildclean.91309)
NOTE: recipe openssl-qat-0.4.9-009-r0: task do_buildclean: Failed
ERROR: Task (/srv/sdb/releases/master/meta-intel/common/recipes-extended/openssl-qat/openssl-qat_0.4.9-009.bb:do_buildclean) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn&apos;t need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /srv/sdb/releases/master/meta-intel/common/recipes-extended/openssl-qat/openssl-qat_0.4.9-009.bb:do_buildclean
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

If you wish, you may specify -n/--no-clean to skip running this command when resetting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76878</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-15 03:26:40 +0000</bug_when>
    <thetext>So we can see from the error message that this is caused by openssl-qat&apos;s makefile which recurses into any directory that happens to exist in the source tree - and one of those is the symlink we create to make it easier to get to the work directory. You can disable these by setting EXTERNALSRC_SYMLINKS = &quot;&quot; to work around this, or patch the makefile. Beyond dropping the symlink functionality altogether I&apos;m not really sure what we can do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76879</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-15 03:29:27 +0000</bug_when>
    <thetext>Hmm, well I guess we could delete the symlinks first within do_buildclean.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77054</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-22 04:20:06 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=14a0736751741d8df77977356959e10182f452cb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>