<?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>542</bug_id>
          
          <creation_ts>2010-11-19 11:40:05 +0000</creation_ts>
          <short_desc>bitbake &quot;NoProvider&quot; message doesn&apos;t aid in resolving the problem</short_desc>
          <delta_ts>2012-02-05 07:33:50 +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>unspecified</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>(P1)(QA Testing Completed)(Done)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          <blocked>1543</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>josh</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>10925</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2010-11-19 11:40:05 +0000</bug_when>
    <thetext>While working on a new linux kernel recipe, bitbake reported the following when my local.conf MACHINE setting wasn&apos;t listed in the COMPATIBLE_MACHINES of the new recipe:

dvhart@doubt:build$ bitbake linux-linaro
NOTE: Handling BitBake files: | (0876/0876) [100 %]
Parsing of 876 .bb files complete (823 cached, 53 parsed). 1036 targets, 35 skipped, 0 masked, 0 errors.

OE Build Configuration:
BB_VERSION        = &quot;1.11.0&quot;
METADATA_BRANCH   = &quot;master-dev&quot;
METADATA_REVISION = &quot;3f3499a0e18ffcc6171ca0d148940a92990098d4&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;0.9+snapshot-20101118&quot;
TARGET_FPU        = &quot;&quot;

ERROR: Nothing PROVIDES &apos;linux-linaro&apos;
Command execution failed: Traceback (most recent call last):
  File &quot;/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/command.py&quot;, line 88, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File &quot;/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/command.py&quot;, line 184, in buildTargets
    command.cooker.buildTargets(pkgs_to_build, task)
  File &quot;/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/cooker.py&quot;, line 756, in buildTargets
    taskdata.add_provider(localdata, self.status, k)
  File &quot;/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/taskdata.py&quot;, line 354, in add_provider
    self.add_provider_internal(cfgData, dataCache, item)
  File &quot;/home/dvhart/source/poky.git/scripts/..//bitbake/lib/bb/taskdata.py&quot;, line 374, in add_provider_internal
    raise bb.providers.NoProvider(item)
NoProvider: linux-linaro


For sane user input (ie package-name typos and and bad configs like my case above) we should avoid dumping python traces to the console.
Ideally it would say something more along the lines of:

dvhart@doubt:build$ bitbake linux-linaro
Parsing of 876 .bb files complete (823 cached, 53 parsed). 1036 targets, 35 skipped, 0 masked, 0 errors.

OE Build Configuration:
BB_VERSION        = &quot;1.11.0&quot;
METADATA_BRANCH   = &quot;master-dev&quot;
METADATA_REVISION = &quot;3f3499a0e18ffcc6171ca0d148940a92990098d4&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;0.9+snapshot-20101118&quot;
TARGET_FPU        = &quot;&quot;

ERROR: Nothing PROVIDES &apos;linux-linaro&apos; for MACHINE=qemux86-64

dvhart@doubt:build$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11932</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-02-22 08:02:15 +0000</bug_when>
    <thetext>This looks to be a non-trivial amount of work. I&apos;d like to postpone it till after 1.0...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13115</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-04-04 09:26:05 +0000</bug_when>
    <thetext>Another example is when COMPATIBLE_MACHINE prevents a recipe from building it&apos;s not obvious that it&apos;s happened without spotting the line in the bb file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18146</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-01-15 01:56:33 +0000</bug_when>
    <thetext>After http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a5463088fe57462bf681b648d21212808454fc2a the python stack trace is no longer printed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18147</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-01-15 01:59:43 +0000</bug_when>
    <thetext>Since Paul already added patches which show information about COMPATIBLE_HOST and COMPATIBLE_MACHINE recipe incompatibility a long time ago, resolving this bug. Output is now:

ERROR: Nothing PROVIDES &apos;valgrind&apos;
ERROR: valgrind was skipped: incompatible with host mips-poky-linux

(which is from COMPATIBLE_HOST and handled the same as COMPATIBLE_MACHINE)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18478</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-02-05 07:33:50 +0000</bug_when>
    <thetext>The feature is tested workable in 1.2 M2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>