Bug 14315 - qemu doesn't boot with musl+ptest
Summary: qemu doesn't boot with musl+ptest
Status: RESOLVED NOTABUG
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.3 M4
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-03-22 15:42 UTC by Yi Fan Yu
Modified: 2021-03-26 14:14 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
error msg for qemu (1.19 KB, text/plain)
2021-03-22 15:42 UTC, Yi Fan Yu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Fan Yu 2021-03-22 15:42:20 UTC
Created attachment 4780 [details]
error msg for qemu

oe-core with DISTRO_FEATURES_append = " ptest"
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.
Comment 1 Khem Raj 2021-03-25 15:11:26 UTC
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.
Comment 2 Yi Fan Yu 2021-03-25 15:16:01 UTC
(In reply to comment #1)
> 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.

i only used oe-core so no-distro 

I added DISTRO_FEATURES ptest
and built TCLIBC=musl core-image-minimal
Comment 3 Khem Raj 2021-03-25 20:21:28 UTC
I took todays master-next and I can boot it fine, added DISTRO_FEATURES_append = " ptest" 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 -> ../usr/lib/libc.so
lrwxrwxrwx    1 root     root            17 Mar 25 19:35 libblkid.so.1 -> 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 -> 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 ?
Comment 4 Yi Fan Yu 2021-03-26 14:14:36 UTC
I was able to run musl ptest.
Might be some misconfiguration on my end.

Thx khem.