Re: [igt-dev] [PATCH i-g-t v1] meson: missed dependency of liblzma

Petri Latvala
2019-02-26T09:46:08Z

On Mon, Feb 25, 2019 at 03:23:19PM +0200, Sergii Romantsov wrote:
> Failed to configure intel-gpu-tools with error:
>
> meson.build:151:0: ERROR: Could not generate cargs for libdw:
>
> libdw depends on liblzma.
> Installation of liblzma-dev fixes issue.
>
> Fixes: e39e09910fc8 (lib/core: Use libdw to decode stack trace with debugging symbols, v2.)
> CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
> ---
> meson.build | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meson.build b/meson.build
> index 099db89..4c58ca8 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -148,6 +148,7 @@ if with_libunwind != 'false'
> endif
> build_info += 'With libunwind: ' + libunwindinfo
>
> +liblzma = dependency('liblzma', required : true)

_We_ don't use liblzma for anything though, so this is kind of
superfluous. As I understood you, just installing liblzma-dev makes
the build successful, right? Making this change just lead to better
error messages when it's not installed?

What is the distro you're using? The ones we build-test on in gitlab
CI (Fedora, Debian) both have libdw's development package depend on
liblzma.

--
Petri Latvala