summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/1420.toml
blob: d7de27a89d373aad20d93d28bff53c6517763422 (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
39
40
41
42
43
44
45
46
47
id = 1420
title = "Missing path for pkg-config on amd64 debian based distros"
state = "closed"
created_at = "2023-01-06T23:38:39.613Z"
closed_at = "2023-01-07T13:31:14.729Z"
labels = []
url = "https://gitlab.com/qemu-project/qemu/-/issues/1420"
host-os = "Debian testing"
host-arch = "amd64"
qemu-version = "commit 171033e8dbac356f9a84c2e7cc8556a4eb0a1359 (master)"
guest-os = "n/a"
guest-arch = "n/a"
description = """This error occurs when attempting to configure qemu from git :
```error
ERROR: glib-2.56 gthread-2.0 is required to compile QEMU
```

Although it seems to be as simple as "_just install the dev lib!!!_" it is not that simple.

1. First of all, my system already has the library installed :
   ```sh
   dpkg -l | grep libglib2.0-dev
   ii  libglib2.0-dev:amd64                          2.74.4-1                            amd64        Development files for the GLib library
   ii  libglib2.0-dev-bin                            2.74.4-1                            amd64        Development utilities for the GLib library
   ```
1. Second, the file required by _pkg-config_ does exist aswell :
   ```sh
   ls /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc -l
   -rw-r--r-- 1 root root 240 dez 27 20:42 /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc
   ```
1. Finally, the real problem is that pkg-config is not able to identify it **unless** you specify the _x86-64_ dir :
   - Default usage. It fails.
      ```sh
      pkg-config --modversion gthread-2.0
      Package gthread-2.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gthread-2.0.pc'
      to the PKG_CONFIG_PATH environment variable
      Package 'gthread-2.0', required by 'virtual:world', not found
      ```
   - Fixed usage (temp)
      ```sh
      env PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig/" pkg-config --modversion gthread-2.0
      2.74.4
      ```"""
reproduce = """1. clone qemu (master)
2. try to run _configure_"""
additional = """Of course it seems to be a problem related to the program _pkg-config_ itself, or even by the distro's package, but it totally prevents any build of qemu in a debian-based distro, with architecture _amd64_."""