<?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>14315</bug_id>
          
          <creation_ts>2021-03-22 15:42:20 +0000</creation_ts>
          <short_desc>qemu doesn&apos;t boot with musl+ptest</short_desc>
          <delta_ts>2021-03-26 14:14:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Package Testing (ptest)</product>
          <component>ptest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</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 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Fan Yu">yf3yu</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>raj.khem</cc>
    
    <cc>randy.macleod</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>89681</commentid>
    <comment_count>0</comment_count>
      <attachid>4780</attachid>
    <who name="Yi Fan Yu">yf3yu</who>
    <bug_when>2021-03-22 15:42:20 +0000</bug_when>
    <thetext>Created attachment 4780
error msg for qemu

oe-core with DISTRO_FEATURES_append = &quot; ptest&quot;
TLIBC=musl bitbake core-image-minimal
runqemu tmp-musl/deploy/images/qemux86-64 nographic

it will boot if i remove ptest from DISTRO_FEATURES

error logs attached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89759</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-03-25 15:11:26 +0000</bug_when>
    <thetext>is this using poky or poky-tiny ?
poky-tiny does not use sysvinit or systemd for init system
and from error it looks like its using busybox shell which is not able to execute a given shell script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89762</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Fan Yu">yf3yu</who>
    <bug_when>2021-03-25 15:16:01 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; is this using poky or poky-tiny ?
&gt; poky-tiny does not use sysvinit or systemd for init system
&gt; and from error it looks like its using busybox shell which is not able to
&gt; execute a given shell script.

i only used oe-core so no-distro 

I added DISTRO_FEATURES ptest
and built TCLIBC=musl core-image-minimal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89777</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-03-25 20:21:28 +0000</bug_when>
    <thetext>I took todays master-next and I can boot it fine, added DISTRO_FEATURES_append = &quot; ptest&quot; to local.conf

$ TCLIBC=musl bitbake core-image-minimal
$ TCLIBC=musl runqemu nographic


...

INIT: version 2.99 booting
Starting udev
[    7.303507] udevd[114]: starting version 3.2.10
[    7.404499] udevd[115]: starting eudev-3.2.10
[   10.782016] EXT4-fs (vda): re-mounted. Opts: (null)
[   10.782516] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
INIT: Entering runlevel: 5
Configuring network interfaces... ip: RTNETLINK answers: File exists
Starting syslogd/klogd: done

OpenEmbedded nodistro.0 qemux86-64 /dev/ttyS0

qemux86-64 login:root
root@qemux86-64:~# ls -l /lib
lrwxrwxrwx    1 root     root            18 Mar 25 19:27 ld-musl-x86_64.so.1 -&gt; ../usr/lib/libc.so
lrwxrwxrwx    1 root     root            17 Mar 25 19:35 libblkid.so.1 -&gt; libblkid.so.1.1.0
-rwxr-xr-x    1 root     root        316208 Mar 25 19:35 libblkid.so.1.1.0
lrwxrwxrwx    1 root     root            14 Mar 25 19:30 libz.so.1 -&gt; libz.so.1.2.11
-rwxr-xr-x    1 root     root        100760 Mar 25 19:30 libz.so.1.2.11
drwxr-xr-x    3 root     root          1024 Mar 25 19:30 modules
drwxr-xr-x    3 root     root          1024 Mar 25 19:36 udev


are there any differences in your build env ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89793</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Fan Yu">yf3yu</who>
    <bug_when>2021-03-26 14:14:36 +0000</bug_when>
    <thetext>I was able to run musl ptest.
Might be some misconfiguration on my end.

Thx khem.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4780</attachid>
            <date>2021-03-22 15:42:20 +0000</date>
            <delta_ts>2021-03-22 15:42:20 +0000</delta_ts>
            <desc>error msg for qemu</desc>
            <filename>file_14315.txt</filename>
            <type>text/plain</type>
            <size>1219</size>
            <attacher name="Yi Fan Yu">yf3yu</attacher>
            
              <data encoding="base64">SU5JVDogdmVyc2lvbiAyLjk5IGJvb3RpbmcgICAgICAgICAgICAgICANCi9ldGMvaW5pdC5kL3Jj
UzogbGluZSAxNzogbW91bnQ6IG5vdCBmb3VuZCAgICAgICAgICAgICAgICAgDQovZXRjL2luaXQu
ZC9yYzogbGluZSA2NDogc3R0eTogbm90IGZvdW5kDQovZXRjL2luaXQuZC9yYzogL2V0Yy9yY1Mu
ZC9TMDJzeXNmcy5zaDogbGluZSAxNDogbW91bnQ6IG5vdCBmb3VuZCAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICANCi9ldGMvaW5pdC5kL3JjOiAvZXRjL3JjUy5kL1MwMnN5c2Zz
LnNoOiBsaW5lIDE3OiBncmVwOiBub3QgZm91bmQNCi9ldGMvaW5pdC5kL3JjOiAvZXRjL3JjUy5k
L1MwM21vdW50YWxsL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