<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello, Petri.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">As I understood you, just installing liblzma-dev makes the build successful, right?</blockquote><div><br></div><div>If to be more specific, installing liblzma-dev makes meson-configuration successful.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Making this change just lead to better error messages when it's not installed?</blockquote><div><br></div><div>Yes, it will show which package exactly leaked instead of unclear error.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What is the distro you're using? </blockquote><div><br></div><div>4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</div><div><br></div><div>I think it happens due to specific of meson-<span style="color:rgb(80,0,80)">dependency</span> - how it looks for a package.</div><div>So command (when liblzma-dev is absent, but liblzma5 is installed)</div><div> 'pkg-config --cflags --libs libdw'</div><div>gives:</div><div><div>"Package liblzma was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `liblzma.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>Package 'liblzma', required by 'libdw', not found"</div></div><div><br></div><div>So in my understanding its just because of lack of liblzma.pc</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 11:46 AM Petri Latvala <<a href="mailto:petri.latvala@intel.com">petri.latvala@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Feb 25, 2019 at 03:23:19PM +0200, Sergii Romantsov wrote:<br>
> Failed to configure intel-gpu-tools with error:<br>
> <br>
> meson.build:151:0: ERROR: Could not generate cargs for libdw:<br>
> <br>
> libdw depends on liblzma.<br>
> Installation of liblzma-dev fixes issue.<br>
> <br>
> Fixes: e39e09910fc8 (lib/core: Use libdw to decode stack trace with debugging symbols, v2.)<br>
> CC: Maarten Lankhorst <<a href="mailto:maarten.lankhorst@linux.intel.com" target="_blank">maarten.lankhorst@linux.intel.com</a>><br>
> Signed-off-by: Sergii Romantsov <<a href="mailto:sergii.romantsov@globallogic.com" target="_blank">sergii.romantsov@globallogic.com</a>><br>
> ---<br>
> meson.build | 1 +<br>
> 1 file changed, 1 insertion(+)<br>
> <br>
> diff --git a/meson.build b/meson.build<br>
> index 099db89..4c58ca8 100644<br>
> --- a/meson.build<br>
> +++ b/meson.build<br>
> @@ -148,6 +148,7 @@ if with_libunwind != 'false'<br>
> endif<br>
> build_info += 'With libunwind: ' + libunwindinfo<br>
> <br>
> +liblzma = dependency('liblzma', required : true)<br>
<br>
_We_ don't use liblzma for anything though, so this is kind of<br>
superfluous. As I understood you, just installing liblzma-dev makes<br>
the build successful, right? Making this change just lead to better<br>
error messages when it's not installed?<br>
<br>
What is the distro you're using? The ones we build-test on in gitlab<br>
CI (Fedora, Debian) both have libdw's development package depend on<br>
liblzma.<br>
<br>
<br>
-- <br>
Petri Latvala<br>
</blockquote></div>