<?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>14175</bug_id>
          
          <creation_ts>2021-01-04 14:20:58 +0000</creation_ts>
          <short_desc>Gatesgarth no longer building under WSL2</short_desc>
          <delta_ts>2021-01-22 04:12:40 +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>BitBake</product>
          <component>bitbake</component>
          <version>3.2.2</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>3.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>yoctoproject</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yoctoproject</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>88850</commentid>
    <comment_count>0</comment_count>
    <who name="">yoctoproject</who>
    <bug_when>2021-01-04 14:20:58 +0000</bug_when>
    <thetext>I&apos;m on Windows 10 with a WSL 2 Ubuntu 20.04 Distribution.

The following will reproduce my error:

cd $(mktemp -d)
git clone https://git.yoctoproject.org/git/poky --branch gatesgarth
source poky/oe-init-build-env
bitbake linux-libc-headers


This one will error out on:

ERROR: Task (/tmp/tmp.eMUNKdTbkP/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_5.8.bb:do_install) failed with exit code &apos;134&apos;
NOTE: Tasks Summary: Attempted 344 tasks of which 0 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /tmp/tmp.eMUNKdTbkP/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_5.8.bb:do_install
Summary: There were 2 WARNING messages shown.


I&apos;m not entirely sure, why there is a SIGABRT somewhere. It ran perfectly fine under Dunfell, so it must be something in between.

Interesting enough: There is no `run.do_install` in the temp directory...

$ /bin/ls temp/run.do_*                                                                                       
temp/run.do_deploy_source_date_epoch
temp/run.do_fetch
temp/run.do_patch
temp/run.do_populate_lic
temp/run.do_prepare_recipe_sysroot
temp/run.do_unpack


Please let me know, what I can provide to help you on this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88853</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-04 14:53:21 +0000</bug_when>
    <thetext>That sounds like pseudo aborting for some reason as linux-libc-headers is the first task it would run under pseudo.

Can you look WORKDIR/pseudo/pseudo.log and see if that gives any more of a clue about what happened?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88854</commentid>
    <comment_count>2</comment_count>
    <who name="">yoctoproject</who>
    <bug_when>2021-01-04 15:12:15 +0000</bug_when>
    <thetext>Indeed, there&apos;s something:

$ cat pseudo/pseudo.log
debug_logfile: fd 2
pid 14987 [parent 14986], doing new pid setup and server start
Setup complete, sending SIGUSR1 to pid 14986.
path mismatch [2 links]: ino 2207517 db &apos;/run/shm/sem.mp-nh9e4dot&apos; req &apos;/run/shm/af4ZYg&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88855</commentid>
    <comment_count>3</comment_count>
    <who name="">yoctoproject</who>
    <bug_when>2021-01-04 15:52:00 +0000</bug_when>
    <thetext>So I tried some things.

According to https://docs.yoctoproject.org/ref-manual/migration-3.2.html#pseudo-path-filtering-and-mismatch-behaviour I should either use the PSEUDO_DEBUG = &quot;nfoPcvdDyerpswikVx&quot;  flag (which doesn&apos;t seem to do anything... bummer) or use PSEUDO_IGNORE_PATHS. I did both, and the later gives me another error which might indicate a bigger problem?

pid 25910 [parent 25909], doing new pid setup and server start
Setup complete, sending SIGUSR1 to pid 25909.
path mismatch [5 links]: ino 372550 db &apos;/tmp/tmp.eMUNKdTbkP/build/tmp/work/core2-64-poky-linux/linux-libc-headers/5.8-r0/recipe-sysroot-native/etc/terminfo/v/vt200&apos; req &apos;/tmp/tmp.eMUNKdTbkP/build/tmp/sysroots-components/x86_64/ncurses-native/etc/terminfo/v/vt220&apos;.


Is there a way to be less restrictive with pseudo like it behaved in 3.1? 

If not, what is needed to solve this problem. It is a big problem right now, because I wanted to migrate onto gatesgarth this week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88856</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-04 22:30:55 +0000</bug_when>
    <thetext>A temporary fix might be to try adding:

PSEUDO_IGNORE_PATHS_append = &quot;:/run/&quot;

(or add :/run/ to PSEUDO_IGNORE_PATHS in bitbake.conf)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88857</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-04 22:34:02 +0000</bug_when>
    <thetext>sorry, it should be &quot;,/run/&quot; as its comma delimited. I think we may need to add /run/ to the defaults as the real fix...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88865</commentid>
    <comment_count>6</comment_count>
    <who name="">yoctoproject</who>
    <bug_when>2021-01-05 07:08:46 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; sorry, it should be &quot;,/run/&quot; as its comma delimited. I think we may need to
&gt; add /run/ to the defaults as the real fix...

That seems to do the trick!
Yeah, I guess /run/ should be in the default exclude, but I don&apos;t know why it only happens on WSL (I assume you have tested other linux distributions ;) ). And it *always* happened, even on a clean WSL debian distro.

Thanks for your help!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88874</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-06 14:45:13 +0000</bug_when>
    <thetext>I&apos;ve sent a patch to the mailing list and will add it for testing in master-next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88894</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-09 09:23:57 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c5f7310d6fe4bafffc89142e0b3b236d8296a700</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88895</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-09 09:24:34 +0000</bug_when>
    <thetext>Reassign to Anuj for gatesgarth backport</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88995</commentid>
    <comment_count>10</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2021-01-22 04:12:40 +0000</bug_when>
    <thetext>This is in gatesgarth now

https://git.yoctoproject.org/cgit.cgi/poky/commit/?h=gatesgarth&amp;id=4b94d45be2f4b46e3d46fb90050edc71175ab18c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>