RTEMS Source Builder | Qemu build relies on libslirp.so (backport to 6) (#214)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Sep 2 12:50:56 UTC 2026



Issue created by Joel Sherrill: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/work_items/214

Assignee: Joel Sherrill

## Summary

Backport of #210 with changes in !301

Qemu built by the RSB relies on _libslirp.so_. Unfortunately, the one we build is not used by default so on Rocky 9, it results in a failure:

```
$ ~/rtems-work/tools/next/qemu/bin/qemu-system-arm
/home/joel/rtems-work/tools/next/qemu/bin/qemu-system-arm: /lib64/libslirp.so.0: version `SLIRP_4.9' not found (required by /home/joel/rtems-work/tools/next/qemu/bin/qemu-system-arm)
/home/joel/rtems-work/tools/next/qemu/bin/qemu-system-arm: /lib64/libslirp.so.0: version `SLIRP_4.7' not found (required by /home/joel/rtems-work/tools/next/qemu/bin/qemu-system-arm)
/home/joel/rtems-work/tools/next/qemu/bin/qemu-system-arm: /lib64/libslirp.so.0: version `SLIRP_4.5' not found (required by /home/joel/rtems-work/tools/next/qemu/bin/qemu-system-arm)
```

This can be resolved by setting _LD_LIBRARY_PATH_ to point to the _libslirp.so_ installed by the RSB. The following command or just exporting LD_LIBRARY_PATH works.

`LD_LIBRARY_PATH=/home/joel/rtems-work/tools/next/qemu/lib64  /tmp/rttools/bin/rtems-test --rtems-bsp=malta_qemu `find build -name hello.exe``

Depending on the host operating systems this is happening on, it could be negatively impacting the cron sweeper.

## Steps to reproduce

This is a normal RSB build of qemu. I think all you need is to be on a host without the _libslirp.so_ version used to build qemu.



## Steps to reproduce


<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/work_items/214
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-ae7g5usu4z6jdvucv42ehnkr3-e/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260902/9231972b/attachment.htm>


More information about the bugs mailing list