summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/578.toml
blob: 15f44484bfaff912be727fb98b238ad4a39de413 (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
31
32
33
34
35
36
37
38
id = 578
title = "getdomainname() is not implemented in QEMU user mode on Linux/sparc64"
state = "opened"
created_at = "2021-08-29T14:50:00.598Z"
closed_at = "n/a"
labels = ["linux-user"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/578"
host-os = "Ubuntu 20.04"
host-arch = "x86_64"
qemu-version = "6.1.0"
guest-os = "Linux"
guest-arch = "sparc64"
description = """The `getdomainname()` function fails, instead of succeeding."""
reproduce = """[foo.c](/uploads/7586c9aab788855b232a5c2f6aaeb4fc/foo.c)

1.
```
# apt install g++-10-sparc64-linux-gnu
# mkdir -p /usr/sparc64-linux-gnu/etc
# touch /usr/sparc64-linux-gnu/etc/ld.so.cache
```
2.
```
$ sparc64-linux-gnu-gcc-10 -Wall -static foo.c
```
[a.out](/uploads/39d291b95caa182d74b0b622a82667e8/a.out)

3. Transfer the a.out file to a Linux/sparc64 machine; execute it there. It prints
```
result: (none)
```
4.
```
$ QEMU_LD_PREFIX=/usr/sparc64-linux-gnu ~/inst-qemu/6.1.0/bin/qemu-sparc64 ./a.out
```
Expected: `result: (none)`
Actual: `getdomainname: Function not implemented`"""
additional = """"""