<?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>4126</bug_id>
          
          <creation_ts>2013-03-26 20:14:19 +0000</creation_ts>
          <short_desc>Crystal Forest build failing for openssl-qat-module</short_desc>
          <delta_ts>2013-04-10 20:25:54 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>1.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</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>1.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="kishore">kishore.k.bodke</reporter>
          <assigned_to name="kishore">kishore.k.bodke</assigned_to>
          <cc>dvhart</cc>
    
    <cc>kishore.k.bodke</cc>
    
    <cc>peterlei</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31195</commentid>
    <comment_count>0</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-03-26 20:14:19 +0000</bug_when>
    <thetext>WARNING: The recipe zlib-qat-module is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /usr/local/src/1_4/build-crf-glad/tmp/sysroots/crystalforest-gladden/lib/modules/3.8.0-yocto-standard/extra/qat_mem.ko
   Matched in manifest-crystalforest-gladden-openssl-qat-module
Please verify which package should provide the above files.
WARNING: The recipe zlib-qat-module is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /usr/local/src/1_4/build-crf-glad/tmp/pkgdata/crystalforest_gladden-poky-linux/runtime-reverse/kernel-module-qat-mem
   Matched in manifest-crystalforest_gladden-openssl-qat-module.packagedata
   /usr/local/src/1_4/build-crf-glad/tmp/pkgdata/crystalforest_gladden-poky-linux/runtime/kernel-module-qat-mem.packaged
   Matched in manifest-crystalforest_gladden-openssl-qat-module.packagedata
   /usr/local/src/1_4/build-crf-glad/tmp/pkgdata/crystalforest_gladden-poky-linux/runtime/kernel-module-qat-mem
   Matched in manifest-crystalforest_gladden-openssl-qat-module.packagedata
Please verify which package should provide the above files.
ERROR: Recipe openssl-qat-module is trying to create package kernel-module-qat-mem which was already written by recipe zlib-qat-module. This will cause corruption, please resolve this and only provide the package from one recipe or the other or only build one of the recipes.
ERROR: Function failed: read_subpackage_metadata
ERROR: Execution of event handler &apos;run_buildstats&apos; failedTraceback (most recent call last):
  File &quot;run_buildstats(e)&quot;, line 104, in run_buildstats(e=&lt;bb.build.TaskFailed object at 0x860ff10&gt;)
  File &quot;buildstats.bbclass&quot;, line 5, in write_task_data(status=&apos;failed&apos;, logfile=&apos;/usr/local/src/1_4/build-crf-glad/tmp/buildstats/core-image-sato-crystalforest-gladden/201303261123/openssl-qat-module-1.2.7-r0/do_package_write_rpm&apos;, dev=&apos;sda2&apos;, e=&lt;bb.build.TaskFailed object at 0x860ff10&gt;)
IOError: [Errno 2] No such file or directory: &apos;/usr/local/src/1_4/build-crf-glad/tmp/buildstats/core-image-sato-crystalforest-gladden/201303261123/openssl-qat-module-1.2.7-r0/do_package_write_rpm&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31198</commentid>
    <comment_count>1</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-03-26 22:08:39 +0000</bug_when>
    <thetext>This is fixed and waiting for the review and upstreaming.

Thanks
Kishore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31274</commentid>
    <comment_count>2</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-03-28 20:23:37 +0000</bug_when>
    <thetext>This has been fixed and upstreamed to meta-intel/master.

Below are the commit ids.

commit	294487ac822b0c9b9f4ff7861c0b67b43e99a781 (patch)
tree	7cd3bab361dfc9df8551a8ccbd883419b7b26adf
parent	2e8760d272aa2c62b41cbf768445c99569604c5e (diff)

Thanks
Kishore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31404</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-03 03:44:32 +0000</bug_when>
    <thetext>I haven&apos;t been able to get a good crystalforest-server build with the patch that was supposed to fix this, on two different systems, Fedora and Ubuntu, with the SRCREVs given to me by Kishore, or any other.  I always get this:

Build Configuration:
BB_VERSION        = &quot;1.17.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-11.10&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;crystalforest-server&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130402&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;vcbdbc54e5743944fd24f497b46b3c54ad966d8eb:cbdbc54e5743944fd24f497b46b3c54ad966d8eb&quot;
meta-intel        
meta-crystalforest = &quot;master20:87958c5ef40166b6c71cc8c14fb0cfd3601c8dd7&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel config, see log.do_kernel_configcheck for details
WARNING: QA Issue: Architecture did not match (62 to 2) on /work/x86_64-poky-linux/canterbury-corpus/1.0-r0/packages-split/canterbury-corpus/lib/firmware/sum
WARNING: The recipe openssl-qat-module is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /usr/local/dev/yocto/isg-test/build/tmp/pkgdata/crystalforest_server-poky-linux/runtime/kernel-module-qat-mem
   Matched in manifest-crystalforest_server-zlib-qat-module.packagedata
   /usr/local/dev/yocto/isg-test/build/tmp/pkgdata/crystalforest_server-poky-linux/runtime-reverse/kernel-module-qat-mem
   Matched in manifest-crystalforest_server-zlib-qat-module.packagedata
Please verify which package should provide the above files.
ERROR: Recipe zlib-qat-module is trying to create package kernel-module-qat-mem which was already written by recipe openssl-qat-module. This will cause corruption, please resolve this and only provide the package from one recipe or the other or only build one of the recipes.
ERROR: Function failed: read_subpackage_metadata
ERROR: Execution of event handler &apos;run_buildstats&apos; failed
Traceback (most recent call last):
  File &quot;run_buildstats(e)&quot;, line 104, in run_buildstats(e=&lt;bb.build.TaskFailed object at 0x8768b50&gt;)
  File &quot;buildstats.bbclass&quot;, line 5, in write_task_data(status=&apos;failed&apos;, logfile=&apos;/usr/local/dev/yocto/isg-test/build/tmp/buildstats/core-image-sato-crystalforest-server/201304021850/zlib-qat-module-1.0.1-r0/do_package_write_rpm&apos;, dev=&apos;sdb1&apos;, e=&lt;bb.build.TaskFailed object at 0x8768b50&gt;)
IOError: [Errno 2] No such file or directory: &apos;/usr/local/dev/yocto/isg-test/build/tmp/buildstats/core-image-sato-crystalforest-server/201304021850/zlib-qat-module-1.0.1-r0/do_package_write_rpm&apos;

ERROR: Logfile of failure stored in: /usr/local/dev/yocto/isg-test/build/tmp/work/crystalforest_server-poky-linux/zlib-qat-module/1.2.7-r0/temp/log.do_package_write_rpm.1523
ERROR: Task 1784 (/usr/local/dev/yocto/isg-test/meta-intel/common/recipes-core/zlib-qat-module/zlib-qat-module.bb, do_package_write_rpm) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 5212 tasks of which 531 didn&apos;t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /usr/local/dev/yocto/isg-test/meta-intel/common/recipes-core/zlib-qat-module/zlib-qat-module.bb, do_package_write_rpm
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31472</commentid>
    <comment_count>4</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-04-03 18:36:52 +0000</bug_when>
    <thetext>Hi Tom,

The main issue here being that the zlib-qat-module recipe and openssl-qat-module recipe are generating the same kernel module name (qat_mem.ko) and we cannot have two kernel modules with the same name loaded at the same time.

I tried changing the kernel module name in the Makefile, for one of the recipe (openssl-qat-module), so that it generates the openssl_qat_mem.ko kernel module, but that triggered another build error while building the core-image-sato.

 Computing transaction...error: Can&apos;t install openssl-qat-module-1.0.1-r0@crystalforest_server: no package provides kernel-module-openssl-qat-mem
|

I am thinking of changing the file names which generates the kernel module for openssl-qat-module or zlib-qat-module.

Since I only see this as a solution for this to be fixed.

Please let me know if you have any other suggestions.

Thanks
Kishore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31635</commentid>
    <comment_count>5</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-04-05 23:57:43 +0000</bug_when>
    <thetext>Since we cannot have two kernel modules with the same name built into the package, I am thinking of building only one of the two recipes (openssl-qat-module or zlib-qat-module) and removing the other from building and having it document in the README to tell the users to include one which is needed.

Please let me know if you have any other suggestions.

Thanks
Kishore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31636</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-06 00:04:13 +0000</bug_when>
    <thetext>Can you please explain why the modules have the same name?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31637</commentid>
    <comment_count>7</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-04-06 00:11:54 +0000</bug_when>
    <thetext>These kernel modules are specific to Quick Assist Technology Drivers.
The owning Engineering division of these drivers had this.

Basically these kernel modules test the Memory Management for Quick Assist Technlogy drivers one with the openssl and the other one with zlib.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31638</commentid>
    <comment_count>8</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-06 00:38:19 +0000</bug_when>
    <thetext>So these are just for testing?

And how are they used in practice, modprobe one, test, rmmod it, then modprobe the other, test, rmmod it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31639</commentid>
    <comment_count>9</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-04-06 01:25:01 +0000</bug_when>
    <thetext>Yes. That is what exactly we do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31640</commentid>
    <comment_count>10</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-06 01:35:41 +0000</bug_when>
    <thetext>Ok, well, I&apos;m not sure why you&apos;re putting test programs in a standard image in the first place, but it sounds like overriding the package name for one of them might solve the immediate problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31854</commentid>
    <comment_count>11</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2013-04-10 17:57:58 +0000</bug_when>
    <thetext>Patch sent. Waiting for review.

Thanks
Kishore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31861</commentid>
    <comment_count>12</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-10 20:24:08 +0000</bug_when>
    <thetext>*** Bug 4215 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31862</commentid>
    <comment_count>13</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-04-10 20:25:54 +0000</bug_when>
    <thetext>Fixed by meta-intel/master commit e3f78500b1eba6fce602bd146affa868357c2d66</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>