<?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>12569</bug_id>
          
          <creation_ts>2018-02-23 17:52:13 +0000</creation_ts>
          <short_desc>Rare non-determinism in gdb means it doesn&apos;t build gdbserver</short_desc>
          <delta_ts>2020-08-20 22:10:49 +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.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79578</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-02-23 17:52:13 +0000</bug_when>
    <thetext>I failed to build core-image-sato-sdk with the current master for qemumis:

Build Configuration:
BB_VERSION           = &quot;1.37.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;mips-poky-linux&quot;
MACHINE              = &quot;qemumips&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;2.4+snapshot-20180223&quot;
TUNE_FEATURES        = &quot;o32 bigendian fpu-hard mips32r2&quot;
TARGET_FPU           = &quot;&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;master:2f030dfc082d6d8143c712cd9e18a0da13ec66e1&quot;

local.conf:
MACHINE = &quot;qemumips&quot;


I get the error:
ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Could not invoke dnf. Command &apos;/data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/oe-rootfs-repo --installroot=/data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/rootfs --setopt=logdir=/data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/temp --nogpgcheck install kernel-devsrc packagegroup-core-sdk packagegroup-core-x11-base packagegroup-core-x11-sato packagegroup-core-standalone-sdk-target packagegroup-core-ssh-openssh packagegroup-core-boot packagegroup-core-eclipse-debug packagegroup-core-tools-profile packagegroup-base-extended rpm dnf packagegroup-core-tools-debug packagegroup-core-tools-testapps run-postinsts psplash locale-base-en-us locale-base-en-gb&apos; returned 1:
Added oe-repo repo from /data/master/poky/build-sato-testimage/tmp/work/qemumips-poky-linux/core-image-sato-sdk/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:04 ago on Fri 23 Feb 2018 05:45:32 PM UTC.
Error: 
 Problem 1: conflicting requests
  - nothing provides gdbserver needed by packagegroup-core-eclipse-debug-1.0-r0.noarch
 Problem 2: conflicting requests
  - nothing provides gdbserver needed by packagegroup-core-tools-debug-1.0-r3.noarch

ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed: do_rootfs


And indeed, gdbserver is not built (for no obvious reason, however it does get built for qemumips64)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79579</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-23 18:20:01 +0000</bug_when>
    <thetext>I thought we had a bug for this already.

Welcome to an incredibly rare race where sometimes gdbserver doesn&apos;t get build.

$10 says if you force gdb to rebuild, it appears.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79580</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-02-23 18:34:26 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I thought we had a bug for this already.

we do now

&gt; 
&gt; Welcome to an incredibly rare race where sometimes gdbserver doesn&apos;t get
&gt; build.
&gt; 
&gt; $10 says if you force gdb to rebuild, it appears.

indeed, I did

$ bitbake gdb -ccleanall
$ bitbake gdb
$ bitbake core-image-sato-sdk

and no problems this time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79581</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-23 18:55:12 +0000</bug_when>
    <thetext>I should have asked you to rebuild it using -C instead of cleanall to preserve the logs of the good and bad builds :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87262</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-05-20 09:29:44 +0000</bug_when>
    <thetext>Reassigning to Khem in case he has any thoughts. Or, maybe it&apos;s not a bug anymore.  I&apos;ve been meaning to throw check that the file exists into the recipe and make it error out if not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87264</commentid>
    <comment_count>5</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-05-20 13:30:38 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Reassigning to Khem in case he has any thoughts. Or, maybe it&apos;s not a bug
&gt; anymore.  I&apos;ve been meaning to throw check that the file exists into the
&gt; recipe and make it error out if not.

I have never encountered this error myself so have no idea, We have also upgraded
gdb bunch of times since this bug so perhaps its gone too, next time when it happens
I would like to take a look at the build and config.log files of gdb. Without this
its hard to tell what could be going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88005</commentid>
    <comment_count>6</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-08-20 22:10:49 +0000</bug_when>
    <thetext>I can not reproduce this in master for few  many months now. Please re-open if it can still be reproduced.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>