blob: 4237f40d5acd88827621dd06399c8614d9b1ae3b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
KVM: 0.982
device: 0.705
graphic: 0.685
semantic: 0.583
instruction: 0.502
vnc: 0.469
other: 0.403
network: 0.389
socket: 0.369
boot: 0.362
mistranslation: 0.290
assembly: 0.082
RISC-V KVM strerrorname_np regression breaks build on Alpine Linux
Description of problem:
Build from source fails on Alpine Linux due to the use of the non-portable `strerrorname_np`:
```
/usr/lib/gcc/riscv64-alpine-linux-musl/13.2.1/../../../../riscv64-alpine-linux-musl/bin/ld: libqemu-riscv64-softmmu.fa.p/target_riscv_kvm_kvm-cpu.c.o: in function `kvm_cpu_realize':
kvm-cpu.c:(.text+0x538): undefined reference to `strerrorname_np'
/usr/lib/gcc/riscv64-alpine-linux-musl/13.2.1/../../../../riscv64-alpine-linux-musl/bin/ld: libqemu-riscv64-softmmu.fa.p/target_riscv_kvm_kvm-cpu.c.o: in function `kvm_cpu_instance_init':
kvm-cpu.c:(.text+0x1244): undefined reference to `strerrorname_np'
```
Steps to reproduce:
1. install alpine linux on a riscv64 machine
2. build qemu-9.0.0 from source.
3.
Additional information:
Same problem as https://gitlab.com/qemu-project/qemu/-/issues/2041
Re-introduced with d4ff3da8f45c52670941c6e1b94e771d69d887e9 and 0d71f0a34938a6ac11953ae3dbec40113d2838a1
|