Skip to content

Commit 9b606bb

Browse files
committed
Describe the problem.
Signed-off-by: Artyom Gevorgyan <artemhevorgian@gmail.com>
1 parent 96e155a commit 9b606bb

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

notes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
We can't build softmmu-* targets with --static flag, here is a
2+
[thread](https://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02878.html)
3+
from QEMU mailing list that shows why (and I have experienced more or
4+
less the same - qemu would just not build and complain about missing
5+
libraries). In other words, running programs which are not intended to
6+
be run in user mode is not possible with --static binaries. I have also
7+
found this
8+
[Debian wiki page](https://wiki.debian.org/RISC-V#Manual_qemu-user_installation)
9+
that talks about static qemu-riscv binaries,
10+
and they only mention linux-user target (not softmmu, and we need the
11+
latter). So maybe it is just not possible to build softmmu targets with
12+
static flag :unamused:? But suppose rminnich knows what he is doing.
13+
14+
- Current build is useless, as it is for running programs in
15+
linux-user mode.
16+
17+
The origial PR failed because device loader was not found. However, it
18+
used a flag --without-default-devices, or something like that, which
19+
could just disable that device.
20+
21+
- :x: Try removing that flag.
22+
23+
Also anyway need to update QEMU to version 5.1.0, so all the builds
24+
should be executed with that version.

0 commit comments

Comments
 (0)