<?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>11464</bug_id>
          
          <creation_ts>2017-05-05 04:49:40 +0000</creation_ts>
          <short_desc>devshell and cross compiler / tools</short_desc>
          <delta_ts>2017-11-08 05:45:19 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Rebecca Chang">rebecca.swee.fun.chang</assigned_to>
          <cc>ashwinx.soman</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nagarajagopalx.velu</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>shashwatx.pandey</cc>
    
    <cc>twoerner</cc>
          
          <qa_contact name="Ashwin Soman">ashwinx.soman</qa_contact>
          <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>73067</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-05 04:49:40 +0000</bug_when>
    <thetext>In the old days you&apos;d have access to the cross-compiler and other build tools for within devshell &quot;by accident&quot; since there was one shared sysroot, but with RSS you&apos;ll only get those if you&apos;ve actually done a compilation - if you clean the recipe and then run devshell on it, none of the build tools will be in the sysroot since do_devshell only depends on do_patch and there aren&apos;t any dependencies to ensure that the tools are in the sysroot from that task.

I guess if we want to fix this we&apos;ll have to try to copy dependencies from do_configure / do_compile across to do_devshell or something similar so that they explicitly get populated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73292</commentid>
    <comment_count>1</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-05-17 08:52:46 +0000</bug_when>
    <thetext>Does this related to task ordering for do_devshell?
I would like to clarify on the &quot;dependencies&quot; mentioned in the description. Based on my understanding here, devshell should be executed after configure and compile. Is that what you mean?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73302</commentid>
    <comment_count>2</comment_count>
    <who name="Trevor Woerner">twoerner</who>
    <bug_when>2017-05-17 21:09:58 +0000</bug_when>
    <thetext>I think devshell should still continue to be run after do_patch, but what I think Paul is saying is that do_devshell should have the *dependencies* of do_compile. 

In other words devshell needs to make sure a compile is available before it runs (i.e. a DEPENDS, not a task dependency).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73303</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-17 21:17:51 +0000</bug_when>
    <thetext>What I was suggestion was basically read the depends varflag of do_configure and do_compile and then appendVarFlag() those to the depends of do_devshell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73304</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-17 21:18:29 +0000</bug_when>
    <thetext>*&quot;What I was suggesting&quot;. Apparently I&apos;m not good at editing this morning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73780</commentid>
    <comment_count>5</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-06-07 00:47:46 +0000</bug_when>
    <thetext>Fix implemented and merged.

OE-Core rev: eb8a1cdf5106d119f77db76f9a690826af9fcda3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77761</commentid>
    <comment_count>6</comment_count>
    <who name="Ashwin Soman">ashwinx.soman</who>
    <bug_when>2017-10-23 03:35:08 +0000</bug_when>
    <thetext>Bug is fixed and verified, 
$ bitbake ifupdown -c devshell
# ls

addrfam.c     archhurd.c      archkfreebsd.h  can.defn  COPYING    defn2man.pl  header.h    inet.defn         link.defn  meta.defn      tests
archcommon.c  archhurd.h      archlinux.c     config.c  debian     examples     ifup.8      interfaces.5.pre  main.c     patches        TODO.scripts
archcommon.h  archkfreebsd.c  archlinux.h     contrib   defn2c.pl  execute.c    inet6.defn  ipx.defn          Makefile   settle-dad.sh  wait-for-ll6.sh

#make 

i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/workdir/build/tmp/work/i586-poky-linux/ifupdown/0.8.16-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/workdir/build/tmp/work/i586-poky-linux/ifupdown/0.8.16-r0=/usr/src/debug/ifupdown/0.8.16
.
.
.
.
.
.
sysroot=  -std=c99 -D_DEFAULT_SOURCE -D&apos;IFUPDOWN_VERSION=&quot;0.7&quot;&apos; main.o addrfam.o execute.o config.o inet.o ipx.o inet6.o can.o archcommon.o archlinux.o meta.o link.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o ifup
ln -sf ifup ifdown
ln -sf ifup ifquery
ln -sf ifup.8 ifdown.8
ln -sf ifup.8 ifquery.8
./defn2man.pl inet.defn &gt; inet.man
./defn2man.pl ipx.defn &gt; ipx.man
./defn2man.pl inet6.defn &gt; inet6.man
./defn2man.pl can.defn &gt; can.man
sed -e &apos;/^##ADDRESSFAM##$/r inet.man&apos; -e &apos;/^##ADDRESSFAM##$/r ipx.man&apos; -e &apos;/^##ADDRESSFAM##$/r inet6.man&apos; -e &apos;/^##ADDRESSFAM##$/r can.man&apos; \
     -e &apos;/^##ADDRESSFAM##$/d&apos; &lt; interfaces.5.pre &gt; interfaces.5
# ls

addrfam.c     archhurd.c      archlinux.h  can.o     debian       execute.o  ifquery.8   inet6.man  inet.o            ipx.man    main.c     meta.o         wait-for-ll6.sh
addrfam.o     archhurd.h      archlinux.o  config.c  defn2c.pl    header.h   ifup        inet6.o    interfaces.5      ipx.o      main.o     patches
archcommon.c  archkfreebsd.c  can.c        config.o  defn2man.pl  ifdown     ifup.8      inet.c     interfaces.5.pre  link.c     Makefile   settle-dad.sh
archcommon.h  archkfreebsd.h  can.defn     contrib   examples     ifdown.8   inet6.c     inet.defn  ipx.c             link.defn  meta.c     tests
archcommon.o  archlinux.c     can.man      COPYING   execute.c    ifquery    inet6.defn  inet.man   ipx.defn          link.o     meta.defn  TODO.scripts
#




Compilation was successful</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78051</commentid>
    <comment_count>7</comment_count>
    <who name="Ashwin Soman">ashwinx.soman</who>
    <bug_when>2017-11-08 05:45:19 +0000</bug_when>
    <thetext>Bug have been resolved and verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>